Some of the unsorted chat types being sorted (#55947)

The emote CSS class was no longer in use, it has been unitalicized and made into the actual emote class, back into local.
    A CSS class for info has been created which has no special CSS.
    The who verb has been put into info. (infoplain CSS class)
    PDA message receiving has been put into info (PDA message sending was already in info). (infoplain CSS class)
    Supply radio has been properly placed into radio.
    Service radio has been properly placed into radio.
    Binary talk has been placed into radio.
    A CSS class for minor announcements has been created.
    Minor announcements (shuttle purchases, head of staff office announcements, silicon announcements, etc) have been placed into radio (major announcements are already in radio). (minorannounce CSS class)
This commit is contained in:
Seris02
2021-01-06 23:20:40 +08:00
committed by GitHub
parent ce735a745a
commit a6f93b4f96
10 changed files with 26 additions and 23 deletions

View File

@@ -59,7 +59,7 @@
for(var/mob/M in GLOB.player_list)
if(!isnewplayer(M) && M.can_hear())
to_chat(M, "<span class='big bold'><font color = red>[title]</font color><BR>[message]</span><BR>")
to_chat(M, "<span class='minorannounce'><font color = red>[title]</font color><BR>[message]</span><BR>")
if(M.client.prefs.toggles & SOUND_ANNOUNCEMENTS)
if(alert)
SEND_SOUND(M, sound('sound/misc/notice1.ogg'))

View File

@@ -810,7 +810,7 @@ GLOBAL_LIST_EMPTY(PDAs)
if(signal.data["emojis"] == TRUE)//so will not parse emojis as such from pdas that don't send emojis
inbound_message = emoji_parse(inbound_message)
to_chat(L, "[icon2html(src)] <b>PDA message from [hrefstart][signal.data["name"]] ([signal.data["job"]])[hrefend], </b>[inbound_message] [reply]")
to_chat(L, "<span class='infoplain'>[icon2html(src)] <b>PDA message from [hrefstart][signal.data["name"]] ([signal.data["job"]])[hrefend], </b>[inbound_message] [reply]</span>")
update_icon()
add_overlay(icon_alert)

View File

@@ -66,7 +66,7 @@
msg += "</tr></table>"
msg += "<b>Total Players: [length(Lines)]</b>"
to_chat(src, msg)
to_chat(src, "<span class='infoplain'>[msg]</span>")
/client/verb/adminwho()
set category = "Admin"

View File

@@ -195,7 +195,7 @@
var/raw_msg = message
if(visible_message_flags & EMOTE_MESSAGE)
message = "<b>[src]</b> [message]"
message = "<span class='emote'><b>[src]</b> [message]</span>"
for(var/mob/M in hearers)
if(!M.client)
@@ -240,7 +240,7 @@
hearers -= src
var/raw_msg = message
if(audible_message_flags & EMOTE_MESSAGE)
message = "<b>[src]</b> [message]"
message = "<span class='emote'><b>[src]</b> [message]</span>"
for(var/mob/M in hearers)
if(audible_message_flags & EMOTE_MESSAGE && runechat_prefs_check(M, audible_message_flags) && M.can_hear())
M.create_chat_message(src, raw_message = raw_msg, runechat_flags = audible_message_flags)

View File

@@ -58,7 +58,8 @@ em {font-style: normal; font-weight: bold;}
.alert {color: #ff0000;}
h1.alert, h2.alert {color: #000000;}
.emote { font-style: italic;}
.emote {}
.infoplain {}
.userdanger {color: #ff0000; font-weight: bold; font-size: 3;}
.danger {color: #ff0000; font-weight: bold;}
@@ -69,6 +70,7 @@ h1.alert, h2.alert {color: #000000;}
.boldwarning {color: #ff0000; font-style: italic; font-weight: bold}
.announce {color: #228b22; font-weight: bold;}
.boldannounce {color: #ff0000; font-weight: bold;}
.minorannounce { font-weight: bold; font-size: 3;}
.greenannounce {color: #00ff00; font-weight: bold;}
.rose {color: #ff5050;}
.info {color: #0000CC;}

View File

@@ -58,13 +58,13 @@ export const MESSAGE_TYPES = [
type: MESSAGE_TYPE_RADIO,
name: 'Radio',
description: 'All departments of radio messages',
selector: '.alert, .syndradio, .centradio, .airadio, .entradio, .comradio, .secradio, .engradio, .medradio, .sciradio, .supradio, .srvradio, .expradio, .radio, .deptradio, .newscaster',
selector: '.alert, .minorannounce, .syndradio, .centcomradio, .aiprivradio, .comradio, .secradio, .engradio, .medradio, .sciradio, .suppradio, .servradio, .radio, .deptradio, .binarysay, .newscaster',
},
{
type: MESSAGE_TYPE_INFO,
name: 'Info',
description: 'Non-urgent messages from the game and items',
selector: '.notice:not(.pm), .adminnotice, .info, .sinister, .cult',
selector: '.notice:not(.pm), .adminnotice, .info, .sinister, .cult, .infoplain',
},
{
type: MESSAGE_TYPE_WARNING,

View File

@@ -255,7 +255,7 @@ a.popt {
/* ADD HERE FOR ITALIC */
.italic, .italics, .emote {
.italic, .italics {
font-style: italic;
}
@@ -311,7 +311,7 @@ em {
font-weight: bold;
}
.say {
.say, .emote, .infoplain {
}
.deadsay {
@@ -390,10 +390,6 @@ em {
color: #d82020;
}
.emote {
font-style: italic;
}
.userdanger {
color: #c51e1e;
font-weight: bold;
@@ -430,6 +426,11 @@ em {
font-weight: bold;
}
.minorannounce {
font-weight: bold;
font-size: 185%;
}
.greenannounce {
color: #059223;
font-weight: bold;

View File

@@ -273,8 +273,7 @@ a.popt {
.italic,
.italics,
.emote {
.italics {
font-style: italic;
}
@@ -330,7 +329,7 @@ em {
font-weight: bold;
}
.say {
.say, .emote, .infoplain {
}
.deadsay {
@@ -416,10 +415,6 @@ h1.alert, h2.alert {
color: #000000;
}
.emote {
font-style: italic;
}
.userdanger {
color: #ff0000;
font-weight: bold;
@@ -471,6 +466,11 @@ h1.alert, h2.alert {
font-weight: bold;
}
.minorannounce {
font-weight: bold;
font-size: 185%;
}
.greenannounce {
color: #00ff00;
font-weight: bold;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long