Moves alert messages to tgui in admin_verb.dm (#29998)

* initial commit

* Fixes whitespace around list elements

* fixes some more oops
This commit is contained in:
Burzah
2025-08-25 18:46:39 -07:00
committed by GitHub
parent be2f874e76
commit fb9037b823
+4 -10
View File
@@ -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("<span class='notice'><b><font size=4>Man up.<br> Deal with it.</font></b><br>Move on.</span>"))
@@ -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))