mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 04:57:47 +01:00
Convert almost all alert() to tgui_alert()
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user