Files
Bubberstation/code/modules/bitrunning/alerts.dm
jimmyl ee271daf46 clickable alerts glow + the slimed status effect now actually tells you how to get it off without water in the description (#87902)
## About The Pull Request

 clickable alerts glow (regex: /atom/movable/screen/alert/.*/Click)

## Why It's Good For The Game

people are much more likely to look at the chat or anywhere else than
the status effect (really, its usually never worth reading 99% of them
so they end up ignored)

## Changelog
🆑
qol: alerts that do stuff when clicked glow gold
/🆑

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
2024-11-20 02:07:05 +01:00

24 lines
683 B
Plaintext

/atom/movable/screen/alert/bitrunning
name = "Generic Bitrunning Alert"
icon_state = "template"
timeout = 10 SECONDS
/atom/movable/screen/alert/bitrunning/qserver_domain_complete
name = "Domain Completed"
desc = "The domain is completed. Activate to exit."
timeout = 20 SECONDS
clickable_glow = TRUE
/atom/movable/screen/alert/bitrunning/qserver_domain_complete/Click(location, control, params)
. = ..()
if(!.)
return
var/mob/living/living_owner = owner
if(!isliving(living_owner))
return
if(tgui_alert(living_owner, "Disconnect safely?", "Server Message", list("Exit", "Remain"), 10 SECONDS) == "Exit")
SEND_SIGNAL(living_owner, COMSIG_BITRUNNER_ALERT_SEVER)