Revert "TGUI alerts, lists, inputs"
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
var/targetselected = FALSE
|
||||
var/returnval
|
||||
|
||||
switch(tgui_alert(usr, "Proc owned by something?",,list("Yes","No")))
|
||||
switch(alert("Proc owned by something?",,"Yes","No"))
|
||||
if("Yes")
|
||||
targetselected = TRUE
|
||||
var/list/value = vv_get_value(default_class = VV_ATOM_REFERENCE, classes = list(VV_ATOM_REFERENCE, VV_DATUM_REFERENCE, VV_MOB_REFERENCE, VV_CLIENT, VV_MARKED_DATUM, VV_TEXT_LOCATE, VV_PROCCALL_RETVAL))
|
||||
@@ -26,7 +26,7 @@
|
||||
target = null
|
||||
targetselected = FALSE
|
||||
|
||||
var/procpath = tgui_input_text(src, "Proc path, eg: /proc/fake_blood","Path:", null)
|
||||
var/procpath = input("Proc path, eg: /proc/fake_blood","Path:", null) as text|null
|
||||
if(!procpath)
|
||||
return
|
||||
|
||||
@@ -136,7 +136,7 @@ GLOBAL_PROTECT(LastAdminCalledProc)
|
||||
if(!check_rights(R_DEBUG))
|
||||
return
|
||||
|
||||
var/procname = tgui_input_text(src, "Proc name, eg: fake_blood","Proc:", null)
|
||||
var/procname = input("Proc name, eg: fake_blood","Proc:", null) as text|null
|
||||
if(!procname)
|
||||
return
|
||||
if(!hascall(A,procname))
|
||||
@@ -161,14 +161,14 @@ GLOBAL_PROTECT(LastAdminCalledProc)
|
||||
to_chat(usr, ., confidential = TRUE)
|
||||
|
||||
/client/proc/get_callproc_args()
|
||||
var/argnum = tgui_input_num(src, "Number of arguments","Number:",0)
|
||||
var/argnum = input("Number of arguments","Number:",0) as num|null
|
||||
if(isnull(argnum))
|
||||
return
|
||||
|
||||
. = list()
|
||||
var/list/named_args = list()
|
||||
while(argnum--)
|
||||
var/named_arg = tgui_input_text(src, "Leave blank for positional argument. Positional arguments will be considered as if they were added first.", "Named argument")
|
||||
var/named_arg = input("Leave blank for positional argument. Positional arguments will be considered as if they were added first.", "Named argument") as text|null
|
||||
var/value = vv_get_value(restricted_classes = list(VV_RESTORE_DEFAULT))
|
||||
if (!value["class"])
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user