From fb9037b823b0f09abe041abc5df0923ac77ab995 Mon Sep 17 00:00:00 2001 From: Burzah <116982774+Burzah@users.noreply.github.com> Date: Mon, 25 Aug 2025 18:46:39 -0700 Subject: [PATCH] Moves alert messages to tgui in admin_verb.dm (#29998) * initial commit * Fixes whitespace around list elements * fixes some more oops --- code/modules/admin/admin_verbs.dm | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 01cf86e37b6..8cadbefbb5e 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -1021,9 +1021,7 @@ GLOBAL_LIST_INIT(view_logs_verbs, list( if(!check_rights(R_ADMIN)) return - var/confirm = alert("Are you sure you want to send the global message?", "Confirm Man Up Global", "Yes", "No") - - if(confirm == "Yes") + if(tgui_alert("Are you sure you want to send the global message?", "Confirm Man Up Global", list("Yes", "No")) != "No") var/manned_up_sound = sound('sound/voice/manup1.ogg') for(var/sissy in GLOB.player_list) to_chat(sissy, chat_box_notice_thick("Man up.
Deal with it.

Move on.
")) @@ -1148,13 +1146,11 @@ GLOBAL_LIST_INIT(view_logs_verbs, list( if(SSair.interesting_tile_count > 500) // This can potentially iterate through a list thats 20k things long. Give ample warning to the user - var/confirm = alert(usr, "WARNING: There are [SSair.interesting_tile_count] Interesting Turfs. This process will be lag intensive and should only be used if the atmos controller is screaming bloody murder. Are you sure you with to continue", "WARNING", "I am sure", "Nope") - if(confirm != "I am sure") + if(tgui_alert(usr, "WARNING: There are [SSair.interesting_tile_count] Interesting Turfs. This process will be lag intensive and should only be used if the atmos controller is screaming bloody murder. Are you sure you wish to continue?", "WARNING", list("I am sure", "No")) != "I am sure") return var/display_turfs_overlay = FALSE - var/do_display_turf_overlay = alert(usr, "Would you like to have all interesting turfs have a client side overlay applied as well?", "Optional", "Yep", "Nope") - if(do_display_turf_overlay == "Yep") + if(tgui_alert(usr, "Would you like to have all interesting turfs have a client side overlay applied as well?", "Optional", list("Yes", "No")) != "No") display_turfs_overlay = TRUE message_admins("[key_name_admin(usr)] is visualising interesting atmos turfs. Server may lag.") @@ -1233,9 +1229,7 @@ GLOBAL_LIST_INIT(view_logs_verbs, list( return var/datum/rnd_backup/B = SSresearch.backups[actual_target] - var/confirmation = alert("Are you sure you want to restore this RnD backup? The disk will spawn below your character.", "Are you sure?", "Yes", "No") - - if(confirmation != "Yes") + if(tgui_alert("Are you sure you want to restore this RnD backup? The disk will spawn below your character.", "Are you sure?", list("Yes", "No")) != "Yes") return B.to_backup_disk(get_turf(usr))