diff --git a/code/game/objects/structures/signs.dm b/code/game/objects/structures/signs.dm index 65fbb86b1a0..cd5547a566a 100644 --- a/code/game/objects/structures/signs.dm +++ b/code/game/objects/structures/signs.dm @@ -1623,7 +1623,7 @@ qdel(src) /obj/structure/sign/flag/attack_hand(mob/user) - if(alert("Do you want to rip \the [src] from its place?","You think...","Yes","No") == "Yes") + if(tgui_alert(user, "Do you want to rip \the [src] from its place?","You think...",list("Yes","No")) == "Yes") if(!Adjacent(user)) //Cannot bring up dialogue and walk away return FALSE visible_message(span_warning("\The [user] rips \the [src] in a single, decisive motion!" )) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index ac15405af3a..badba2d940f 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -1343,7 +1343,7 @@ /mob/living/verb/mob_sleep() set name = "Sleep" set category = "IC.Game" - if(!toggled_sleeping && alert(src, "Are you sure you wish to go to sleep? You will snooze until you use the Sleep verb again.", "Sleepy Time", "No", "Yes") == "No") + if(!toggled_sleeping && tgui_alert(src, "Are you sure you wish to go to sleep? You will snooze until you use the Sleep verb again.", "Sleepy Time", list("No", "Yes")) != "Yes") return toggled_sleeping = !toggled_sleeping to_chat(src, span_notice("You are [toggled_sleeping ? "now sleeping. Use the Sleep verb again to wake up" : "no longer sleeping"].")) diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index 046f865a1ae..3533eb07d12 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -604,7 +604,9 @@ var/list/ai_verbs_default = list( var/input var/choice - choice = alert("Would you like to modify your hologram's model, or color?",,"Model","Color","Cancel") + choice = tgui_alert(src, "Would you like to modify your hologram's model, or color?", "Modify Hologram", list("Model","Color","Cancel")) + if(!choice || choice == "Cancel") + return switch(choice) if("Color") diff --git a/code/modules/xenoarcheaology/tools/artifact_harvester.dm b/code/modules/xenoarcheaology/tools/artifact_harvester.dm index b185f5f5d4a..1a264f85d84 100644 --- a/code/modules/xenoarcheaology/tools/artifact_harvester.dm +++ b/code/modules/xenoarcheaology/tools/artifact_harvester.dm @@ -378,7 +378,7 @@ if (href_list["drainbattery"]) if(inserted_battery) if(inserted_battery.battery_effect && inserted_battery.stored_charge > 0) - if(alert("This action will dump all charge, safety gear is recommended before proceeding","Warning","Continue","Cancel")) + if(tgui_alert(usr, "This action will dump all charge, safety gear is recommended before proceeding","Warning",list("Continue","Cancel")) == "Continue") if(!inserted_battery.battery_effect.activated) inserted_battery.battery_effect.ToggleActivate(1) last_process = world.time