[TG UPDATE] 4 - TGUI - WOULD YOU LIKE TO UPGRADE TO THIS EDITION? (#17311)

* e

* https://github.com/tgstation/tgstation/pull/55157

* manual

* 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?

* e

* e

Co-authored-by: Celotajs <81999976+celotajstg@users.noreply.github.com>
This commit is contained in:
Jamie D
2023-01-04 15:52:06 +00:00
committed by GitHub
parent e67445042c
commit 37a75475ad
127 changed files with 877 additions and 386 deletions

View File

@@ -84,7 +84,7 @@ SUBSYSTEM_DEF(explosions)
set name = "Check Bomb Impact"
set category = "Misc.Server Debug"
var/newmode = alert("Use reactionary explosions?","Check Bomb Impact", "Yes", "No")
var/newmode = tgui_alert(usr, "Use reactionary explosions?","Check Bomb Impact", list("Yes", "No"))
var/turf/epicenter = get_turf(mob)
if(!epicenter)
return
@@ -93,7 +93,7 @@ SUBSYSTEM_DEF(explosions)
var/heavy = 0
var/light = 0
var/list/choices = list("Small Bomb","Medium Bomb","Big Bomb","Custom Bomb")
var/choice = input("Bomb Size?") in choices
var/choice = input(usr, "Pick the bomb size", "Bomb Size?", choices)
switch(choice)
if(null)
return 0

View File

@@ -495,14 +495,14 @@ GLOBAL_LIST_EMPTY(the_station_areas)
if(!GLOB.the_gateway)
if(alert("There's no home gateway on the station. You sure you want to continue ?", "Uh oh", "Yes", "No") != "Yes")
if(tgui_alert(usr, "There's no home gateway on the station. You sure you want to continue ?", "Uh oh", list("Yes", "No")) != "Yes")
return
var/list/possible_options = GLOB.potentialRandomZlevels + "Custom"
var/away_name
var/datum/space_level/away_level
var/secret = FALSE
if(alert(usr, "Do you want your mission secret? (This will prevent ghosts from looking at your map in any way other than through a living player's eyes.)", "Are you $$$ekret?", list("Yes", "No")) == "Yes")
if(tgui_alert(usr, "Do you want your mission secret? (This will prevent ghosts from looking at your map in any way other than through a living player's eyes.)", "Are you $$$ekret?", list("Yes", "No")) != "No")
secret = TRUE
var/answer = input("What kind?","Away") as null|anything in possible_options
switch(answer)