mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] remove old inputs (#10038)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f3ebea3af1
commit
965f8f4a61
@@ -56,8 +56,8 @@ GLOBAL_LIST_EMPTY(fuel_injectors)
|
||||
return
|
||||
//CHOMPEdit Begin
|
||||
if(istype(W,/obj/item/fuel_assembly/blitz))
|
||||
var/secondchance = alert("Are you sure you want to put the blitz rod in the fuel injector? This definitely wasn't meant to be used like this, and could only end badly.","Confirm","Yes","No")
|
||||
if(secondchance=="No")
|
||||
var/secondchance = tgui_alert(user, "Are you sure you want to put the blitz rod in the fuel injector? This definitely wasn't meant to be used like this, and could only end badly.","Confirm",list("Yes","No"))
|
||||
if(!secondchance || secondchance=="No")
|
||||
return
|
||||
//CHOMPEdit End
|
||||
if(cur_assembly)
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
return
|
||||
|
||||
if(href_list["modifypower"])
|
||||
var/new_val = input(usr, "Enter new emission power level (1 - 50)", "Modifying power level", G.mega_energy) as num
|
||||
var/new_val = tgui_input_number(usr, "Enter new emission power level (1 - 50)", "Modifying power level", G.mega_energy, 50, 1)
|
||||
if(!new_val)
|
||||
to_chat(usr, span_warning("That's not a valid number."))
|
||||
return 1
|
||||
@@ -100,7 +100,7 @@
|
||||
return 1
|
||||
|
||||
if(href_list["modifyrate"])
|
||||
var/new_val = input(usr, "Enter new emission delay between 1 and 10 seconds.", "Modifying emission rate", G.rate) as num
|
||||
var/new_val = tgui_input_number(usr, "Enter new emission delay between 1 and 10 seconds.", "Modifying emission rate", G.rate, 10, 1)
|
||||
if(!new_val)
|
||||
to_chat(usr, span_warning("That's not a valid number."))
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user