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
+2 -2
View File
@@ -40,7 +40,7 @@
var/originhash = md5("[origin]")
var/timehash = copytext(md5("[world.time]"),1,10)
var/text = null
var/logo = alert(usr, "Do you want the header of your fax to have a NanoTrasen, SolGov, or Trader logo?","Fax Logo","NanoTrasen","SolGov","Trader") //VOREStation Add - Trader
var/logo = tgui_alert(usr, "Do you want the header of your fax to have a NanoTrasen, SolGov, or Trader logo?","Fax Logo",list("NanoTrasen","SolGov","Trader")) //VOREStation Add - Trader
if(logo == "SolGov")
logo = "sglogo.png"
//VOREStation Edit/Add
@@ -118,7 +118,7 @@
return
if(href_list["confirm"])
switch(alert(usr, "Are you sure you want to send the fax as is?","Send Fax", "Yes", "No"))
switch(tgui_alert(usr, "Are you sure you want to send the fax as is?","Send Fax", list("Yes", "No")))
if("Yes")
if(headerOn)
info = header + info
+1 -1
View File
@@ -433,7 +433,7 @@
var/obj/item/i = usr.get_active_hand() // Check to see if he still got that darn pen, also check if he's using a crayon or pen.
var/iscrayon = 0
if(!istype(i, /obj/item/weapon/pen))
alert(usr, "You aren't holding a pen anymore! If you want to keep your work, grab one.", "", "Okay")
tgui_alert(usr, "You aren't holding a pen anymore! If you want to keep your work, grab one.", "No Pen!") // Should remain tgui_alert() (blocking)
i = usr.get_active_hand()
if(!istype(i, /obj/item/weapon/pen))
+1 -1
View File
@@ -49,7 +49,7 @@
return
var/response = ""
if(!papers.len > 0)
response = alert(user, "Do you take regular paper, or Carbon copy paper?", "Paper type request", "Regular", "Carbon-Copy", "Cancel")
response = tgui_alert(user, "Do you take regular paper, or Carbon copy paper?", "Paper type request", list("Regular", "Carbon-Copy", "Cancel"))
if (response != "Regular" && response != "Carbon-Copy")
add_fingerprint(user)
return