Revert "TGUI alerts, lists, inputs"
This commit is contained in:
@@ -728,13 +728,13 @@
|
||||
rolelist_dict = list("CANCEL", "FINISH") + rolelist_dict
|
||||
while(!done)
|
||||
to_chat(usr, "You have a total player count of [assoc_value_sum(debug_setup)] in this setup.")
|
||||
var/chosen_role_name = tgui_input_list(usr,"Select a role!","Custom Setup Creation", rolelist_dict)
|
||||
var/chosen_role_name = input(usr,"Select a role!","Custom Setup Creation",rolelist_dict[1]) as null|anything in rolelist_dict
|
||||
if(chosen_role_name == "CANCEL")
|
||||
return
|
||||
if(chosen_role_name == "FINISH")
|
||||
break
|
||||
var/found_path = rolelist_dict[chosen_role_name]
|
||||
var/role_count = tgui_input_num(usr,"How many? Zero to cancel.","Custom Setup Creation",0)
|
||||
var/role_count = input(usr,"How many? Zero to cancel.","Custom Setup Creation",0) as null|num
|
||||
if(role_count > 0)
|
||||
debug_setup[found_path] = role_count
|
||||
custom_setup = debug_setup
|
||||
|
||||
Reference in New Issue
Block a user