[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

@@ -20,7 +20,7 @@
set hidden = TRUE
var/forumurl = CONFIG_GET(string/forumurl)
if(forumurl)
if(alert("This will open the forum in your browser. Are you sure?",,"Yes","No")!="Yes")
if(tgui_alert(src, "This will open the forum in your browser. Are you sure?",, list("Yes","No"))!="Yes")
return
src << link(forumurl)
else
@@ -50,7 +50,7 @@
set hidden = TRUE
var/rulesurl = CONFIG_GET(string/rulesurl)
if(rulesurl)
if(alert("This will open the rules in your browser. Are you sure?",,"Yes","No")!="Yes")
if(tgui_alert(src, "This will open the rules in your browser. Are you sure?",, list("Yes","No"))!="Yes")
return
src << link(rulesurl)
else
@@ -63,7 +63,7 @@
set hidden = TRUE
var/githuburl = CONFIG_GET(string/githuburl)
if(githuburl)
if(alert("This will open the Github repository in your browser. Are you sure?",,"Yes","No")!="Yes")
if(tgui_alert(src, "This will open the Github repository in your browser. Are you sure?",, list("Yes","No"))!="Yes")
return
src << link(githuburl)
else