next set of spans (#16434)

* next set of spans

* some more

* next

* next

* next

* .

* text...

* next... rest soon

* .

* .

* ok last set for the night

* .

* .

* .

* .

* some more

* next

* next

* all for now

* .

* some more easy ones

* some more easy ones

* .

* .

* some more bolds

* oups auto complete moment

* add the remaining spans

* this as well

* this as well

* .

* .,

* resync them properly
This commit is contained in:
Kashargul
2024-10-16 23:37:27 +02:00
committed by GitHub
parent 6275972fef
commit b594520a74
604 changed files with 2801 additions and 2638 deletions
+3 -3
View File
@@ -121,7 +121,7 @@ var/global/list/emotes_by_key
if(target)
raw_3p = replace_target_tokens(raw_3p, target)
prefinal_3p = replace_user_tokens(raw_3p, user)
use_3p = span_emote("<b>\The [user]</b> [prefinal_3p]")
use_3p = span_emote(span_bold("\The [user]") + " [prefinal_3p]")
var/use_radio = get_radio_message(user)
if(use_radio)
if(target)
@@ -155,7 +155,7 @@ var/global/list/emotes_by_key
. = replacetext(., "TARGET_THEM", target_gender.him)
. = replacetext(., "TARGET_THEIR", target_gender.his)
. = replacetext(., "TARGET_SELF", target_gender.himself)
. = replacetext(., "TARGET", "<b>\the [target]</b>")
. = replacetext(., "TARGET", span_bold("\the [target]"))
/decl/emote/proc/replace_user_tokens(var/msg, var/atom/user)
. = msg
@@ -164,7 +164,7 @@ var/global/list/emotes_by_key
. = replacetext(., "USER_THEM", user_gender.him)
. = replacetext(., "USER_THEIR", user_gender.his)
. = replacetext(., "USER_SELF", user_gender.himself)
. = replacetext(., "USER", "<b>\the [user]</b>")
. = replacetext(., "USER", span_bold("\the [user]"))
/decl/emote/proc/get_radio_message(var/atom/user)
if(emote_message_radio_synthetic && check_synthetic(user))
+6 -6
View File
@@ -45,7 +45,7 @@
if(emote_datum.mob_can_use(src))
usable_emotes[emote_datum.key] = emote_datum
last_emote_summary = english_list(sortAssoc(usable_emotes))
to_chat(src,"<b>Usable emotes:</b> [last_emote_summary].")
to_chat(src,span_bold("Usable emotes:") + " [last_emote_summary].")
return
if(!can_emote(m_type))
@@ -95,7 +95,7 @@
if(use_emote.message_type == AUDIBLE_MESSAGE && is_muzzled())
var/muffle_message = use_emote.emote_message_muffled || "makes a muffled sound."
audible_message("<b>\The [src]</b> [muffle_message]", runemessage = "[muffle_message]")
audible_message(span_bold("\The [src]") + " [muffle_message]", runemessage = "[muffle_message]")
return
next_emote = world.time + use_emote.emote_delay
@@ -158,7 +158,7 @@
nametext = html_encode(nametext)
subtext = html_encode(subtext)
// Store the player's name in a nice bold, naturalement
nametext = "<B>[emoter]</B>"
nametext = span_bold("[emoter]")
return list("pretext" = pretext, "nametext" = nametext, "subtext" = subtext)
/mob/proc/custom_emote(var/m_type = VISIBLE_MESSAGE, var/message, var/range = world.view)
@@ -189,9 +189,9 @@
if(input)
log_emote(message,src) //Log before we add junk
if(usr && usr.client)
message = span_emote("<B>[src]</B> [input]")
message = span_emote(span_bold("[src]") + " [input]")
else
message = span_npc_emote("<B>[src]</B> [input]")
message = span_npc_emote(span_bold("[src]") + " [input]")
else
return
@@ -221,7 +221,7 @@
spawn(0) // It's possible that it could be deleted in the meantime, or that it runtimes.
if(M)
if(isobserver(M))
message = span_emote("<B>[src]</B> ([ghost_follow_link(src, M)]) [input]")
message = span_emote(span_bold("[src]") + " ([ghost_follow_link(src, M)]) [input]")
if(usr && usr.client && M && !(get_z(usr) == get_z(M)))
message = span_multizsay("[message]")
M.show_message(message, m_type)