mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-20 20:54:35 +01:00
The One Where I Port Modals
This commit is contained in:
+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)
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
ntnet_global.setting_disabled = FALSE
|
||||
return TRUE
|
||||
|
||||
var/response = alert(usr, "Really disable NTNet wireless? If your computer is connected wirelessly you won't be able to turn it back on! This will affect all connected wireless devices.", "NTNet shutdown", "Yes", "No")
|
||||
var/response = tgui_alert(usr, "Really disable NTNet wireless? If your computer is connected wirelessly you won't be able to turn it back on! This will affect all connected wireless devices.", "NTNet shutdown", list("Yes", "No"))
|
||||
if(response == "Yes" && tgui_status(usr, state) == STATUS_INTERACTIVE)
|
||||
ntnet_global.setting_disabled = TRUE
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user