mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-13 19:22:20 +00:00
## 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>
24 lines
683 B
Plaintext
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)
|
|
|