Files
Aurora.3/code/__DEFINES/span.dm
T
Casper3667andGitHub 7883654ec1 Allows turning down the lore radio volume and changes its chat appearance (#23143)
This makes it less distracting and allows to also set it as background
noise without occupying chat.
The time between the chat messages were also slightly increased, to make
it less spammy.
<img width="901" height="220" alt="image"
src="https://github.com/user-attachments/assets/e3982a59-a3e6-4758-857d-8274e046c623"
/>
<img width="900" height="134" alt="image"
src="https://github.com/user-attachments/assets/96802421-21c7-4472-a68c-17e5e098044c"
/>
2026-08-27 23:06:18 +00:00

67 lines
3.0 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_LORE_RADIO(str) ("<span class='lore-radio'>" + 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_BOLDANNOUNCE(str) ("<span class='boldannounce'>" + 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) ("<font size='[size]'>" + text + "</font>")
#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>"
// Spans that use embedded tgui components:
#define SPAN_TOOLTIP(tip, main_text) ("<span data-component=\"Tooltip\" data-content=\"" + tip + "\" class=\"tooltip\">" + main_text + "</span>")
/*
#####################
Font sizes
#####################
*/
#define FONT_SIZE_SMALL "2"
#define FONT_SIZE_NORMAL "3"
#define FONT_SIZE_LARGE "4"
#define FONT_SIZE_HUGE "5"
#define FONT_SIZE_GIANT "6"
#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)