mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
22 lines
857 B
Plaintext
22 lines
857 B
Plaintext
/client/var/timed_alert/timed_alert
|
|
|
|
/client/proc/timed_alert(time = 300,target,message,title,button1,button2,button3)
|
|
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/timed_alert() called tick#: [world.time]")
|
|
if(timed_alert) return ""
|
|
|
|
timed_alert = new(target,message,title,button1,button2,button3)
|
|
sleep(time)
|
|
del(timed_alert)
|
|
|
|
/mob/proc/timed_alert(time,message,title,button1,button2,button3)
|
|
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/proc/timed_alert() called tick#: [world.time]")
|
|
var/selected_button = ""
|
|
|
|
if(client)
|
|
selected_button = client.timed_alert(time,src,message,title,button1,button2,button3)
|
|
|
|
return selected_button
|
|
|
|
/timed_alert/New(mob/target = usr,message,title,button1,button2,button3)
|
|
spawn() alert(target,message,title,button1,button2,button3)
|