Replace list inputs with tgui_input_list

This commit is contained in:
Aronai Sieyes
2021-06-26 10:39:56 -04:00
parent d51083913f
commit 4c12504e3b
357 changed files with 927 additions and 1140 deletions
@@ -180,7 +180,7 @@
for(var/obj/item/weapon/computer_hardware/H in all_components)
component_names.Add(H.name)
var/choice = input(usr, "Which component do you want to uninstall?", "Computer maintenance", null) as null|anything in component_names
var/choice = tgui_input_list(usr, "Which component do you want to uninstall?", "Computer maintenance", component_names)
if(!choice)
return
@@ -34,7 +34,7 @@
pixel_y = 0
to_chat(user, "You unsecure \the [src].")
else
var/choice = input(user, "Where do you want to place \the [src]?", "Offset selection") in list("North", "South", "West", "East", "This tile", "Cancel")
var/choice = tgui_input_list(user, "Where do you want to place \the [src]?", "Offset selection", list("North", "South", "West", "East", "This tile", "Cancel"))
var/valid = FALSE
switch(choice)
if("North")