Replace alert usage with tgui_alert (#58419)

Pretty much every alert() call is replaced with tgui_alert, except one I replaced with tgalert as a fallback. If tgui_alert exists, why not use it?
This commit is contained in:
Celotajs
2021-05-20 22:43:27 +12:00
committed by GitHub
parent c955c58ed6
commit 190d0a0384
146 changed files with 493 additions and 415 deletions
+2 -2
View File
@@ -9,8 +9,8 @@
var/permanent
/datum/smite/bad_luck/configure(client/user)
silent = alert(user, "Do you want to apply the omen with a player notification?", "Notify Player?", "Notify", "Silent") == "Silent"
permanent = alert(user, "Would you like this to be permanent or removed automatically after the first accident?", "Permanent?", "Permanent", "Temporary") == "Permanent"
silent = tgui_alert(user, "Do you want to apply the omen with a player notification?", "Notify Player?", list("Notify", "Silent")) == "Silent"
permanent = tgui_alert(user, "Would you like this to be permanent or removed automatically after the first accident?", "Permanent?", list("Permanent", "Temporary")) == "Permanent"
/datum/smite/bad_luck/effect(client/user, mob/living/target)
. = ..()
+1 -1
View File
@@ -4,7 +4,7 @@
var/force_looping = FALSE
/datum/smite/rod/configure(client/user)
var/loop_input = alert("Would you like this rod to force-loop across space z-levels?", "Loopy McLoopface", "Yes", "No")
var/loop_input = tgui_alert(usr,"Would you like this rod to force-loop across space z-levels?", "Loopy McLoopface", list("Yes", "No"))
force_looping = (loop_input == "Yes")
@@ -28,7 +28,7 @@
if(!ispath(delivery))
delivery = pick_closest_path(attempted_target_path)
if(!delivery)
alert(user, "ERROR: Incorrect / improper path given.")
tgui_alert(user, "ERROR: Incorrect / improper path given.")
return FALSE
target_path = delivery