mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 20:20:33 +01:00
TGUI list input conversions (#63315)
Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com> Co-authored-by: Sealed101 <75863639+Sealed101@users.noreply.github.com>
This commit is contained in:
co-authored by
tralezab
Sealed101
parent
78cc356987
commit
60922e7cfc
@@ -608,7 +608,7 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
if(!silent)
|
||||
playsound(src, 'sound/machines/terminal_select.ogg', 15, TRUE)
|
||||
if("Drone Phone")
|
||||
var/alert_s = input(U,"Alert severity level","Ping Drones",null) as null|anything in list("Low","Medium","High","Critical")
|
||||
var/alert_s = tgui_input_list(U, "Alert severity level", "Ping Drones", list("Low","Medium","High","Critical"))
|
||||
var/area/A = get_area(U)
|
||||
if(A && alert_s && !QDELETED(U))
|
||||
var/msg = span_boldnotice("NON-DRONE PING: [U.name]: [alert_s] priority alert in [A.name]!")
|
||||
|
||||
@@ -845,7 +845,7 @@ GENE SCANNER
|
||||
for(var/A in buffer)
|
||||
options += get_display_name(A)
|
||||
|
||||
var/answer = input(user, "Analyze Potential", "Sequence Analyzer") as null|anything in sort_list(options)
|
||||
var/answer = tgui_input_list(user, "Analyze Potential", "Sequence Analyzer", sort_list(options))
|
||||
if(answer && ready && user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK))
|
||||
var/sequence
|
||||
for(var/A in buffer) //this physically hurts but i dont know what anything else short of an assoc list
|
||||
|
||||
@@ -262,7 +262,7 @@
|
||||
to_chat(user, span_notice("Your pinpointer fails to detect a signal."))
|
||||
return
|
||||
|
||||
var/A = input(user, "", "Pinpoint") as null|anything in sort_list(beacons)
|
||||
var/A = tgui_input_list(user, "Select a location", "Pinpoint", sort_list(beacons))
|
||||
if(!A || QDELETED(src) || !user || !user.is_holding(src) || user.incapacitated())
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user