mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 22:18:27 +01:00
Replace list inputs with tgui_input_list
This commit is contained in:
@@ -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")
|
||||
|
||||
+1
-1
@@ -117,7 +117,7 @@
|
||||
return TRUE
|
||||
|
||||
if("newaccount")
|
||||
var/newdomain = sanitize(input(usr,"Pick domain:", "Domain name") as null|anything in using_map.usable_email_tlds)
|
||||
var/newdomain = sanitize(tgui_input_list(usr,"Pick domain:", "Domain name", using_map.usable_email_tlds))
|
||||
if(!newdomain)
|
||||
return TRUE
|
||||
var/newlogin = sanitize(input(usr,"Pick account name (@[newdomain]):", "Account name"), 100)
|
||||
|
||||
@@ -80,14 +80,16 @@ var/warrant_uid = 0
|
||||
if("addwarrant")
|
||||
. = TRUE
|
||||
var/datum/data/record/warrant/W = new()
|
||||
var/temp = sanitize(input(usr, "Do you want to create a search-, or an arrest warrant?") as null|anything in list("search","arrest"))
|
||||
var/temp = tgui_alert(usr, "Do you want to create a search-, or an arrest warrant?", "Warrant Type", list("Search","Arrest","Cancel"))
|
||||
if(!temp)
|
||||
return
|
||||
if(tgui_status(usr, state) == STATUS_INTERACTIVE)
|
||||
if(temp == "arrest")
|
||||
if(temp == "Arrest")
|
||||
W.fields["namewarrant"] = "Unknown"
|
||||
W.fields["charges"] = "No charges present"
|
||||
W.fields["auth"] = "Unauthorized"
|
||||
W.fields["arrestsearch"] = "arrest"
|
||||
if(temp == "search")
|
||||
if(temp == "Search")
|
||||
W.fields["namewarrant"] = "No suspect/location given" // VOREStation edit
|
||||
W.fields["charges"] = "No reason given"
|
||||
W.fields["auth"] = "Unauthorized"
|
||||
@@ -109,7 +111,7 @@ var/warrant_uid = 0
|
||||
var/namelist = list()
|
||||
for(var/datum/data/record/t in data_core.general)
|
||||
namelist += t.fields["name"]
|
||||
var/new_name = sanitize(input(usr, "Please input name") as null|anything in namelist)
|
||||
var/new_name = sanitize(tgui_input_list(usr, "Please input name:", "Name Choice", namelist))
|
||||
if(tgui_status(usr, state) == STATUS_INTERACTIVE)
|
||||
if (!new_name)
|
||||
return
|
||||
@@ -117,7 +119,7 @@ var/warrant_uid = 0
|
||||
|
||||
if("editwarrantnamecustom")
|
||||
. = TRUE
|
||||
var/new_name = sanitize(input("Please input name") as null|text)
|
||||
var/new_name = sanitize(input(usr, "Please input name") as null|text)
|
||||
if(tgui_status(usr, state) == STATUS_INTERACTIVE)
|
||||
if (!new_name)
|
||||
return
|
||||
@@ -125,7 +127,7 @@ var/warrant_uid = 0
|
||||
|
||||
if("editwarrantcharges")
|
||||
. = TRUE
|
||||
var/new_charges = sanitize(input("Please input charges", "Charges", activewarrant.fields["charges"]) as null|text)
|
||||
var/new_charges = sanitize(input(usr, "Please input charges", "Charges", activewarrant.fields["charges"]) as null|text)
|
||||
if(tgui_status(usr, state) == STATUS_INTERACTIVE)
|
||||
if (!new_charges)
|
||||
return
|
||||
|
||||
@@ -285,7 +285,7 @@
|
||||
return 0
|
||||
|
||||
if(customer_account.security_level != 0) //If card requires pin authentication (ie seclevel 1 or 2)
|
||||
var/attempt_pin = input("Enter pin code", "Vendor transaction") as num
|
||||
var/attempt_pin = input(usr, "Enter pin code", "Vendor transaction") as num
|
||||
customer_account = attempt_account_access(I.associated_account_number, attempt_pin, 2)
|
||||
|
||||
if(!customer_account)
|
||||
|
||||
Reference in New Issue
Block a user