mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
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:
@@ -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)
|
||||
. = ..()
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user