Convert almost all alert() to tgui_alert()

This commit is contained in:
Aronai Sieyes
2021-06-25 17:03:35 -04:00
parent 70bff20384
commit 0da0c54388
191 changed files with 509 additions and 521 deletions
+8 -8
View File
@@ -177,14 +177,14 @@
to_chat(usr, "This can only be used on instances of type /obj")
return
var/action_type = alert(usr, "Strict type ([O.type]) or type and all subtypes?","Type Selection","Strict type","Type and subtypes","Cancel")
var/action_type = tgui_alert(usr, "Strict type ([O.type]) or type and all subtypes?","Type Selection",list("Strict type","Type and subtypes","Cancel"))
if(action_type == "Cancel" || !action_type)
return
if(alert(usr, "Are you really sure you want to delete all objects of type [O.type]?","Delete All?","Yes","No") != "Yes")
if(tgui_alert(usr, "Are you really sure you want to delete all objects of type [O.type]?","Delete All?",list("Yes","No")) != "Yes")
return
if(alert(usr, "Second confirmation required. Delete?","REALLY?","Yes","No") != "Yes")
if(tgui_alert(usr, "Second confirmation required. Delete?","REALLY?",list("Yes","No")) != "Yes")
return
var/O_type = O.type
@@ -235,7 +235,7 @@
to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human")
return
if(alert(usr, "Confirm mob type change?","Confirm","Transform","Cancel") != "Transform") return
if(tgui_alert(usr, "Confirm mob type change?","Confirm",list("Transform","Cancel")) != "Transform") return
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
return
@@ -249,7 +249,7 @@
to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human")
return
if(alert(usr, "Confirm mob type change?","Confirm","Transform","Cancel") != "Transform") return
if(tgui_alert(usr, "Confirm mob type change?","Confirm",list("Transform","Cancel")) != "Transform") return
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
return
@@ -263,7 +263,7 @@
to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human")
return
if(alert(usr, "Confirm mob type change?","Confirm","Transform","Cancel") != "Transform") return
if(tgui_alert(usr, "Confirm mob type change?","Confirm",list("Transform","Cancel")) != "Transform") return
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
return
@@ -277,7 +277,7 @@
to_chat(usr, "This can only be done to instances of type /mob/living/carbon/human")
return
if(alert(usr, "Confirm mob type change?","Confirm","Transform","Cancel") != "Transform") return
if(tgui_alert(usr, "Confirm mob type change?","Confirm",list("Transform","Cancel")) != "Transform") return
if(!H)
to_chat(usr, "Mob doesn't exist anymore")
return
@@ -508,7 +508,7 @@
var/client/C = value["value"]
if (!C)
return
var/prompt = alert(usr, "Do you want to grant [C] access to view this VV window? (they will not be able to edit or change anysrc nor open nested vv windows unless they themselves are an admin)", "Confirm", "Yes", "No")
var/prompt = tgui_alert(usr, "Do you want to grant [C] access to view this VV window? (they will not be able to edit or change anysrc nor open nested vv windows unless they themselves are an admin)", "Confirm", list("Yes", "No"))
if (prompt != "Yes")
return
if(!thing)