From c6bbec2aac0dfdc6e2b8c30df96c911a91359016 Mon Sep 17 00:00:00 2001 From: Runa Dacino Date: Sat, 5 Aug 2023 17:50:26 +0200 Subject: [PATCH] Tweak: Decouples OOC and LOOC/RLOOC For whatever reason, that I could not figure out, span class looc was defined instead as span class ooc looc. In the style sheet it looks like ooc created the bolding, looc created the colour. I modified the style sheet for both normal and vchat to make looc and the new rlooc have their own unique, independent class definitions. --- code/modules/client/verbs/ooc.dm | 4 +-- code/modules/vchat/css/css-testing.html | 36 ++++++++++++++++--------- code/modules/vchat/css/ss13styles.css | 4 +-- code/stylesheet.dm | 4 +-- 4 files changed, 29 insertions(+), 19 deletions(-) diff --git a/code/modules/client/verbs/ooc.dm b/code/modules/client/verbs/ooc.dm index 8cfa8d856a..42b865cb37 100644 --- a/code/modules/client/verbs/ooc.dm +++ b/code/modules/client/verbs/ooc.dm @@ -177,12 +177,12 @@ if(target in GLOB.admins) admin_stuff += "/([key])" - to_chat(target, "" + create_text_tag("looc", "LOOC:", target) + " [display_name][admin_stuff]: [msg]") + to_chat(target, "" + create_text_tag("looc", "LOOC:", target) + " [display_name][admin_stuff]: [msg]") for(var/client/target in r_receivers) var/admin_stuff = "/([key])([admin_jump_link(mob, target.holder)])" - to_chat(target, "" + create_text_tag("looc", "LOOC:", target) + " (R)[display_name][admin_stuff]: [msg]") //CHOMPEdit + to_chat(target, "" + create_text_tag("looc", "LOOC:", target) + " (R)[display_name][admin_stuff]: [msg]") //CHOMPEdit /mob/proc/get_looc_source() return src diff --git a/code/modules/vchat/css/css-testing.html b/code/modules/vchat/css/css-testing.html index 94e2844b91..0aee4628e9 100644 --- a/code/modules/vchat/css/css-testing.html +++ b/code/modules/vchat/css/css-testing.html @@ -15,7 +15,7 @@ OOC
15
- + - +
@@ -36,35 +36,40 @@ Testing danger message.
[Security] Secu Person says, "Testing radio message."
Testing OOC message.
- Testing LOOC message.
+ Testing LOOC message.
+ Testing RLOOC message.
Testing asay message.
Test Person says, "Testing say message 2."
Testing notice message 2.
Testing danger message 2.
[Security] Secu Person says, "Testing radio message 2".
Testing OOC message 2.
- Testing LOOC message 2.
+ Testing LOOC message 2.
+ Testing RLOOC message 2.
Testing asay message 2.
Test Person says, "Testing say message 3."
Testing notice message 3.
Testing danger message 3.
[Security] Secu Person says, "Testing radio message 3".
Testing OOC message 3.
- Testing LOOC message 3.
+ Testing LOOC message 3.
+ Testing RLOOC message 3.
Testing asay message 3.
Test Person says, "Testing say message 4."
Testing notice message 4.
Testing danger message 4.
[Security] Secu Person says, "Testing radio message 4".
Testing OOC message 4.
- Testing LOOC message 4.
+ Testing LOOC message 4.
+ Testing RLOOC message 4.
Testing asay message 4.
Test Person says, "Testing say message 5."
Testing notice message 5.
Testing danger message 5.
[Security] Secu Person says, "Testing radio message 5".
Testing OOC message 5.
- Testing LOOC message 5.
+ Testing LOOC message 5.
+ Testing RLOOC message 5.
Testing asay message 5.
@@ -73,38 +78,43 @@ Testing danger message.
[Security] Secu Person says, "Testing radio message."
Testing OOC message.
- Testing LOOC message.
+ Testing LOOC message.
+ Testing RLOOC message.
Testing asay message.
Test Person says, "Testing say message 2."
Testing notice message 2.
Testing danger message 2.
[Security] Secu Person says, "Testing radio message 2".
Testing OOC message 2.
- Testing LOOC message 2.
+ Testing LOOC message 2.
+ Testing RLOOC message 2.
Testing asay message 2.
Test Person says, "Testing say message 3."
Testing notice message 3.
Testing danger message 3.
[Security] Secu Person says, "Testing radio message 3".
Testing OOC message 3.
- Testing LOOC message 3.
+ Testing LOOC message 3.
+ Testing RLOOC message 3.
Testing asay message 3.
Test Person says, "Testing say message 4."
Testing notice message 4.
Testing danger message 4.
[Security] Secu Person says, "Testing radio message 4".
Testing OOC message 4.
- Testing LOOC message 4.
+ Testing LOOC message 4.
+ Testing RLOOC message 4.
Testing asay message 4.
Test Person says, "Testing say message 5."
Testing notice message 5.
Testing danger message 5.
[Security] Secu Person says, "Testing radio message 5".
Testing OOC message 5.
- Testing LOOC message 5.
+ Testing LOOC message 5.
+ Testing RLOOC message 5.
Testing asay message 5.
- \ No newline at end of file + diff --git a/code/modules/vchat/css/ss13styles.css b/code/modules/vchat/css/ss13styles.css index 13514ef8b8..4deaac861c 100644 --- a/code/modules/vchat/css/ss13styles.css +++ b/code/modules/vchat/css/ss13styles.css @@ -75,8 +75,8 @@ body.inverted { .ooc .everyone {color: #002eb8;} .inverted .ooc .everyone {color: #004ed8;} /* Dark mode */ -.looc {color: #3A9696;} -.rlooc {color: #3ABB96;} /* CHOMPEdit */ +.looc {color: #3A9696; font-weight: bold} +.rlooc {color: #3ABB96; font-weight: bold} /* CHOMPEdit */ .ooc .elevated {color: #2e78d9;} .ooc .moderator {color: #184880;} .ooc .developer {color: #1b521f;} diff --git a/code/stylesheet.dm b/code/stylesheet.dm index c744861b60..90c60ca5e2 100644 --- a/code/stylesheet.dm +++ b/code/stylesheet.dm @@ -16,8 +16,8 @@ em {font-style: normal;font-weight: bold;} /* OOC */ .ooc {font-weight: bold;} -.looc {color: #3A9696;} -.rlooc {color: #3ABB96;} //CHOMPEdit +.looc {color: #3A9696; font-weight: bold} +.rlooc {color: #3ABB96; font-weight: bold}} //CHOMPEdit .ooc img.text_tag {width: 32px; height: 10px;} .ooc .everyone {color: #002eb8;}