Revert "TGUI alerts, lists, inputs"
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
if(..())
|
||||
return
|
||||
var/A
|
||||
A = tgui_input_list(usr, "Area to bombard", "Open Fire", GLOB.teleportlocs)
|
||||
A = input("Area to bombard", "Open Fire", A) in GLOB.teleportlocs
|
||||
var/area/thearea = GLOB.teleportlocs[A]
|
||||
if(usr.stat || usr.restrained())
|
||||
return
|
||||
|
||||
@@ -210,7 +210,7 @@
|
||||
/obj/machinery/capture_the_flag/attack_ghost(mob/user)
|
||||
if(ctf_enabled == FALSE)
|
||||
if(user.client && user.client.holder)
|
||||
var/response = tgui_alert(user, "Enable CTF?", "CTF", list("Yes", "No"))
|
||||
var/response = alert("Enable CTF?", "CTF", "Yes", "No")
|
||||
if(response == "Yes")
|
||||
toggle_all_ctf(user)
|
||||
return
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
var/mob/dead/observer/O = user
|
||||
if(!O.can_reenter_round() && !skip_reentry_check)
|
||||
return FALSE
|
||||
var/ghost_role = tgui_alert(user, latejoinercalling ? "Latejoin as [mob_name]? (This is a ghost role, and as such, it's very likely to be off-station.)" : "Become [mob_name]? (Warning, You can no longer be cloned!)",,list("Yes","No"))
|
||||
var/ghost_role = alert(latejoinercalling ? "Latejoin as [mob_name]? (This is a ghost role, and as such, it's very likely to be off-station.)" : "Become [mob_name]? (Warning, You can no longer be cloned!)",,"Yes","No")
|
||||
if(ghost_role == "No" || !loc)
|
||||
return
|
||||
if(QDELETED(src) || QDELETED(user))
|
||||
@@ -595,7 +595,7 @@
|
||||
job_description = "Space Bar Patron"
|
||||
|
||||
/obj/effect/mob_spawn/human/alive/space_bar_patron/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
|
||||
var/despawn = tgui_alert(user, "Return to cryosleep? (Warning, Your mob will be deleted!)",,list("Yes","No"))
|
||||
var/despawn = alert("Return to cryosleep? (Warning, Your mob will be deleted!)",,"Yes","No")
|
||||
if(despawn == "No" || !loc || !Adjacent(user))
|
||||
return
|
||||
user.visible_message("<span class='notice'>[user.name] climbs back into cryosleep...</span>")
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
else
|
||||
chargesa--
|
||||
insistinga = 0
|
||||
var/wish = tgui_input_list(usr, "You want...","Wish", list("Power","Wealth","Immortality","To Kill","Peace"))
|
||||
var/wish = input("You want...","Wish") as null|anything in list("Power","Wealth","Immortality","To Kill","Peace")
|
||||
switch(wish)
|
||||
if("Power")
|
||||
to_chat(user, "<B>Your wish is granted, but at a terrible cost...</B>")
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
if(tgui_alert(user, question,name,list("Yes","No")) == "Yes" && Adjacent(user))
|
||||
if(alert(question,name,"Yes","No") == "Yes" && Adjacent(user))
|
||||
var/turf/T = find_safe_turf(zlevels=zlevels)
|
||||
|
||||
if(T)
|
||||
|
||||
Reference in New Issue
Block a user