diff --git a/code/controllers/subsystems/garbage.dm b/code/controllers/subsystems/garbage.dm
index 362a4055bc..9da198fdaf 100644
--- a/code/controllers/subsystems/garbage.dm
+++ b/code/controllers/subsystems/garbage.dm
@@ -362,7 +362,7 @@ SUBSYSTEM_DEF(garbage)
return
if(!skip_alert)
- if(alert(usr, "Running this will lock everything up for about 5 minutes. Would you like to begin the search?", "Find References", "Yes", "No") == "No")
+ if(tgui_alert(usr, "Running this will lock everything up for about 5 minutes. Would you like to begin the search?", "Find References", list("Yes", "No")) == "No")
running_find_references = null
return
diff --git a/code/controllers/subsystems/media_tracks.dm b/code/controllers/subsystems/media_tracks.dm
index bb9e3d8637..53805bcbec 100644
--- a/code/controllers/subsystems/media_tracks.dm
+++ b/code/controllers/subsystems/media_tracks.dm
@@ -129,7 +129,7 @@ SUBSYSTEM_DEF(media_tracks)
if(isnull(genre)) // Cancel rather than empty string
return
- var/secret = alert(C, "Optional: Mark track as secret?", "Track Secret", "Yes", "Cancel", "No")
+ var/secret = tgui_alert(C, "Optional: Mark track as secret?", "Track Secret", list("Yes", "Cancel", "No"))
if(secret == "Cancel")
return
else if(secret == "Yes")
@@ -137,7 +137,7 @@ SUBSYSTEM_DEF(media_tracks)
else
secret = FALSE
- var/lobby = alert(C, "Optional: Mark track as lobby music?", "Track Lobby", "Yes", "Cancel", "No")
+ var/lobby = tgui_alert(C, "Optional: Mark track as lobby music?", "Track Lobby", list("Yes", "Cancel", "No"))
if(lobby == "Cancel")
return
else if(secret == "Yes")
diff --git a/code/controllers/subsystems/supply.dm b/code/controllers/subsystems/supply.dm
index f47131a05a..04908f3f31 100644
--- a/code/controllers/subsystems/supply.dm
+++ b/code/controllers/subsystems/supply.dm
@@ -309,8 +309,8 @@ SUBSYSTEM_DEF(supply)
// Will delete the specified order from the user-side list
/datum/controller/subsystem/supply/proc/delete_order(var/datum/supply_order/O, var/mob/user)
// Making sure they know what they're doing
- if(alert(user, "Are you sure you want to delete this record? If it has been approved, cargo points will NOT be refunded!", "Delete Record","No","Yes") == "Yes")
- if(alert(user, "Are you really sure? There is no way to recover the order once deleted.", "Delete Record", "No","Yes") == "Yes")
+ if(tgui_alert(user, "Are you sure you want to delete this record? If it has been approved, cargo points will NOT be refunded!", "Delete Record",list("No","Yes")) == "Yes")
+ if(tgui_alert(user, "Are you really sure? There is no way to recover the order once deleted.", "Delete Record", list("No","Yes")) == "Yes")
log_admin("[key_name(user)] has deleted supply order \ref[O] [O] from the user-side order history.")
order_history -= O
return
@@ -353,8 +353,8 @@ SUBSYSTEM_DEF(supply)
// Will delete the specified export receipt from the user-side list
/datum/controller/subsystem/supply/proc/delete_export(var/datum/exported_crate/E, var/mob/user)
// Making sure they know what they're doing
- if(alert(user, "Are you sure you want to delete this record?", "Delete Record","No","Yes") == "Yes")
- if(alert(user, "Are you really sure? There is no way to recover the receipt once deleted.", "Delete Record", "No","Yes") == "Yes")
+ if(tgui_alert(user, "Are you sure you want to delete this record?", "Delete Record",list("No","Yes")) == "Yes")
+ if(tgui_alert(user, "Are you really sure? There is no way to recover the receipt once deleted.", "Delete Record", list("No","Yes")) == "Yes")
log_admin("[key_name(user)] has deleted export receipt \ref[E] [E] from the user-side export history.")
exported_crates -= E
return
diff --git a/code/controllers/subsystems/vote.dm b/code/controllers/subsystems/vote.dm
index 210d97a2a2..e4deb85a88 100644
--- a/code/controllers/subsystems/vote.dm
+++ b/code/controllers/subsystems/vote.dm
@@ -352,7 +352,7 @@ SUBSYSTEM_DEF(vote)
if("cancel")
if(usr.client.holder)
- if("Yes" == alert(usr, "You are about to cancel this vote. Are you sure?", "Cancel Vote", "No", "Yes"))
+ if("Yes" == tgui_alert(usr, "You are about to cancel this vote. Are you sure?", list("Cancel Vote", "No", "Yes")))
reset()
if("toggle_restart")
if(usr.client.holder)
diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm
index da98fd4cef..ec17f07b9b 100644
--- a/code/datums/datumvars.dm
+++ b/code/datums/datumvars.dm
@@ -42,7 +42,7 @@
var/client/C = value["value"]
if (!C)
return
- var/prompt = alert(usr, "Do you want to grant [C] access to view this VV window? (they will not be able to edit or change anysrc nor open nested vv windows unless they themselves are an admin)", "Confirm", "Yes", "No")
+ var/prompt = tgui_alert(usr, "Do you want to grant [C] access to view this VV window? (they will not be able to edit or change anysrc nor open nested vv windows unless they themselves are an admin)", "Confirm", list("Yes", "No"))
if (prompt != "Yes" || !usr.client)
return
message_admins("[key_name_admin(usr)] Showed [key_name_admin(C)] a VV window")
diff --git a/code/datums/ghost_query.dm b/code/datums/ghost_query.dm
index f3a84d533d..454b009271 100644
--- a/code/datums/ghost_query.dm
+++ b/code/datums/ghost_query.dm
@@ -46,14 +46,14 @@
window_flash(C)
if(query_sound)
SEND_SOUND(C, sound(query_sound))
- var/response = alert(C, question, "[role_name] request", "Yes", "No", "Never for this round")
+ var/response = tgui_alert(C, question, "[role_name] request", list("Yes", "No", "Never for this round"))
if(response == "Yes")
- response = alert(C, "Are you sure you want to play as a [role_name]?", "[role_name] request", "Yes", "No") // Protection from a misclick.
+ response = tgui_alert(C, "Are you sure you want to play as a [role_name]?", "[role_name] request", list("Yes", "No")) // Protection from a misclick.
if(!C || !src)
return
if(response == "Yes")
if(finished || (cutoff_number && candidates.len >= cutoff_number) )
- to_chat(C, "Unfortunately, you were not fast enough, and there are no more available roles. Sorry.")
+ to_chat(C, "Unfortunately, you were not fast enough, and there are no more available roles. Sorry.")
return
candidates.Add(C.mob)
if(cutoff_number && candidates.len >= cutoff_number)
diff --git a/code/datums/locations/locations.dm b/code/datums/locations/locations.dm
index 688217fea0..575f123f1b 100644
--- a/code/datums/locations/locations.dm
+++ b/code/datums/locations/locations.dm
@@ -30,8 +30,7 @@ var/global/datum/locations/milky_way/all_locations = new()
/proc/choose_location_datum(client/user)
var/datum/locations/choice = all_locations
while(length(choice.contents) > 0) //For some reason it wouldn't let me do contents.len even when I defined it as a list.
- var/specific = alert(user, "The location currently selected is [choice.name]. More specific options exist, would you like to pick a more specific location?",
- "Choose location", "Yes", "No")
+ var/specific = tgui_alert(user, "The location currently selected is [choice.name]. More specific options exist, would you like to pick a more specific location?", "Choose location", list("Yes", "No"))
if(specific == "Yes" && length(choice.contents) > 0)
choice = input(user, "Please choose a location.", "Locations") as null|anything in choice.contents
else
diff --git a/code/datums/managed_browsers/feedback_form.dm b/code/datums/managed_browsers/feedback_form.dm
index 00755c7624..6004fff5b2 100644
--- a/code/datums/managed_browsers/feedback_form.dm
+++ b/code/datums/managed_browsers/feedback_form.dm
@@ -129,7 +129,7 @@ GENERAL_PROTECT_DATUM(/datum/managed_browser/feedback_form)
to_chat(my_client, span("warning", "It appears you didn't write anything, or it was invalid."))
return
- if(alert(my_client, "Are you sure you want to submit your feedback?", "Confirm Submission", "No", "Yes") == "Yes")
+ if(tgui_alert(my_client, "Are you sure you want to submit your feedback?", "Confirm Submission", list("No", "Yes")) == "Yes")
var/author_text = my_client.ckey
if(can_be_private() && feedback_hide_author)
author_text = md5(my_client.ckey + SSsqlite.get_feedback_pepper())
diff --git a/code/datums/mind.dm b/code/datums/mind.dm
index 9ecada8a9e..e135944170 100644
--- a/code/datums/mind.dm
+++ b/code/datums/mind.dm
@@ -122,7 +122,7 @@
/datum/mind/proc/edit_memory()
if(!ticker || !ticker.mode)
- alert(usr, "Not before round-start!", "Alert")
+ tgui_alert_async(usr, "Not before round-start!", "Alert")
return
var/out = "[name][(current&&(current.real_name!=name))?" (as [current.real_name])":""]
"
diff --git a/code/defines/obj.dm b/code/defines/obj.dm
index 8103e91a14..8272b7d39b 100644
--- a/code/defines/obj.dm
+++ b/code/defines/obj.dm
@@ -8,7 +8,7 @@
return attack_hand(user)
/obj/structure/signpost/attack_hand(mob/user as mob)
- if(alert(user, "Travel back to ss13?","Return?","Yes","No") == "Yes")
+ if(tgui_alert(user, "Travel back to ss13?","Return?",list("Yes","No")) == "Yes")
if(user.z != src.z) return
user.forceMove(pick(latejoin))
diff --git a/code/game/antagonist/antagonist_factions.dm b/code/game/antagonist/antagonist_factions.dm
index 18bfddcdfd..6e18b57a3b 100644
--- a/code/game/antagonist/antagonist_factions.dm
+++ b/code/game/antagonist/antagonist_factions.dm
@@ -34,7 +34,7 @@
message_admins("[src]([src.ckey]) attempted to convert [player.current].")
player.rev_cooldown = world.time+100
- var/choice = alert(player.current, "Asked by [src]: Do you want to join the [faction.faction_descriptor]?", "Join the [faction.faction_descriptor]?", "No!","Yes!")
+ var/choice = tgui_alert(player.current, "Asked by [src]: Do you want to join the [faction.faction_descriptor]?", "Join the [faction.faction_descriptor]?", list("No!","Yes!"))
if(choice == "Yes!" && faction.add_antagonist_mind(player, 0, faction.faction_role_text, faction.faction_welcome))
to_chat(src, "\The [player.current] joins the [faction.faction_descriptor]!")
return
diff --git a/code/game/antagonist/station/highlander.dm b/code/game/antagonist/station/highlander.dm
index c1c7592d7b..9b54383278 100644
--- a/code/game/antagonist/station/highlander.dm
+++ b/code/game/antagonist/station/highlander.dm
@@ -56,7 +56,7 @@ var/datum/antagonist/highlander/highlanders
/proc/only_one()
if(!ticker)
- alert(usr,"The game hasn't started yet!")
+ tgui_alert_async(usr,"The game hasn't started yet!")
return
for(var/mob/living/carbon/human/H in player_list)
diff --git a/code/game/gamemodes/changeling/powers/fake_death.dm b/code/game/gamemodes/changeling/powers/fake_death.dm
index de50443a8d..daa0b9e246 100644
--- a/code/game/gamemodes/changeling/powers/fake_death.dm
+++ b/code/game/gamemodes/changeling/powers/fake_death.dm
@@ -22,7 +22,7 @@
to_chat(src, "We have no genomes, not even our own, and cannot regenerate.")
return 0
- if(!C.stat && alert(src, "Are we sure we wish to regenerate? We will appear to be dead while doing so.","Revival","Yes","No") == "No")
+ if(!C.stat && tgui_alert(src, "Are we sure we wish to regenerate? We will appear to be dead while doing so.","Revival",list("Yes","No")) == "No")
return
to_chat(C, "We will attempt to regenerate our form.")
diff --git a/code/game/gamemodes/cult/ritual.dm b/code/game/gamemodes/cult/ritual.dm
index 2b388e683e..e3aac4fb4e 100644
--- a/code/game/gamemodes/cult/ritual.dm
+++ b/code/game/gamemodes/cult/ritual.dm
@@ -330,10 +330,10 @@ var/global/list/rnwords = list("ire","ego","nahlizet","certum","veri","jatkaa","
return
if (C>=26 + runedec + cult.current_antagonists.len) //including the useless rune at the secret room, shouldn't count against the limit of 25 runes - Urist
- alert(user, "The cloth of reality can't take that much of a strain. Remove some runes first!")
+ tgui_alert_async(user, "The cloth of reality can't take that much of a strain. Remove some runes first!")
return
else
- switch(alert(user, "You open the tome", "Tome", "Read it","Scribe a rune","Cancel"))
+ switch(tgui_alert(user, "You open the tome", "Tome", list("Read it","Scribe a rune","Cancel")))
if("Cancel")
return
if("Read it")
diff --git a/code/game/gamemodes/cult/runes.dm b/code/game/gamemodes/cult/runes.dm
index 7526cecad5..05507ec6a4 100644
--- a/code/game/gamemodes/cult/runes.dm
+++ b/code/game/gamemodes/cult/runes.dm
@@ -172,7 +172,7 @@ var/list/sacrificed = list()
to_chat(target, "And you were able to force it out of your mind. You now know the truth, there's something horrible out there, stop it and its minions at all costs.")
else spawn()
- var/choice = alert(target,"Do you want to join the cult?","Submit to Nar'Sie","Resist","Submit")
+ var/choice = tgui_alert(target,"Do you want to join the cult?","Submit to Nar'Sie",list("Resist","Submit"))
waiting_for_input[target] = 0
if(choice == "Submit") //choosing 'Resist' does nothing of course.
cult.add_antagonist(target.mind)
diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/HARDWARE.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/HARDWARE.dm
index 0390fb55f7..df2d223c6e 100644
--- a/code/game/gamemodes/malfunction/newmalf_ability_trees/HARDWARE.dm
+++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/HARDWARE.dm
@@ -23,7 +23,7 @@
user.bombing_core = 0
return
- var/choice = alert(user, "Really destroy core?", "Core self-destruct", "YES", "NO")
+ var/choice = tgui_alert(user, "Really destroy core?", "Core self-destruct", list("YES", "NO"))
if(choice != "YES")
return
@@ -82,7 +82,7 @@
user.bombing_station = 0
return
- var/choice = alert(user, "Really destroy station?", "Station self-destruct", "YES", "NO")
+ var/choice = tgui_alert(user, "Really destroy station?", "Station self-destruct", list("YES", "NO"))
if(choice != "YES")
return
if(!ability_prechecks(user, 0, 0))
diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm
index ec32f445d7..d149450025 100644
--- a/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm
+++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm
@@ -47,7 +47,7 @@
error("Hardware without description: [C]")
return
- var/confirmation = alert(user, "[note] - Is this what you want?", "Hardware selection", "Yes", "No")
+ var/confirmation = tgui_alert(user, "[note] - Is this what you want?", "Hardware selection", list("Yes", "No"))
if(confirmation != "Yes")
to_chat(user, "Selection cancelled. Use command again to select")
return
diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_interdiction.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_interdiction.dm
index aeb2439eeb..24a36f93c7 100644
--- a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_interdiction.dm
+++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_interdiction.dm
@@ -47,7 +47,7 @@
if(!ability_prechecks(user, price))
return
- if (alert(user, "Really recall the shuttle?", "Recall Shuttle: ", "Yes", "No") != "Yes")
+ if (tgui_alert(user, "Really recall the shuttle?", "Recall Shuttle: ", list(list("Yes", "No"))) != "Yes")
return
if(!ability_pay(user, price))
@@ -102,7 +102,7 @@
break
if(target)
- if(alert(user, "Really try to unlock cyborg [target.name]?", "Unlock Cyborg", "Yes", "No") != "Yes")
+ if(tgui_alert(user, "Really try to unlock cyborg [target.name]?", "Unlock Cyborg", list("Yes", "No")) != "Yes")
return
if(!ability_pay(user, price))
return
@@ -153,7 +153,7 @@
return
if(target)
- if(alert(user, "Really try to hack cyborg [target.name]?", "Hack Cyborg", "Yes", "No") != "Yes")
+ if(tgui_alert(user, "Really try to hack cyborg [target.name]?", "Hack Cyborg", list("Yes", "No")) != "Yes")
return
if(!ability_pay(user, price))
return
@@ -213,7 +213,7 @@
return
if(target)
- if(alert(user, "Really try to hack AI [target.name]?", "Hack AI", "Yes", "No") != "Yes")
+ if(tgui_alert(user, "Really try to hack AI [target.name]?", "Hack AI", list("Yes", "No")) != "Yes")
return
if(!ability_pay(user, price))
return
@@ -248,7 +248,7 @@
to_chat(target, "SYSTEM LOG: User: Admin - Connection Lost. Changes Reverted.")
return
to_chat(user, "Hack succeeded. The AI is now under your exclusive control.")
- to_chat(target, "SYSTEM LOG: System re¡3RT5§^#COMU@(#$)TED)@$")
+ to_chat(target, "SYSTEM LOG: System re�3RT5�^#COMU@(#$)TED)@$")
for(var/i = 0, i < 5, i++)
var/temptxt = pick("1101000100101001010001001001",\
"0101000100100100000100010010",\
diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm
index 03f7474380..049eb87325 100644
--- a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm
+++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm
@@ -140,7 +140,7 @@
set desc = "500 CPU - Begins hacking station's primary firewall, quickly overtaking remaining APC systems. When completed grants access to station's self-destruct mechanism. Network administrators will probably notice this."
var/price = 500
var/mob/living/silicon/ai/user = usr
- if (alert(user, "Begin system override? This cannot be stopped once started. The network administrators will probably notice this.", "System Override:", "Yes", "No") != "Yes")
+ if (tgui_alert(user, "Begin system override? This cannot be stopped once started. The network administrators will probably notice this.", "System Override:", list("Yes", "No")) != "Yes")
return
if (!ability_prechecks(user, price) || !ability_pay(user, price) || user.system_override)
if(user.system_override)
diff --git a/code/game/gamemodes/nuclear/pinpointer.dm b/code/game/gamemodes/nuclear/pinpointer.dm
index 80e9053e42..e6a5806e17 100644
--- a/code/game/gamemodes/nuclear/pinpointer.dm
+++ b/code/game/gamemodes/nuclear/pinpointer.dm
@@ -120,7 +120,7 @@
target=null
location = null
- switch(alert(usr, "Please select the mode you want to put the pinpointer in.", "Pinpointer Mode Select", "Location", "Disk Recovery", "Other Signature"))
+ switch(tgui_alert(usr, "Please select the mode you want to put the pinpointer in.", "Pinpointer Mode Select", list("Location", "Disk Recovery", "Other Signature")))
if("Location")
mode = 1
@@ -145,7 +145,7 @@
if("Other Signature")
mode = 2
- switch(alert(usr, "Search for item signature or DNA fragment?" , "Signature Mode Select" , "" , "Item" , "DNA"))
+ switch(tgui_alert(usr, "Search for item signature or DNA fragment?", "Signature Mode Select", list("Item", "DNA")))
if("Item")
var/datum/objective/steal/itemlist
diff --git a/code/game/gamemodes/sandbox/h_sandbox.dm b/code/game/gamemodes/sandbox/h_sandbox.dm
index cde2f9a2a2..49d5901527 100644
--- a/code/game/gamemodes/sandbox/h_sandbox.dm
+++ b/code/game/gamemodes/sandbox/h_sandbox.dm
@@ -101,7 +101,7 @@ mob
hsb.req_access = list()
var/accesses = get_all_accesses()
for(var/A in accesses)
- if(alert(usr, "Will this airlock require [get_access_desc(A)] access?", "Sandbox:", "Yes", "No") == "Yes")
+ if(tgui_alert(usr, "Will this airlock require [get_access_desc(A)] access?", "Sandbox:", list("Yes", "No")) == "Yes")
LAZYADD(hsb.req_access, A)
hsb.loc = usr.loc
diff --git a/code/game/gamemodes/technomancer/spells/control.dm b/code/game/gamemodes/technomancer/spells/control.dm
index 0e0cf5eb20..3ca26b3b04 100644
--- a/code/game/gamemodes/technomancer/spells/control.dm
+++ b/code/game/gamemodes/technomancer/spells/control.dm
@@ -88,8 +88,7 @@
/obj/item/weapon/spell/control/on_use_cast(mob/living/user)
if(controlled_mobs.len != 0)
- var/choice = alert(user,"Would you like to release control of the entities you are controlling? They won't be friendly \
- to you anymore if you do this, so be careful.","Release Control?","No","Yes")
+ var/choice = tgui_alert(user,"Would you like to release control of the entities you are controlling? They won't be friendly to you anymore if you do this, so be careful.","Release Control?",list("No","Yes"))
if(choice == "Yes")
for(var/mob/living/L in controlled_mobs)
deselect(L)
diff --git a/code/game/gamemodes/technomancer/spells/illusion.dm b/code/game/gamemodes/technomancer/spells/illusion.dm
index 5d626f7c47..dcadf53ffb 100644
--- a/code/game/gamemodes/technomancer/spells/illusion.dm
+++ b/code/game/gamemodes/technomancer/spells/illusion.dm
@@ -44,7 +44,7 @@
/obj/item/weapon/spell/illusion/on_use_cast(mob/user)
if(illusion)
- var/choice = alert(user, "Would you like to have \the [illusion] speak, or do an emote?", "Illusion", "Speak","Emote","Cancel")
+ var/choice = tgui_alert(user, "Would you like to have \the [illusion] speak, or do an emote?", "Illusion", list("Speak","Emote","Cancel"))
switch(choice)
if("Cancel")
return
diff --git a/code/game/machinery/bioprinter.dm b/code/game/machinery/bioprinter.dm
index 43cd3e0e2d..285268b75e 100644
--- a/code/game/machinery/bioprinter.dm
+++ b/code/game/machinery/bioprinter.dm
@@ -132,7 +132,7 @@
return
if(container)
- var/response = alert(user, "What do you want to do?", "Bioprinter Menu", "Print Limbs", "Cancel")
+ var/response = tgui_alert(user, "What do you want to do?", list("Bioprinter Menu", "Print Limbs", "Cancel"))
if(response == "Print Limbs")
printing_menu(user)
else
diff --git a/code/game/machinery/camera/camera_assembly.dm b/code/game/machinery/camera/camera_assembly.dm
index 9f73b10e61..7793a0ebbe 100644
--- a/code/game/machinery/camera/camera_assembly.dm
+++ b/code/game/machinery/camera/camera_assembly.dm
@@ -110,7 +110,7 @@
if(direct != "LEAVE IT")
C.dir = text2dir(direct)
if(i != 0)
- var/confirm = alert(user, "Is this what you want? Chances Remaining: [i]", "Confirmation", "Yes", "No")
+ var/confirm = tgui_alert(user, "Is this what you want? Chances Remaining: [i]", "Confirmation", list("Yes", "No"))
if(confirm == "Yes")
break
return
diff --git a/code/game/machinery/computer/ai_core.dm b/code/game/machinery/computer/ai_core.dm
index 397366c6c2..72fa3cb656 100644
--- a/code/game/machinery/computer/ai_core.dm
+++ b/code/game/machinery/computer/ai_core.dm
@@ -168,7 +168,7 @@
playsound(src, P.usesound, 50, 1)
to_chat(user, "You connect the monitor.")
if(!brain)
- var/open_for_latejoin = alert(user, "Would you like this core to be open for latejoining AIs?", "Latejoin", "Yes", "Yes", "No") == "Yes"
+ var/open_for_latejoin = tgui_alert(user, "Would you like this core to be open for latejoining AIs?", "Latejoin", list("Yes", "No")) == "Yes"
var/obj/structure/AIcore/deactivated/D = new(loc)
if(open_for_latejoin)
empty_playable_ai_cores += D
diff --git a/code/game/machinery/computer/guestpass.dm b/code/game/machinery/computer/guestpass.dm
index 12789b4ecb..260633fd71 100644
--- a/code/game/machinery/computer/guestpass.dm
+++ b/code/game/machinery/computer/guestpass.dm
@@ -45,7 +45,7 @@
to_chat(user, "This guest pass is already deactivated!")
return
- var/confirm = alert(usr, "Do you really want to deactivate this guest pass? (you can't reactivate it)", "Confirm Deactivation", "Yes", "No")
+ var/confirm = tgui_alert(usr, "Do you really want to deactivate this guest pass? (you can't reactivate it)", "Confirm Deactivation", list("Yes", "No"))
if(confirm == "Yes")
//rip guest pass 3
user.visible_message("\The [user] deactivates \the [src].")
diff --git a/code/game/machinery/computer/id_restorer_vr.dm b/code/game/machinery/computer/id_restorer_vr.dm
index af7f9304f9..c9bbf49a27 100644
--- a/code/game/machinery/computer/id_restorer_vr.dm
+++ b/code/game/machinery/computer/id_restorer_vr.dm
@@ -37,7 +37,7 @@
to_chat(user, "No ID is inserted.")
return
- var/choice = alert(user,"What do you want to do?","[src]","Restore ID access","Eject ID","Cancel")
+ var/choice = tgui_alert(user,"What do you want to do?","[src]",list("Restore ID access","Eject ID","Cancel"))
if(user.incapacitated() || (get_dist(src, user) > 1))
return
switch(choice)
diff --git a/code/game/machinery/computer/shuttle.dm b/code/game/machinery/computer/shuttle.dm
index d3de10cba1..d4e5867549 100644
--- a/code/game/machinery/computer/shuttle.dm
+++ b/code/game/machinery/computer/shuttle.dm
@@ -28,7 +28,7 @@
to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ")
return 0
- var/choice = alert(user, text("Would you like to (un)authorize a shortened launch time? [] authorization\s are still needed. Use abort to cancel all authorizations.", src.auth_need - src.authorized.len), "Shuttle Launch", "Authorize", "Repeal", "Abort")
+ var/choice = tgui_alert(user, text("Would you like to (un)authorize a shortened launch time? [] authorization\s are still needed. Use abort to cancel all authorizations.", src.auth_need - src.authorized.len), "Shuttle Launch", list("Authorize", "Repeal", "Abort"))
if(emergency_shuttle.location() && user.get_active_hand() != W)
return 0
switch(choice)
@@ -58,7 +58,7 @@
src.authorized = list( )
else if (istype(W, /obj/item/weapon/card/emag) && !emagged)
- var/choice = alert(user, "Would you like to launch the shuttle?","Shuttle control", "Launch", "Cancel")
+ var/choice = tgui_alert(user, "Would you like to launch the shuttle?", "Shuttle control", list("Launch", "Cancel"))
if(!emagged && !emergency_shuttle.location() && user.get_active_hand() == W)
switch(choice)
diff --git a/code/game/machinery/computer/supply.dm b/code/game/machinery/computer/supply.dm
index df2aebaef0..e805e151bd 100644
--- a/code/game/machinery/computer/supply.dm
+++ b/code/game/machinery/computer/supply.dm
@@ -394,7 +394,7 @@
if(!(authorization & SUP_ACCEPT_ORDERS))
return FALSE
var/list/L = E.contents[params["index"]]
- var/field = alert(usr, "Select which field to edit", , "Name", "Quantity", "Value")
+ var/field = tgui_alert(usr, "Select which field to edit", "Field Choice", list("Name", "Quantity", "Value"))
var/new_val = sanitize(input(usr, field, "Enter the new value for this field:", L[lowertext(field)]) as null|text)
if(!new_val)
diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm
index b0f77a97a9..51d97df592 100644
--- a/code/game/machinery/cryopod.dm
+++ b/code/game/machinery/cryopod.dm
@@ -664,7 +664,7 @@
var/willing = null //We don't want to allow people to be forced into despawning.
if(M.client)
- if(alert(M,"Would you like to enter long-term storage?","Cryopod","Yes","No") == "Yes")
+ if(tgui_alert(M,"Would you like to enter long-term storage?","Cryopod",list("Yes","No")) == "Yes")
if(!M) return
willing = 1
else
diff --git a/code/game/machinery/doors/firedoor.dm b/code/game/machinery/doors/firedoor.dm
index e9585aa812..d7617f5309 100644
--- a/code/game/machinery/doors/firedoor.dm
+++ b/code/game/machinery/doors/firedoor.dm
@@ -152,8 +152,8 @@
if(A.firedoors_closed)
alarmed = 1
- var/answer = alert(user, "Would you like to [density ? "open" : "close"] this [src.name]?[ alarmed && density ? "\nNote that by doing so, you acknowledge any damages from opening this\n[src.name] as being your own fault, and you will be held accountable under the law." : ""]",\
- "\The [src]", "Yes, [density ? "open" : "close"]", "No")
+ var/answer = tgui_alert(user, "Would you like to [density ? "open" : "close"] this [src.name]?[ alarmed && density ? "\nNote that by doing so, you acknowledge any damages from opening this\n[src.name] as being your own fault, and you will be held accountable under the law." : ""]",\
+ "\The [src]", list("Yes, [density ? "open" : "close"]", "No"))
if(answer == "No")
return
if(user.incapacitated() || (get_dist(src, user) > 1 && !issilicon(user)))
diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm
index 390009f25b..f3f18a7309 100644
--- a/code/game/machinery/hologram.dm
+++ b/code/game/machinery/hologram.dm
@@ -54,7 +54,7 @@ var/const/HOLOPAD_MODE = RANGE_BASED
/obj/machinery/hologram/holopad/attack_hand(var/mob/living/carbon/human/user) //Carn: Hologram requests.
if(!istype(user))
return
- if(alert(user,"Would you like to request an AI's presence?","Request AI","Yes","No") == "Yes")
+ if(tgui_alert(user,"Would you like to request an AI's presence?","Request AI",list("Yes","No")) == "Yes")
if(last_request + 200 < world.time) //don't spam the AI with requests you jerk!
last_request = world.time
to_chat(user, "You request an AI's presence.")
diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm
index f652f04539..d4fb9415a1 100644
--- a/code/game/machinery/newscaster.dm
+++ b/code/game/machinery/newscaster.dm
@@ -413,7 +413,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
set_temp("Error: Could not submit feed channel to network: A feed channel already exists under your name.", "danger", FALSE)
return TRUE
- var/choice = alert(usr, "Please confirm Feed channel creation","Network Channel Handler","Confirm","Cancel")
+ var/choice = tgui_alert(usr, "Please confirm Feed channel creation","Network Channel Handler",list("Confirm","Cancel"))
if(choice == "Confirm")
news_network.CreateFeedChannel(channel_name, our_user, c_locked)
set_temp("Feed channel [channel_name] created successfully.", "success", FALSE)
@@ -490,11 +490,11 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
set_temp("Error: Could not submit wanted issue to network: Author unverified.", "danger", FALSE)
return TRUE
- var/choice = alert(usr, "Please confirm Wanted Issue change.", "Network Security Handler", "Confirm", "Cancel")
+ var/choice = tgui_alert(usr, "Please confirm Wanted Issue change.", "Network Security Handler", list("Confirm", "Cancel"))
if(choice == "Confirm")
if(news_network.wanted_issue)
if(news_network.wanted_issue.is_admin_message)
- alert(usr, "The wanted issue has been distributed by a [using_map.company_name] higherup. You cannot edit it.", "Ok")
+ tgui_alert_async(usr, "The wanted issue has been distributed by a [using_map.company_name] higherup. You cannot edit it.")
return
news_network.wanted_issue.author = channel_name
news_network.wanted_issue.body = msg
@@ -519,9 +519,9 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
if(!securityCaster)
return FALSE
if(news_network.wanted_issue.is_admin_message)
- alert(usr, "The wanted issue has been distributed by a [using_map.company_name] higherup. You cannot take it down.","Ok")
+ tgui_alert_async(usr, "The wanted issue has been distributed by a [using_map.company_name] higherup. You cannot take it down.")
return
- var/choice = alert(usr, "Please confirm Wanted Issue removal","Network Security Handler","Confirm","Cancel")
+ var/choice = tgui_alert(usr, "Please confirm Wanted Issue removal","Network Security Handler",list("Confirm","Cancel"))
if(choice=="Confirm")
news_network.wanted_issue = null
for(var/obj/machinery/newscaster/NEWSCASTER in allCasters)
@@ -534,7 +534,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
return FALSE
var/datum/feed_channel/FC = locate(params["ref"])
if(FC.is_admin_channel)
- alert(usr, "This channel was created by a [using_map.company_name] Officer. You cannot censor it.","Ok")
+ tgui_alert_async(usr, "This channel was created by a [using_map.company_name] Officer. You cannot censor it.")
return
if(FC.author != "\[REDACTED\]")
FC.backup_author = FC.author
@@ -549,7 +549,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
return FALSE
var/datum/feed_message/MSG = locate(params["ref"])
if(MSG.is_admin_message)
- alert(usr, "This message was created by a [using_map.company_name] Officer. You cannot censor its author.","Ok")
+ tgui_alert_async(usr, "This message was created by a [using_map.company_name] Officer. You cannot censor its author.")
return
if(MSG.author != "\[REDACTED\]")
MSG.backup_author = MSG.author
@@ -564,7 +564,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
return FALSE
var/datum/feed_message/MSG = locate(params["ref"])
if(MSG.is_admin_message)
- alert(usr, "This channel was created by a [using_map.company_name] Officer. You cannot censor it.","Ok")
+ tgui_alert_async(usr, "This channel was created by a [using_map.company_name] Officer. You cannot censor it.")
return
if(MSG.body != "\[REDACTED\]")
MSG.backup_body = MSG.body
@@ -586,7 +586,7 @@ GLOBAL_LIST_BOILERPLATE(allCasters, /obj/machinery/newscaster)
return FALSE
var/datum/feed_channel/FC = locate(params["ref"])
if(FC.is_admin_channel)
- alert(usr, "This channel was created by a [using_map.company_name] Officer. You cannot place a D-Notice upon it.","Ok")
+ tgui_alert_async(usr, "This channel was created by a [using_map.company_name] Officer. You cannot place a D-Notice upon it.")
return
FC.censored = !FC.censored
FC.update()
diff --git a/code/game/machinery/pipe/pipelayer.dm b/code/game/machinery/pipe/pipelayer.dm
index e671f2bb52..897b981eea 100644
--- a/code/game/machinery/pipe/pipelayer.dm
+++ b/code/game/machinery/pipe/pipelayer.dm
@@ -59,7 +59,7 @@
if(metal < 1)
to_chat(user, "\The [src] is empty.")
return
- var/answer = alert(user, "Do you want to eject all the metal in \the [src]?", , "Yes","No")
+ var/answer = tgui_alert(user, "Do you want to eject all the metal in \the [src]?", "Eject?", list("Yes","No"))
if(answer == "Yes")
var/amount_ejected = eject_metal()
user.visible_message("[user] removes [amount_ejected] sheet\s of [DEFAULT_WALL_MATERIAL] from the \the [src].",
diff --git a/code/game/machinery/transportpod.dm b/code/game/machinery/transportpod.dm
index 4a43cb1890..145950291c 100644
--- a/code/game/machinery/transportpod.dm
+++ b/code/game/machinery/transportpod.dm
@@ -62,7 +62,7 @@
O.forceMove(src)
occupant = O
update_icon()
- if(alert(O, "Are you sure you're ready to launch?", , "Yes", "No") == "Yes")
+ if(tgui_alert(O, "Are you sure you're ready to launch?", "Transport Pod", list("Yes", "No")) == "Yes")
in_transit = 1
playsound(src, HYPERSPACE_WARMUP)
else
diff --git a/code/game/machinery/virtual_reality/ar_console.dm b/code/game/machinery/virtual_reality/ar_console.dm
index f4c6049487..5067c47600 100644
--- a/code/game/machinery/virtual_reality/ar_console.dm
+++ b/code/game/machinery/virtual_reality/ar_console.dm
@@ -57,7 +57,7 @@
if(!occupant)
return
- if(!forced && avatar && avatar.stat != DEAD && alert(avatar, "Someone wants to remove you from virtual reality. Do you want to leave?", "Leave VR?", "Yes", "No") == "No")
+ if(!forced && avatar && avatar.stat != DEAD && tgui_alert(avatar, "Someone wants to remove you from virtual reality. Do you want to leave?", "Leave VR?", list("Yes", "No")) == "No")
return
avatar.exit_vr()
@@ -89,7 +89,7 @@
if(avatar && !occupant.stat)
to_chat(occupant,"\The [src] begins to [pick("whir","hum","pulse")] as a screen appears in front of you.")
- if(alert(occupant, "This pod is already linked. Are you certain you wish to engage?", "Commmit?", "Yes", "No") == "No")
+ if(tgui_alert(occupant, "This pod is already linked. Are you certain you wish to engage?", "Commmit?", list("Yes", "No")) == "No")
visible_message("\The [src] pulses!")
to_chat(occupant,"Your mind blurs as information bombards you.")
diff --git a/code/game/machinery/virtual_reality/vr_console.dm b/code/game/machinery/virtual_reality/vr_console.dm
index 42179442f0..8833942232 100644
--- a/code/game/machinery/virtual_reality/vr_console.dm
+++ b/code/game/machinery/virtual_reality/vr_console.dm
@@ -182,7 +182,7 @@
if(!occupant)
return
- if(!forced && avatar && alert(avatar, "Someone wants to remove you from virtual reality. Do you want to leave?", "Leave VR?", "Yes", "No") == "No")
+ if(!forced && avatar && tgui_alert(avatar, "Someone wants to remove you from virtual reality. Do you want to leave?", "Leave VR?", list("Yes", "No")) == "No")
return
avatar.exit_vr()
@@ -218,7 +218,7 @@
avatar = occupant.vr_link
// If they've already enterred VR, and are reconnecting, prompt if they want a new body
- if(avatar && alert(occupant, "You already have a [avatar.stat == DEAD ? "" : "deceased "]Virtual Reality avatar. Would you like to use it?", "New avatar", "Yes", "No") == "No")
+ if(avatar && tgui_alert(occupant, "You already have a [avatar.stat == DEAD ? "" : "deceased "]Virtual Reality avatar. Would you like to use it?", "New avatar", list("Yes", "No")) == "No")
// Delink the mob
occupant.vr_link = null
avatar = null
diff --git a/code/game/magic/archived_book.dm b/code/game/magic/archived_book.dm
index 6940768da4..6f456dc9d6 100644
--- a/code/game/magic/archived_book.dm
+++ b/code/game/magic/archived_book.dm
@@ -48,7 +48,8 @@ var/global/datum/book_manager/book_mgr = new()
var/DBConnection/dbcon = new()
dbcon.Connect("dbi:mysql:[sqldb]:[sqladdress]:[sqlport]","[sqllogin]","[sqlpass]")
if(!dbcon.IsConnected())
- alert(usr, "Connection to Archive has been severed. Aborting.")
+ tgui_alert_async(usr, "Connection to Archive has been severed. Aborting.")
+ return
else
var/DBQuery/query = dbcon.NewQuery("DELETE FROM library WHERE id=[isbn]")
if(!query.Execute())
diff --git a/code/game/mecha/combat/phazon.dm b/code/game/mecha/combat/phazon.dm
index 50f4e8727f..8ec100ad1e 100644
--- a/code/game/mecha/combat/phazon.dm
+++ b/code/game/mecha/combat/phazon.dm
@@ -143,7 +143,7 @@
..()
/obj/mecha/combat/phazon/janus/query_damtype()
- var/new_damtype = alert(src.occupant,"Gauntlet Phase Emitter Mode","Damage Type","Force","Energy","Stun")
+ var/new_damtype = tgui_alert(src.occupant,"Gauntlet Phase Emitter Mode","Damage Type",list("Force","Energy","Stun"))
switch(new_damtype)
if("Force")
damtype = "brute"
diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm
index cacaf0d75a..a9bd41347e 100644
--- a/code/game/mecha/mecha.dm
+++ b/code/game/mecha/mecha.dm
@@ -2546,7 +2546,7 @@
if(newname)
name = newname
else
- alert(occupant, "nope.avi")
+ tgui_alert_async(occupant, "nope.avi")
return
if (href_list["toggle_id_upload"])
if(usr != src.occupant) return
diff --git a/code/game/mecha/mecha_actions.dm b/code/game/mecha/mecha_actions.dm
index 1e1c790704..33d7d711e8 100644
--- a/code/game/mecha/mecha_actions.dm
+++ b/code/game/mecha/mecha_actions.dm
@@ -399,7 +399,7 @@
/obj/mecha/proc/query_damtype()
if(usr!=src.occupant)
return
- var/new_damtype = alert(src.occupant,"Melee Damage Type","Damage Type","Brute","Fire","Toxic")
+ var/new_damtype = tgui_alert(src.occupant,"Melee Damage Type","Damage Type",list("Brute","Fire","Toxic"))
switch(new_damtype)
if("Brute")
damtype = "brute"
diff --git a/code/game/objects/effects/decals/contraband.dm b/code/game/objects/effects/decals/contraband.dm
index 8370872263..57aaad3780 100644
--- a/code/game/objects/effects/decals/contraband.dm
+++ b/code/game/objects/effects/decals/contraband.dm
@@ -195,7 +195,7 @@
if(ruined)
return
- if(alert(usr, "Do I want to rip the poster from the wall?","You think...","Yes","No") == "Yes")
+ if(tgui_alert(usr, "Do I want to rip the poster from the wall?","You think...",list("Yes","No")) == "Yes")
if(ruined || !user.Adjacent(src))
return
diff --git a/code/game/objects/effects/decals/posters/posters.dm b/code/game/objects/effects/decals/posters/posters.dm
index b323ef8946..d5232edbda 100644
--- a/code/game/objects/effects/decals/posters/posters.dm
+++ b/code/game/objects/effects/decals/posters/posters.dm
@@ -178,7 +178,7 @@
if(ruined)
return
- if(alert(usr, "Do I want to rip the poster from the wall?","You think...","Yes","No") == "Yes")
+ if(tgui_alert(usr, "Do I want to rip the poster from the wall?","You think...",list("Yes","No")) == "Yes")
if(ruined || !user.Adjacent(src))
return
diff --git a/code/game/objects/items/bodybag.dm b/code/game/objects/items/bodybag.dm
index f066b6047c..f0d7fd8eb1 100644
--- a/code/game/objects/items/bodybag.dm
+++ b/code/game/objects/items/bodybag.dm
@@ -148,8 +148,7 @@
/obj/structure/closet/body_bag/cryobag/attack_hand(mob/living/user)
if(used)
- var/confirm = alert(user, "Are you sure you want to open \the [src]? \
- \The [src] will expire upon opening it.", "Confirm Opening", "No", "Yes")
+ var/confirm = tgui_alert(user, "Are you sure you want to open \the [src]? \The [src] will expire upon opening it.", "Confirm Opening", list("No", "Yes"))
if(confirm == "Yes")
..() // Will call `toggle()` and open the bag.
else
diff --git a/code/game/objects/items/devices/body_snatcher_vr.dm b/code/game/objects/items/devices/body_snatcher_vr.dm
index e2287d5fce..8696c6166b 100644
--- a/code/game/objects/items/devices/body_snatcher_vr.dm
+++ b/code/game/objects/items/devices/body_snatcher_vr.dm
@@ -29,7 +29,7 @@
to_chat(usr,"A warning pops up on the device, informing you that [M] is dead, and, as such, the mind transfer can not be done.")
return
- var/choice = alert(usr,"This will swap your mind with the target's mind. This will result in them controlling your body, and you controlling their body. Continue?","Confirmation","Continue","Cancel")
+ var/choice = tgui_alert(usr,"This will swap your mind with the target's mind. This will result in them controlling your body, and you controlling their body. Continue?","Confirmation",list("Continue","Cancel"))
if(choice == "Continue" && usr.get_active_hand() == src && usr.Adjacent(M))
usr.visible_message("[usr] pushes the device up their forehead and [M]'s head, the device beginning to let out a series of light beeps!","You begin swap minds with [M]!")
diff --git a/code/game/objects/items/devices/communicator/phone.dm b/code/game/objects/items/devices/communicator/phone.dm
index 16543ee2c0..a7af8703f8 100644
--- a/code/game/objects/items/devices/communicator/phone.dm
+++ b/code/game/objects/items/devices/communicator/phone.dm
@@ -286,8 +286,7 @@
if (usr != src)
return //something is terribly wrong
- var/confirm = alert(src, "Would you like to talk as [src.client.prefs.real_name], over a communicator? \
- This will reset your respawn timer, if someone answers.", "Join as Voice?", "Yes","No")
+ var/confirm = tgui_alert(src, "Would you like to talk as [src.client.prefs.real_name], over a communicator? This will reset your respawn timer, if someone answers.", "Join as Voice?", list("Yes","No"))
if(confirm == "No")
return
diff --git a/code/game/objects/items/devices/denecrotizer_vr.dm b/code/game/objects/items/devices/denecrotizer_vr.dm
index 35df978bd8..4c59cd7208 100644
--- a/code/game/objects/items/devices/denecrotizer_vr.dm
+++ b/code/game/objects/items/devices/denecrotizer_vr.dm
@@ -21,7 +21,7 @@
if(!ghostjoin)
return ..()
- var/reply = alert(usr, "Would you like to become [src]? It is bound to [revivedby].","Bind To","Yes","No")
+ var/reply = tgui_alert(usr, "Would you like to become [src]? It is bound to [revivedby].","Bind To",list("Yes","No"))
if(reply == "No")
return
diff --git a/code/game/objects/items/devices/holowarrant.dm b/code/game/objects/items/devices/holowarrant.dm
index 854282f55a..c5d1a2bdb9 100644
--- a/code/game/objects/items/devices/holowarrant.dm
+++ b/code/game/objects/items/devices/holowarrant.dm
@@ -40,7 +40,7 @@
if(active)
var/obj/item/weapon/card/id/I = W.GetIdCard()
if(access_hos in I.access) // VOREStation edit
- var/choice = alert(user, "Would you like to authorize this warrant?","Warrant authorization","Yes","No")
+ var/choice = tgui_alert(user, "Would you like to authorize this warrant?","Warrant authorization",list("Yes","No"))
if(choice == "Yes")
active.fields["auth"] = "[I.registered_name] - [I.assignment ? I.assignment : "(Unknown)"]"
user.visible_message("You swipe \the [I] through the [src].", \
diff --git a/code/game/objects/items/devices/multitool.dm b/code/game/objects/items/devices/multitool.dm
index 5bfbc66464..d2df29a804 100644
--- a/code/game/objects/items/devices/multitool.dm
+++ b/code/game/objects/items/devices/multitool.dm
@@ -32,7 +32,7 @@
tool_qualities = list(TOOL_MULTITOOL)
/obj/item/device/multitool/attack_self(mob/living/user)
- var/choice = alert(usr, "What do you want to do with \the [src]?","Multitool Menu", "Switch Mode", "Clear Buffers", "Cancel")
+ var/choice = tgui_alert(usr, "What do you want to do with \the [src]?","Multitool Menu", "Switch Mode", list("Clear Buffers", "Cancel"))
switch(choice)
if("Cancel")
to_chat(user,"You lower \the [src].")
diff --git a/code/game/objects/items/devices/scanners_vr.dm b/code/game/objects/items/devices/scanners_vr.dm
index b5adabdb6e..81cbfb3da9 100644
--- a/code/game/objects/items/devices/scanners_vr.dm
+++ b/code/game/objects/items/devices/scanners_vr.dm
@@ -75,7 +75,7 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
to_chat(user,"No stored mind in \the [src].")
return
- var/choice = alert(user,"What would you like to do?","Stored: [stored_mind.name]","Delete","Backup","Cancel")
+ var/choice = tgui_alert(user,"What would you like to do?","Stored: [stored_mind.name]",list("Delete","Backup","Cancel"))
if(!stored_mind || user.get_active_hand() != src)
return
switch(choice)
@@ -223,7 +223,7 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
to_chat(usr,"There is already someone's mind stored inside")
return
- var/choice = alert(usr,"This will remove the target's mind from their body (and from the game as long as they're in the sleevemate). You can put them into a (mindless) body, a NIF, or back them up for normal resleeving, but you should probably have a plan in advance so you don't leave them unable to interact for too long. Continue?","Confirmation","Continue","Cancel")
+ var/choice = tgui_alert(usr,"This will remove the target's mind from their body (and from the game as long as they're in the sleevemate). You can put them into a (mindless) body, a NIF, or back them up for normal resleeving, but you should probably have a plan in advance so you don't leave them unable to interact for too long. Continue?","Confirmation",list("Continue","Cancel"))
if(choice == "Continue" && usr.get_active_hand() == src && usr.Adjacent(target))
usr.visible_message("[usr] begins downloading [target]'s mind!","You begin downloading [target]'s mind!")
diff --git a/code/game/objects/items/devices/translocator_vr.dm b/code/game/objects/items/devices/translocator_vr.dm
index df7f4a872f..ae4e5d29e4 100644
--- a/code/game/objects/items/devices/translocator_vr.dm
+++ b/code/game/objects/items/devices/translocator_vr.dm
@@ -120,10 +120,11 @@
if(!(user.ckey in warned_users))
warned_users |= user.ckey
- alert(user,"This device can be easily used to break ERP preferences due to the nature of teleporting \
- and tele-vore. Make sure you carefully examine someone's OOC prefs before teleporting them if you are \
- going to use this device for ERP purposes. This device records all warnings given and teleport events for \
- admin review in case of pref-breaking, so just don't do it.","OOC WARNING")
+ tgui_alert_async(user,{"
+This device can be easily used to break ERP preferences due to the nature of teleporting and tele-vore.
+Make sure you carefully examine someone's OOC prefs before teleporting them if you are going to use this device for ERP purposes.
+This device records all warnings given and teleport events for admin review in case of pref-breaking, so just don't do it.
+"},"OOC Warning")
var/choice = show_radial_menu(user, radial_menu_anchor, radial_images, custom_check = CALLBACK(src, .proc/check_menu, user), require_near = TRUE, tooltips = TRUE)
if(!choice)
@@ -162,20 +163,20 @@
rebuild_radial_images()
/* Ye olde text-based way
- var/choice = alert(user,"What do you want to do?","[src]","Create Beacon","Cancel","Target Beacon")
+ var/choice = tgui_alert(user,"What do you want to do?","[src]",list("Create Beacon","Cancel","Target Beacon"))
switch(choice)
if("Create Beacon")
if(beacons_left <= 0)
- alert(usr, "The translocator can't support any more beacons!","Error")
+ tgui_alert_async(usr, "The translocator can't support any more beacons!","Error")
return
var/new_name = html_encode(input(user,"New beacon's name (2-20 char):","[src]") as text|null)
if(length(new_name) > 20 || length(new_name) < 2)
- alert(usr, "Entered name length invalid (must be longer than 2, no more than than 20).","Error")
+ tgui_alert_async(usr, "Entered name length invalid (must be longer than 2, no more than than 20).","Error")
return
if(new_name in beacons)
- alert(usr, "No duplicate names, please. '[new_name]' exists already.","Error")
+ tgui_alert_async(usr, "No duplicate names, please. '[new_name]' exists already.","Error")
return
var/obj/item/device/perfect_tele_beacon/nb = new(get_turf(src))
@@ -421,14 +422,14 @@
/obj/item/device/perfect_tele_beacon/attack_hand(mob/user)
if((user.ckey != creator) && !(user.ckey in warned_users))
warned_users |= user.ckey
- var/choice = alert(user,"This device is a translocator beacon. Having it on your person may mean that anyone \
- who teleports to this beacon gets teleported into your selected vore-belly. If you are prey-only \
- or don't wish to potentially have a random person teleported into you, it's suggested that you \
- not carry this around.","OOC WARNING","Take It","Leave It")
+ var/choice = tgui_alert(user, {"
+This device is a translocator beacon. Having it on your person may mean that anyone
+who teleports to this beacon gets teleported into your selected vore-belly. If you are prey-only
+or don't wish to potentially have a random person teleported into you, it's suggested that you
+not carry this around."}, "OOC Warning", list("Take It","Leave It"))
if(choice == "Leave It")
return
-
- ..()
+ ..()
/obj/item/device/perfect_tele_beacon/stationary
name = "stationary translocator beacon"
@@ -443,7 +444,7 @@ GLOBAL_LIST_BOILERPLATE(premade_tele_beacons, /obj/item/device/perfect_tele_beac
if(!isliving(user))
return
var/mob/living/L = user
- var/confirm = alert(user, "You COULD eat the beacon...", "Eat beacon?", "Eat it!", "No, thanks.")
+ var/confirm = tgui_alert(user, "You COULD eat the beacon...", "Eat beacon?", list("Eat it!", "No, thanks."))
if(confirm == "Eat it!")
var/obj/belly/bellychoice = input("Which belly?","Select A Belly") as null|anything in L.vore_organs
if(bellychoice)
diff --git a/code/game/objects/items/toys/toys.dm b/code/game/objects/items/toys/toys.dm
index d105f47174..0b283d0a7a 100644
--- a/code/game/objects/items/toys/toys.dm
+++ b/code/game/objects/items/toys/toys.dm
@@ -320,7 +320,7 @@
to_chat(user, "You can't do that right now!")
return
- if(alert(usr, "Are you sure you want to recolor your blade?", "Confirm Recolor", "Yes", "No") == "Yes")
+ if(tgui_alert(usr, "Are you sure you want to recolor your blade?", "Confirm Recolor", list("Yes", "No")) == "Yes")
var/energy_color_input = input(usr,"","Choose Energy Color",lcolor) as color|null
if(energy_color_input)
lcolor = sanitize_hexcolor(energy_color_input)
diff --git a/code/game/objects/items/weapons/circuitboards/computer/supply.dm b/code/game/objects/items/weapons/circuitboards/computer/supply.dm
index 78f4bbce1c..49fdd14ee7 100644
--- a/code/game/objects/items/weapons/circuitboards/computer/supply.dm
+++ b/code/game/objects/items/weapons/circuitboards/computer/supply.dm
@@ -32,7 +32,7 @@
opposite_catastasis = "BROAD"
catastasis = "STANDARD"
- switch( alert(usr, "Current receiver spectrum is set to: [catastasis]","Multitool-Circuitboard interface","Switch to [opposite_catastasis]","Cancel") )
+ switch( tgui_alert(usr, "Current receiver spectrum is set to: [catastasis]","Multitool-Circuitboard interface",list("Switch to [opposite_catastasis]","Cancel")) )
if("Switch to STANDARD","Switch to BROAD")
src.contraband_enabled = !src.contraband_enabled
diff --git a/code/game/objects/items/weapons/id cards/syndicate_ids.dm b/code/game/objects/items/weapons/id cards/syndicate_ids.dm
index 532b174871..0c36756bcc 100644
--- a/code/game/objects/items/weapons/id cards/syndicate_ids.dm
+++ b/code/game/objects/items/weapons/id cards/syndicate_ids.dm
@@ -38,7 +38,7 @@
if(!registered_user && register_user(user))
to_chat(user, "The microscanner marks you as its owner, preventing others from accessing its internals.")
if(registered_user == user)
- switch(alert(usr, "Would you like edit the ID, or show it?","Show or Edit?", "Edit","Show"))
+ switch(tgui_alert(usr, "Would you like edit the ID, or show it?","Show or Edit?", list("Edit","Show")))
if("Edit")
agentcard_module.tgui_interact(user)
if("Show")
diff --git a/code/game/objects/items/weapons/implants/implant.dm b/code/game/objects/items/weapons/implants/implant.dm
index 64666c44a4..e1d2cfd398 100644
--- a/code/game/objects/items/weapons/implants/implant.dm
+++ b/code/game/objects/items/weapons/implants/implant.dm
@@ -287,7 +287,7 @@ Implant Specifics:
"}
t.hotspot_expose(3500,125)
/obj/item/weapon/implant/explosive/post_implant(mob/source as mob)
- elevel = alert(usr, "What sort of explosion would you prefer?", "Implant Intent", "Localized Limb", "Destroy Body", "Full Explosion")
+ elevel = tgui_alert(usr, "What sort of explosion would you prefer?", "Implant Intent", list("Localized Limb", "Destroy Body", "Full Explosion"))
phrase = input("Choose activation phrase:") as text
var/list/replacechars = list("'" = "","\"" = "",">" = "","<" = "","(" = "",")" = "")
phrase = replace_characters(phrase, replacechars)
diff --git a/code/game/objects/items/weapons/melee/energy.dm b/code/game/objects/items/weapons/melee/energy.dm
index 77b5b6d732..f6c9774e2e 100644
--- a/code/game/objects/items/weapons/melee/energy.dm
+++ b/code/game/objects/items/weapons/melee/energy.dm
@@ -191,7 +191,7 @@
to_chat(user, "You can't do that right now!")
return
- if(alert(usr, "Are you sure you want to recolor your blade?", "Confirm Recolor", "Yes", "No") == "Yes")
+ if(tgui_alert(usr, "Are you sure you want to recolor your blade?", "Confirm Recolor", list("Yes", "No")) == "Yes")
var/energy_color_input = input(usr,"","Choose Energy Color",lcolor) as color|null
if(energy_color_input)
lcolor = sanitize_hexcolor(energy_color_input)
diff --git a/code/game/objects/items/weapons/shields.dm b/code/game/objects/items/weapons/shields.dm
index 2d5ad36ef7..f2fb2d6d23 100644
--- a/code/game/objects/items/weapons/shields.dm
+++ b/code/game/objects/items/weapons/shields.dm
@@ -208,7 +208,7 @@
if(user.incapacitated() || !istype(user))
to_chat(user, "You can't do that right now!")
return
- if(alert(usr, "Are you sure you want to recolor your shield?", "Confirm Recolor", "Yes", "No") == "Yes")
+ if(tgui_alert(usr, "Are you sure you want to recolor your shield?", "Confirm Recolor", list("Yes", "No")) == "Yes")
var/energy_color_input = input(usr,"","Choose Energy Color",lcolor) as color|null
if(energy_color_input)
lcolor = sanitize_hexcolor(energy_color_input)
diff --git a/code/game/objects/items/weapons/syndie.dm b/code/game/objects/items/weapons/syndie.dm
index b97f5303df..98c246a03a 100644
--- a/code/game/objects/items/weapons/syndie.dm
+++ b/code/game/objects/items/weapons/syndie.dm
@@ -89,7 +89,7 @@
user.visible_message("Without even breaking stride, \the [user] flips open \the [src] in one smooth movement.")
else if(lit && detonator_mode)
- switch(alert(user, "What would you like to do?", "Lighter", "Press the button.", "Close the lighter."))
+ switch(tgui_alert(user, "What would you like to do?", "Lighter", list("Press the button.", "Close the lighter.")))
if("Press the button.")
to_chat(user, "You press the button.")
icon_state = "[base_state]click"
diff --git a/code/game/objects/structures/ghost_pods/event_vr.dm b/code/game/objects/structures/ghost_pods/event_vr.dm
index 7a04e0ea2c..b1473fd1c1 100644
--- a/code/game/objects/structures/ghost_pods/event_vr.dm
+++ b/code/game/objects/structures/ghost_pods/event_vr.dm
@@ -56,7 +56,7 @@
break
if(choice)
- finalized = alert(M, "Are you sure you want to play as [choice]?","Confirmation","No","Yes")
+ finalized = tgui_alert(M, "Are you sure you want to play as [choice]?","Confirmation",list("No","Yes"))
if(randomize)
choice = pick(possible_mobs)
diff --git a/code/game/objects/structures/ghost_pods/ghost_pods.dm b/code/game/objects/structures/ghost_pods/ghost_pods.dm
index 7649c8573f..12256e5ab3 100644
--- a/code/game/objects/structures/ghost_pods/ghost_pods.dm
+++ b/code/game/objects/structures/ghost_pods/ghost_pods.dm
@@ -50,7 +50,7 @@
/obj/structure/ghost_pod/manual/attack_hand(var/mob/living/user)
if(!used)
if(confirm_before_open)
- if(alert(user, "Are you sure you want to touch \the [src]?", "Confirm", "No", "Yes") == "No")
+ if(tgui_alert(user, "Are you sure you want to touch \the [src]?", "Confirm", list("No", "Yes")) == "No")
return
trigger()
// VOREStation Addition Start
diff --git a/code/game/objects/structures/ghost_pods/silicon_vr.dm b/code/game/objects/structures/ghost_pods/silicon_vr.dm
index 865d678294..823208487f 100644
--- a/code/game/objects/structures/ghost_pods/silicon_vr.dm
+++ b/code/game/objects/structures/ghost_pods/silicon_vr.dm
@@ -2,7 +2,7 @@
remains_active = TRUE
/obj/structure/ghost_pod/manual/lost_drone/dogborg/create_occupant(var/mob/M)
- var/response = alert(M, "What type of lost drone are you? Do note, that dogborgs may have experienced different type of corruption ((High potential for having vore-related laws))", "Drone Type", "Regular", "Dogborg")
+ var/response = tgui_alert(M, "What type of lost drone are you? Do note, that dogborgs may have experienced different type of corruption ((High potential for having vore-related laws))", "Drone Type", list("Regular", "Dogborg"))
if(!(response == "Dogborg")) // No response somehow or Regular
return ..()
else
diff --git a/code/game/objects/structures/trash_pile_vr.dm b/code/game/objects/structures/trash_pile_vr.dm
index 1d7438b4b6..281ddf1cd6 100644
--- a/code/game/objects/structures/trash_pile_vr.dm
+++ b/code/game/objects/structures/trash_pile_vr.dm
@@ -69,13 +69,13 @@
var/mob/living/L = user
//They're in it, and want to get out.
if(L.loc == src)
- var/choice = alert(usr, "Do you want to exit \the [src]?","Un-Hide?","Exit","Stay")
+ var/choice = tgui_alert(usr, "Do you want to exit \the [src]?","Un-Hide?",list("Exit","Stay"))
if(choice == "Exit")
if(L == hider)
hider = null
L.forceMove(get_turf(src))
else if(!hider)
- var/choice = alert(usr, "Do you want to hide in \the [src]?","Un-Hide?","Hide","Stay")
+ var/choice = tgui_alert(usr, "Do you want to hide in \the [src]?","Un-Hide?",list("Hide","Stay"))
if(choice == "Hide" && !hider) //Check again because PROMPT
L.forceMove(src)
hider = L
diff --git a/code/game/response_team.dm b/code/game/response_team.dm
index 70a0d945ee..2606ae0b75 100644
--- a/code/game/response_team.dm
+++ b/code/game/response_team.dm
@@ -24,12 +24,12 @@ var/silent_ert = 0
if(send_emergency_team)
to_chat(usr, "[using_map.boss_name] has already dispatched an emergency response team!")
return
- if(alert(usr, "Do you want to dispatch an Emergency Response Team?","ERT","Yes","No") != "Yes")
+ if(tgui_alert(usr, "Do you want to dispatch an Emergency Response Team?","ERT",list("Yes","No")) != "Yes")
return
- if(alert(usr, "Do you want this Response Team to be announced?","ERT","Yes","No") != "Yes")
+ if(tgui_alert(usr, "Do you want this Response Team to be announced?","ERT",list("Yes","No")) != "Yes")
silent_ert = 1
if(get_security_level() != "red") // Allow admins to reconsider if the alert level isn't Red
- switch(alert(usr, "The station is not in red alert. Do you still want to dispatch a response team?","ERT","Yes","No"))
+ switch(tgui_alert(usr, "The station is not in red alert. Do you still want to dispatch a response team?","ERT",list("Yes","No")))
if("No")
return
if(send_emergency_team)
diff --git a/code/game/trader_visit.dm b/code/game/trader_visit.dm
index 77bb192e65..996f2febff 100644
--- a/code/game/trader_visit.dm
+++ b/code/game/trader_visit.dm
@@ -20,10 +20,10 @@ var/can_call_traders = 1
if(send_beruang)
to_chat(usr, "The Beruang has already been sent this round!")
return
- if(alert(usr, "Do you want to dispatch the Beruang trade ship?","Trade Ship","Yes","No") != "Yes")
+ if(tgui_alert(usr, "Do you want to dispatch the Beruang trade ship?","Trade Ship",list("Yes","No")) != "Yes")
return
if(get_security_level() == "red") // Allow admins to reconsider if the alert level is Red
- switch(alert(usr, "The station is in red alert. Do you still want to send traders?","Trade Ship","Yes","No"))
+ switch(tgui_alert(usr, "The station is in red alert. Do you still want to send traders?","Trade Ship",list("Yes","No")))
if("No")
return
if(send_beruang)
diff --git a/code/modules/admin/DB ban/functions.dm b/code/modules/admin/DB ban/functions.dm
index 31f2cd0578..c143171766 100644
--- a/code/modules/admin/DB ban/functions.dm
+++ b/code/modules/admin/DB ban/functions.dm
@@ -51,7 +51,7 @@
validckey = 1
if(!validckey)
if(!banned_mob || (banned_mob && !IsGuestKey(banned_mob.key))) //VOREStation Edit Start.
- var/confirm = alert(usr, "This ckey hasn't been seen, are you sure?", "Confirm Badmin" , "Yes", "No")
+ var/confirm = tgui_alert(usr, "This ckey hasn't been seen, are you sure?", "Confirm Badmin", list("Yes", "No"))
if(confirm == "No")
return //VOREStation Edit End
@@ -202,7 +202,7 @@
message_admins("[key_name_admin(usr)] has edited a ban for [pckey]'s duration from [duration] to [value]",1)
update_query.Execute()
if("unban")
- if(alert(usr, "Unban [pckey]?", "Unban?", "Yes", "No") == "Yes")
+ if(tgui_alert(usr, "Unban [pckey]?", "Unban?", list("Yes", "No")) == "Yes")
DB_ban_unban_by_id(banid)
return
to_chat(usr, "Cancelled")
diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm
index ca8c20fad7..495dd343fb 100644
--- a/code/modules/admin/admin.dm
+++ b/code/modules/admin/admin.dm
@@ -665,7 +665,7 @@ var/global/floorIsLava = 0
set desc="Restarts the world"
if (!usr.client.holder)
return
- var/confirm = alert(usr, "Restart the game world?", "Restart", "Yes", "Cancel")
+ var/confirm = alert(usr, "Restart the game world?", "Restart", "Yes", "Cancel") // Not tgui_alert for safety
if(confirm == "Cancel")
return
if(confirm == "Yes")
@@ -1049,7 +1049,7 @@ var/datum/announcement/minor/admin_min_announcer = new
set desc="Reboots the server post haste"
set name="Immediate Reboot"
if(!usr.client.holder) return
- if( alert(usr, "Reboot server?","Reboot!","Yes","No") == "No")
+ if(alert(usr, "Reboot server?","Reboot!","Yes","No") == "No") // Not tgui_alert for safety
return
to_world("Rebooting world! Initiated by [usr.client.holder.fakekey ? "Admin" : usr.key]!")
log_admin("[key_name(usr)] initiated an immediate reboot.")
@@ -1071,9 +1071,9 @@ var/datum/announcement/minor/admin_min_announcer = new
message_admins("[key_name_admin(usr)] has unprisoned [key_name_admin(M)]", 1)
log_admin("[key_name(usr)] has unprisoned [key_name(M)]")
else
- alert(usr, "Admin jumping disabled")
+ tgui_alert_async(usr, "Admin jumping disabled")
else
- alert(usr, "[M.name] is not prisoned.")
+ tgui_alert_async(usr, "[M.name] is not prisoned.")
feedback_add_details("admin_verb","UP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
////////////////////////////////////////////////////////////////////////////////////////////////ADMIN HELPER PROCS
@@ -1226,7 +1226,7 @@ var/datum/announcement/minor/admin_min_announcer = new
set name = "Show Game Mode"
if(!ticker || !ticker.mode)
- alert(usr, "Not before roundstart!", "Alert")
+ tgui_alert_async(usr, "Not before roundstart!", "Alert")
return
var/out = "Current mode: [ticker.mode.name] ([ticker.mode.config_tag])
"
@@ -1438,7 +1438,7 @@ var/datum/announcement/minor/admin_min_announcer = new
if (tomob.ckey)
question = "This mob already has a user ([tomob.key]) in control of it! "
question += "Are you sure you want to place [frommob.name]([frommob.key]) in control of [tomob.name]?"
- var/ask = alert(question, "Place ghost in control of mob?", "Yes", "No")
+ var/ask = tgui_alert(usr, question, "Place ghost in control of mob?", list("Yes", "No"))
if (ask != "Yes")
return 1
if (!frommob || !tomob) //make sure the mobs don't go away while we waited for a response
@@ -1512,7 +1512,7 @@ var/datum/announcement/minor/admin_min_announcer = new
msg = "has paralyzed [key_name(H)]."
log_and_message_admins(msg)
else
- if(alert(src, "[key_name(H)] is paralyzed, would you like to unparalyze them?","Paralyze Mob","Yes","No") == "Yes")
+ if(tgui_alert(src, "[key_name(H)] is paralyzed, would you like to unparalyze them?","Paralyze Mob",list("Yes","No")) == "Yes")
H.SetParalysis(0)
msg = "has unparalyzed [key_name(H)]."
log_and_message_admins(msg)
@@ -1586,7 +1586,7 @@ var/datum/announcement/minor/admin_min_announcer = new
var/shouldStamp = 1
if(!P.sender) // admin initiated
- switch(alert(usr, "Would you like the fax stamped?","Stamped?", "Yes", "No"))
+ switch(tgui_alert(usr, "Would you like the fax stamped?","Stamped?", list("Yes", "No")))
if("No")
shouldStamp = 0
diff --git a/code/modules/admin/admin_secrets.dm b/code/modules/admin/admin_secrets.dm
index 30d5e7f992..89f032071c 100644
--- a/code/modules/admin/admin_secrets.dm
+++ b/code/modules/admin/admin_secrets.dm
@@ -59,7 +59,7 @@ var/datum/admin_secrets/admin_secrets = new()
/datum/admin_secret_item/proc/can_execute(var/mob/user)
if(can_view(user))
- if(!warn_before_use || alert(usr, "Execute the command '[name]'?", name, "No","Yes") == "Yes")
+ if(!warn_before_use || tgui_alert(usr, "Execute the command '[name]'?", name, list("No","Yes")) == "Yes")
return 1
return 0
diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm
index 7ff7156a4c..83facc08ac 100644
--- a/code/modules/admin/admin_verbs.dm
+++ b/code/modules/admin/admin_verbs.dm
@@ -141,7 +141,7 @@
set category = "Fun"
set name = "OOC Text Color"
if(!holder) return
- var/response = alert(src, "Please choose a distinct color that is easy to read and doesn't mix with all the other chat and radio frequency colors.", "Change own OOC color", "Pick new color", "Reset to default", "Cancel")
+ var/response = tgui_alert(src, "Please choose a distinct color that is easy to read and doesn't mix with all the other chat and radio frequency colors.", "Change own OOC color", list("Pick new color", "Reset to default", "Cancel"))
if(response == "Pick new color")
prefs.ooccolor = input(src, "Please select your OOC colour.", "OOC colour") as color
else if(response == "Reset to default")
@@ -374,7 +374,7 @@
set category = "Admin"
if(holder)
- if(alert(usr, "Confirm self-deadmin for the round? You can't re-admin yourself without someone promoting you.","Deadmin","Yes","No") == "Yes")
+ if(tgui_alert(usr, "Confirm self-deadmin for the round? You can't re-admin yourself without someone promoting you.","Deadmin",list("Yes","No")) == "Yes")
log_admin("[src] deadmined themself.")
message_admins("[src] deadmined themself.", 1)
deadmin()
@@ -432,7 +432,7 @@
if(!check_rights(R_ADMIN|R_EVENT)) return
var sec_level = input(usr, "It's currently code [get_security_level()].", "Select Security Level") as null|anything in (list("green","yellow","violet","orange","blue","red","delta")-get_security_level())
- if(alert(usr, "Switch from code [get_security_level()] to code [sec_level]?","Change security level?","Yes","No") == "Yes")
+ if(tgui_alert(usr, "Switch from code [get_security_level()] to code [sec_level]?","Change security level?",list("Yes","No")) == "Yes")
set_security_level(sec_level)
log_admin("[key_name(usr)] changed the security level to code [sec_level].")
@@ -504,7 +504,7 @@
set desc = "Tells mob to man up and deal with it."
set popup_menu = FALSE //VOREStation Edit - Declutter.
- if(alert(usr, "Are you sure you want to tell them to man up?","Confirmation","Deal with it","No")=="No") return
+ if(tgui_alert(usr, "Are you sure you want to tell them to man up?","Confirmation",list("Deal with it","No"))=="No") return
to_chat(T, "Man up and deal with it.")
to_chat(T, "Move along.")
@@ -517,7 +517,7 @@
set name = "Man Up Global"
set desc = "Tells everyone to man up and deal with it."
- if(alert(usr, "Are you sure you want to tell the whole server up?","Confirmation","Deal with it","No")=="No") return
+ if(tgui_alert(usr, "Are you sure you want to tell the whole server up?","Confirmation",list("Deal with it","No"))=="No") return
for (var/mob/T as mob in mob_list)
to_chat(T, "