Light restyling of Boxed Messages and removal of unnecessary CSS styles from chat (#26852)

* Remove a lot of CSS and make boxed message stylish

* Paint themed boxed message and sort light chat styles

* Remove copyright from chat spans

* Uh oh
This commit is contained in:
Aylong
2024-10-10 13:00:40 +03:00
committed by GitHub
parent e657597b1c
commit 7ed4ef4f76
15 changed files with 450 additions and 1688 deletions
@@ -306,10 +306,10 @@
var/list/messages = list()
messages.Add("<b><font size=3 color='red'>You are a morph.</font><br></b>")
messages.Add("<span class='sinister'>You hunger for living beings and desire to procreate. Achieve this goal by ambushing unsuspecting pray using your abilities.</span>")
messages.Add("<span class='specialnotice'>As an abomination created primarily with changeling cells you may take the form of anything nearby by using your <span class='specialnoticebold'>Mimic ability.</span></span>")
messages.Add("<span class='specialnotice'>As an abomination created primarily with changeling cells you may take the form of anything nearby by using your <span class='specialnotice bold'>Mimic ability.</span></span>")
messages.Add("<span class='specialnotice'>The transformation will not go unnoticed for bystanding observers.</span>")
messages.Add("<span class='specialnoticebold'>While morphed</span><span class='specialnotice'>, you move slower and do less damage. In addition, anyone within three tiles will note an uncanny wrongness if examining you.</span>")
messages.Add("<span class='specialnotice'>From this form you can however <span class='specialnoticebold'>Prepare an Ambush</span> using your ability.</span>")
messages.Add("<span class='specialnotice bold'>While morphed</span><span class='specialnotice'>, you move slower and do less damage. In addition, anyone within three tiles will note an uncanny wrongness if examining you.</span>")
messages.Add("<span class='specialnotice'>From this form you can however <span class='specialnotice bold'>Prepare an Ambush</span> using your ability.</span>")
messages.Add("<span class='specialnotice'>This will allow you to deal a lot of damage the first hit. And if they touch you then even more.</span>")
messages.Add("<span class='specialnotice'>Finally, you can attack any item or dead creature to consume it - creatures will restore 1/3 of your max health and will add to your stored food while eating items will reduce your stored food.</span>")
messages.Add("<span class='motd'>For more information, check the wiki page: ([GLOB.configuration.url.wiki_url]/index.php/Morph)</span>")
@@ -84,11 +84,11 @@
revealed = FALSE
incorporeal_move = INCORPOREAL_MOVE_HOLY_BLOCK
invisibility = INVISIBILITY_REVENANT
to_chat(src, "<span class='revenboldnotice'>You are once more concealed.</span>")
to_chat(src, "<span class='revennotice bold'>You are once more concealed.</span>")
if(unstun_time && world.time >= unstun_time)
unstun_time = 0
notransform = FALSE
to_chat(src, "<span class='revenboldnotice'>You can move again!</span>")
to_chat(src, "<span class='revennotice bold'>You can move again!</span>")
update_spooky_icon()
/mob/living/simple_animal/revenant/ex_act(severity)
@@ -73,7 +73,7 @@
if(30 to 70)
to_chat(src, "<span class='revennotice'>[target] will yield an average amount of essence.</span>")
if(70 to 90)
to_chat(src, "<span class='revenboldnotice'>Such a feast! [target] will yield much essence to you.</span>")
to_chat(src, "<span class='revennotice bold'>Such a feast! [target] will yield much essence to you.</span>")
if(90 to INFINITY)
to_chat(src, "<span class='revenbignotice'>Ah, the perfect soul. [target] will yield massive amounts of essence to you.</span>")
if(do_after(src, 20, 0, target = target)) //how about now
@@ -95,7 +95,7 @@
if(essence_drained > 90)
essence_regen_cap += 25
perfectsouls += 1
to_chat(src, "<span class='revenboldnotice'>The perfection of [target]'s soul has increased your maximum essence level. Your new maximum essence is [essence_regen_cap].</span>")
to_chat(src, "<span class='revennotice bold'>The perfection of [target]'s soul has increased your maximum essence level. Your new maximum essence is [essence_regen_cap].</span>")
to_chat(src, "<span class='revennotice'>[target]'s soul has been considerably weakened and will yield no more essence for the time being.</span>")
target.visible_message("<span class='warning'>[target] slumps onto the ground.</span>", \
"<span class='revenwarning'>Violets lights, dancing in your vision, getting clo--</span>")
+4 -4
View File
@@ -1936,7 +1936,7 @@
P.faxmachineid = fax.UID()
P.loc = fax.loc // Do not use fax.receivefax(P) here, as it won't preserve the type. Physically teleporting the fax paper is required.
if(istype(H) && H.stat == CONSCIOUS && (istype(H.l_ear, /obj/item/radio/headset) || istype(H.r_ear, /obj/item/radio/headset)))
to_chat(H, "<span class='specialnoticebold'>Your headset pings, notifying you that a reply to your fax has arrived.</span>")
to_chat(H, "<span class='specialnotice bold'>Your headset pings, notifying you that a reply to your fax has arrived.</span>")
to_chat(src.owner, "You sent a [eviltype] fax to [H]")
log_admin("[key_name(src.owner)] sent [key_name(H)] a [eviltype] fax")
message_admins("[key_name_admin(src.owner)] replied to [key_name_admin(H)] with a [eviltype] fax")
@@ -2338,7 +2338,7 @@
P.update_icon()
fax.receivefax(P)
if(istype(H) && H.stat == CONSCIOUS && (istype(H.l_ear, /obj/item/radio/headset) || istype(H.r_ear, /obj/item/radio/headset)))
to_chat(H, "<span class='specialnoticebold'>Your headset pings, notifying you that a reply to your fax has arrived.</span>")
to_chat(H, "<span class='specialnotice bold'>Your headset pings, notifying you that a reply to your fax has arrived.</span>")
to_chat(src.owner, "You sent a standard '[stype]' fax to [H]")
log_admin("[key_name(src.owner)] sent [key_name(H)] a standard '[stype]' fax")
message_admins("[key_name_admin(src.owner)] replied to [key_name_admin(H)] with a standard '[stype]' fax")
@@ -2387,7 +2387,7 @@
to_chat(owner, "<span class='warning'>The person you are trying to contact is not wearing a headset. ERT denied but no message has been sent.</span>")
return
to_chat(owner, "<span class='notice'>You sent [reason] to [H] via a secure channel.</span>")
to_chat(H, "<span class='specialnoticebold'>Incoming priority transmission from Central Command. Message as follows,</span><span class='specialnotice'> Your ERT request has been denied for the following reasons: [reason].</span>")
to_chat(H, "<span class='specialnotice bold'>Incoming priority transmission from Central Command. Message as follows,</span><span class='specialnotice'> Your ERT request has been denied for the following reasons: [reason].</span>")
else
owner.response_team()
@@ -2583,7 +2583,7 @@
if(notify == "Yes")
var/mob/living/carbon/human/H = sender
if(istype(H) && H.stat == CONSCIOUS && (istype(H.l_ear, /obj/item/radio/headset) || istype(H.r_ear, /obj/item/radio/headset)))
to_chat(sender, "<span class='specialnoticebold'>Your headset pings, notifying you that a reply to your fax has arrived.</span>")
to_chat(sender, "<span class='specialnotice bold'>Your headset pings, notifying you that a reply to your fax has arrived.</span>")
if(sender)
log_admin("[key_name(src.owner)] replied to a fax message from [key_name(sender)]: [input]")
message_admins("[key_name_admin(src.owner)] replied to a fax message from [key_name_admin(sender)] (<a href='byond://?_src_=holder;AdminFaxView=\ref[P]'>VIEW</a>).", 1)
+2 -2
View File
@@ -269,14 +269,14 @@
GLOB.discord_manager.send2discord_simple(DISCORD_WEBHOOK_ADMIN, "PM from [key_name(src)]: [html_decode(msg)]")
to_chat(src, "<span class='pmsend'>PM to-<b>Discord Admins</b>: [msg]</span>", MESSAGE_TYPE_ADMINPM, confidential = TRUE)
to_chat(src, "<span class='discordpm'>PM to-<b>Discord Admins</b>: [msg]</span>", MESSAGE_TYPE_ADMINPM, confidential = TRUE)
log_admin("PM: [key_name(src)]->Discord: [msg]")
for(var/client/X in GLOB.admins)
if(X == src)
continue
if(check_rights(R_ADMIN, 0, X.mob))
to_chat(X, "<span class='pmsend'><b>PM: [key_name_admin(src)]-&gt;Discord Admins:</b> <span class='notice'>[msg]</span></span>")
to_chat(X, "<span class='discordpm'><b>PM: [key_name_admin(src)]-&gt;Discord Admins:</b> <span class='notice'>[msg]</span></span>")
/client/verb/open_pms_ui()
set name = "My PMs"
+1 -1
View File
@@ -182,7 +182,7 @@
log_admin("[key_name(src)] replied to [key_name(H)]'s [sender] message with the message [input].")
message_admins("[key_name_admin(src)] replied to [key_name_admin(H)]'s [sender] message with: \"[input]\"")
to_chat(H, "<span class = 'specialnoticebold'>Incoming priority transmission from [sender == "Syndicate" ? "your benefactor" : "Central Command"]. Message as follows[sender == "Syndicate" ? ", agent." : ":"]</span><span class = 'specialnotice'> [input]</span>")
to_chat(H, "<span class = 'specialnotice bold'>Incoming priority transmission from [sender == "Syndicate" ? "your benefactor" : "Central Command"]. Message as follows[sender == "Syndicate" ? ", agent." : ":"]</span><span class = 'specialnotice'> [input]</span>")
SEND_SOUND(H, 'sound/effects/headset_message.ogg')
+1 -1
View File
@@ -244,6 +244,6 @@
if(message)
for(var/mob/M in GLOB.mob_list)
follow_text = isobserver(M) ? " ([ghost_follow_link(src, ghost = M)])" : ""
rendered = "<font color=\"#EE4000\"><i><span class='game say'>Blob Telepathy, <span class='name'>[name]([overmind])</span>[follow_text] <span class='message'>states, \"[message]\"</span></span></i></font>"
rendered = "<span class='blob'>Blob Telepathy, <span class='name'>[name]([overmind])</span>[follow_text] <span class='message'>states, \"[message]\"</span></span>"
if(isovermind(M) || isobserver(M) || istype(M, /mob/living/simple_animal/hostile/blob/blobbernaut))
M.show_message(rendered, EMOTE_AUDIBLE)
+1 -1
View File
@@ -101,7 +101,7 @@
var/follow_text
for(var/mob/M in GLOB.mob_list)
follow_text = isobserver(M) ? " ([ghost_follow_link(src, ghost=M)])" : ""
rendered = "<font color=\"#EE4000\"><i><span class='game say'>Blob Telepathy, <span class='name'>[name]([blob_reagent_datum.name])</span>[follow_text] <span class='message'>states, \"[message]\"</span></span></i></font>"
rendered = "<span class='blob'>Blob Telepathy, <span class='name'>[name]([blob_reagent_datum.name])</span>[follow_text] <span class='message'>states, \"[message]\"</span></span>"
if(isovermind(M) || isobserver(M) || istype(M, /mob/living/simple_animal/hostile/blob/blobbernaut))
M.show_message(rendered, EMOTE_AUDIBLE)
+1 -1
View File
@@ -57,4 +57,4 @@
@include meta.load-css('~tgui/styles/layouts/Window.scss');
// Goonchat styles
@include meta.load-css('./tgchat/chat-dark.scss');
@include meta.load-css('./tgchat/chat-default.scss');
File diff suppressed because it is too large Load Diff
@@ -1,35 +1,19 @@
.boxed_message {
background: #1c242e;
border: 1px solid #a3b9d9;
margin: 0.5em;
padding: 0.5em 0.75em;
text-align: center;
}
.boxed_message.left_align_text {
text-align: left;
background: hsl(220, 25%, 15%);
}
.boxed_message.red_border {
background: #2e1c1c;
border-color: #aa0000;
background: hsl(0, 25%, 15%);
}
.boxed_message.green_border {
background: #1c2e22;
border-color: #00ff00;
background: hsl(140, 25%, 15%);
}
.boxed_message.purple_border {
background: #221c2e;
border-color: #8000ff;
background: hsl(260, 25%, 15%);
}
.boxed_message.notice_border {
background: #1f2633;
border-color: #6685f5;
}
.boxed_message.thick_border {
border-width: thick;
background: hsl(220, 35%, 15%);
}
@@ -7,37 +7,26 @@
}
.boxed_message {
background: rgba(0, 0, 0, 0.25);
border: 1px solid #a3b9d9;
margin: 0.5em;
padding: 0.5em 0.75em;
text-align: center;
}
.boxed_message.left_align_text {
text-align: left;
background: hsla(0, 0%, 0%, 0.25);
border-color: hsla(20, 50%, 75%, 0.25);
}
.boxed_message.red_border {
background: rgba(0, 0, 0, 0.25);
border-color: #aa0000;
background: hsla(0, 75%, 5%, 0.25);
border-color: hsla(0, 100%, 50%, 0.5);
}
.boxed_message.green_border {
background: rgba(0, 0, 0, 0.25);
border-color: #00ff00;
background: hsla(140, 75%, 5%, 0.25);
border-color: hsla(120, 100%, 50%, 0.5);
}
.boxed_message.purple_border {
background: rgba(0, 0, 0, 0.25);
border-color: #8000ff;
background: hsla(260, 75%, 5%, 0.25);
border-color: hsla(260, 100%, 65%, 0.5);
}
.boxed_message.notice_border {
background: rgba(0, 0, 0, 0.25);
border-color: #6685f5;
}
.boxed_message.thick_border {
border-width: thick;
background: hsla(220, 75%, 5%, 0.25);
border-color: hsla(225, 90%, 65%, 0.5);
}
@@ -7,37 +7,21 @@
}
.boxed_message {
background: rgba(20, 20, 35, 0.25);
border: 1px solid #a3b9d9;
margin: 0.5em;
padding: 0.5em 0.75em;
text-align: center;
}
.boxed_message.left_align_text {
text-align: left;
background: hsl(0, 70%, 12.5%);
}
.boxed_message.red_border {
background: rgba(0, 0, 0, 0.2);
border-color: #ff0000;
background: hsl(0, 100%, 12.5%);
}
.boxed_message.green_border {
background: rgba(0, 75, 0, 0.25);
border-color: #00ff00;
background: hsl(40, 100%, 7.5%);
}
.boxed_message.purple_border {
background: rgba(25, 0, 50, 0.25);
border-color: #8000ff;
background: hsl(300, 100%, 7.5%);
}
.boxed_message.notice_border {
background: rgba(0, 0, 75, 0.25);
border-color: #6685f5;
}
.boxed_message.thick_border {
border-width: thick;
background: hsl(325, 100%, 7.5%);
}
File diff suppressed because one or more lines are too long