mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 03:51:49 +01:00
Ports screen alerts from CM13. This enables an immediate reference to whether you are cuffed or buckled. It also provides an easy way to get out of said situation by simply clicking on the alert. <img width="430" height="454" alt="image" src="https://github.com/user-attachments/assets/0c20abf2-0901-49e0-ac29-492ba7c6dbe5" /> ### Asset Licenses The following assets that **have not** been created by myself are included in this PR: | Path | Original Author | License | | --- | --- | --- | | icons/mob/screen_alert.dmi (buckle, succumb) | CM13Devs (CM-13) | CC-BY-SA 3.0 |
62 lines
2.7 KiB
Plaintext
62 lines
2.7 KiB
Plaintext
/*
|
|
#####################
|
|
Spans
|
|
#####################
|
|
*/
|
|
|
|
#define span(class, str) ("<span class='[class]'>" + str + "</span>")
|
|
#define SPAN_NOTICE(str) ("<span class='notice'>" + str + "</span>")
|
|
#define SPAN_WARNING(str) ("<span class='warning'>" + str + "</span>")
|
|
#define SPAN_DANGER(str) ("<span class='danger'>" + str + "</span>")
|
|
#define SPAN_CULT(str) ("<span class='cult'>" + str + "</span>")
|
|
#define SPAN_GOOD(str) ("<span class='good'>" + str + "</span>")
|
|
#define SPAN_BAD(str) ("<span class='bad'>" + str + "</span>")
|
|
#define SPAN_ALIEN(X) ("<span class='alium'>" + X + "</span>")
|
|
#define SPAN_ALERT(str) ("<span class='alert'>" + str + "</span>")
|
|
#define SPAN_INFO(str) ("<span class='info'>" + str + "</span>")
|
|
#define SPAN_ITALIC(str) ("<span class='italic'>" + str + "</span>")
|
|
#define SPAN_BOLD(str) ("<span class='bold'>" + str + "</span>")
|
|
#define SPAN_SUBTLE(str) ("<span class='subtle'>" + str + "</span>")
|
|
#define SPAN_SOGHUN(str) ("<span class='soghun'>" + str + "</span>")
|
|
#define SPAN_VOTE(str) ("<span class='vote'>" + str + "</span>")
|
|
#define SPAN_HEAR(str) ("<span class='hear'>" + str + "</span>")
|
|
#define SPAN_STYLE(style, str) "<span style=\"[style]\">[str]</span>"
|
|
#define SPAN_COLOR(color, str) SPAN_STYLE("color: [color]", "[str]")
|
|
#define SPAN_CAUTION(str) ("<span class='caution'>" + str + "</span>")
|
|
#define SPAN_STORYTELLER(str) ("<span class='storyteller'>" + str + "</span>")
|
|
|
|
#define SPAN_MACHINE_WARNING(str) ("<span class='machine-warning'>" + str + "</span>")
|
|
#define SPAN_MACHINE_DANGER(str) ("<span class='machine-danger'>" + str + "</span>")
|
|
#define SPAN_MACHINE_VISION(str) ("<span class='machine-vision'>" + str + "</span>")
|
|
|
|
#define SPAN_RED(str) "<span style='color:[COLOR_RED]'>[str]</span>"
|
|
#define SPAN_YELLOW(str) "<span style='color:[COLOR_YELLOW]'>[str]</span>"
|
|
#define SPAN_GREEN(str) "<span style='color:[COLOR_GREEN]'>[str]</span>"
|
|
|
|
#define SPAN_SIZE(size, text) ("<span style=\"font-size: [size]\">" + text + "</span>")
|
|
|
|
#define SPAN_HIGHDANGER(str) (FONT_LARGE(SPAN_DANGER(str)))
|
|
|
|
#define SPAN_LANGCHAT(X) "<span class='langchat'>[X]</span>"
|
|
|
|
#define SPAN_BOLDNOTICE(str) ("<span class='boldnotice'>" + str + "</span>")
|
|
#define SPAN_BOLDWARNING(X) "<span class='boldwarning'>[X]</span>"
|
|
|
|
/*
|
|
#####################
|
|
Font sizes
|
|
#####################
|
|
*/
|
|
|
|
#define FONT_SIZE_SMALL "10px"
|
|
#define FONT_SIZE_NORMAL "13px"
|
|
#define FONT_SIZE_LARGE "16px"
|
|
#define FONT_SIZE_HUGE "18px"
|
|
#define FONT_SIZE_GIANT "24px"
|
|
|
|
#define FONT_SMALL(str) SPAN_SIZE(FONT_SIZE_SMALL, str)
|
|
#define FONT_NORMAL(str) SPAN_SIZE(FONT_SIZE_NORMAL, str)
|
|
#define FONT_LARGE(str) SPAN_SIZE(FONT_SIZE_LARGE, str)
|
|
#define FONT_HUGE(str) SPAN_SIZE(FONT_SIZE_HUGE, str)
|
|
#define FONT_GIANT(str) SPAN_SIZE(FONT_SIZE_GIANT, str)
|