Revert "TGUI alerts, lists, inputs"
This commit is contained in:
@@ -116,7 +116,7 @@ Note: Must be placed within 3 tiles of the R&D Console
|
||||
differences[i] = value
|
||||
if(length(worths) && !length(differences))
|
||||
return FALSE
|
||||
var/choice = tgui_input_list(user, "Are you sure you want to destroy [loaded_item] to [!length(worths) ? "reveal [TN.display_name]" : "boost [TN.display_name] by [json_encode(differences)] point\s"]?", "", list("Proceed", "Cancel"))
|
||||
var/choice = input("Are you sure you want to destroy [loaded_item] to [!length(worths) ? "reveal [TN.display_name]" : "boost [TN.display_name] by [json_encode(differences)] point\s"]?") in list("Proceed", "Cancel")
|
||||
if(choice == "Cancel")
|
||||
return FALSE
|
||||
if(QDELETED(loaded_item) || QDELETED(linked_console) || !user.Adjacent(linked_console) || QDELETED(src))
|
||||
@@ -134,7 +134,7 @@ Note: Must be placed within 3 tiles of the R&D Console
|
||||
user_mode_string = " for [json_encode(point_value)] points"
|
||||
else if(loaded_item.custom_materials?.len)
|
||||
user_mode_string = " for material reclamation"
|
||||
var/choice = tgui_input_list(user, "Are you sure you want to destroy [loaded_item][user_mode_string]?", "", list("Proceed", "Cancel"))
|
||||
var/choice = input("Are you sure you want to destroy [loaded_item][user_mode_string]?") in list("Proceed", "Cancel")
|
||||
if(choice == "Cancel")
|
||||
return FALSE
|
||||
if(QDELETED(loaded_item) || QDELETED(linked_console) || !user.Adjacent(linked_console) || QDELETED(src))
|
||||
|
||||
Reference in New Issue
Block a user