Revert "TGUI alerts, lists, inputs"
This commit is contained in:
@@ -287,7 +287,7 @@
|
||||
if (params["sheets"])
|
||||
desired = text2num(params["sheets"])
|
||||
else
|
||||
desired = tgui_input_num(usr, "How many sheets?", "How many sheets would you like to smelt?", 1)
|
||||
desired = input("How many sheets?", "How many sheets would you like to smelt?", 1) as null|num
|
||||
|
||||
var/sheets_to_remove = round(min(desired,50,stored_amount))
|
||||
|
||||
@@ -332,7 +332,7 @@
|
||||
if (params["sheets"])
|
||||
desired = text2num(params["sheets"])
|
||||
else
|
||||
desired = tgui_input_num(usr, "How many sheets?", "How many sheets would you like to smelt?", 1)
|
||||
desired = input("How many sheets?", "How many sheets would you like to smelt?", 1) as null|num
|
||||
var/amount = round(min(desired,50,smelt_amount))
|
||||
mat_container.use_materials(alloy.materials, amount)
|
||||
materials.silo_log(src, "released", -amount, "sheets", alloy.materials)
|
||||
|
||||
Reference in New Issue
Block a user