refactors most spans

This commit is contained in:
Kashargul
2024-10-02 21:10:31 +02:00
parent 5417c7772c
commit a2c673ab7a
1517 changed files with 12436 additions and 12347 deletions
+2 -2
View File
@@ -113,7 +113,7 @@ var/global/list/emotes_by_key
if(use_1p)
if(target)
use_1p = replace_target_tokens(use_1p, target)
use_1p = "<span class='emote'>[capitalize(replace_user_tokens(use_1p, user))]</span>"
use_1p = span_emote("[capitalize(replace_user_tokens(use_1p, user))]")
var/prefinal_3p
var/use_3p
var/raw_3p = get_emote_message_3p(user, target, extra_params)
@@ -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 class='emote'><b>\The [user]</b> [prefinal_3p]</span>"
use_3p = span_emote("<b>\The [user]</b> [prefinal_3p]")
var/use_radio = get_radio_message(user)
if(use_radio)
if(target)
+5 -5
View File
@@ -21,7 +21,7 @@
if(usr == src) //client-called emote
if (client && (client.prefs.muted & MUTE_IC))
to_chat(src, "<span class='warning'>You cannot send IC messages (muted).</span>")
to_chat(src, span_warning("You cannot send IC messages (muted)."))
return
if(world.time < next_emote)
@@ -189,9 +189,9 @@
if(input)
log_emote(message,src) //Log before we add junk
if(usr && usr.client)
message = "<span class='emote'><B>[src]</B> [input]</span>"
message = span_emote("<B>[src]</B> [input]")
else
message = "<span class='npcemote'><B>[src]</B> [input]</span>"
message = span_npc_emote("<B>[src]</B> [input]")
else
return
@@ -221,9 +221,9 @@
spawn(0) // It's possible that it could be deleted in the meantime, or that it runtimes.
if(M)
if(isobserver(M))
message = "<span class='emote'><B>[src]</B> ([ghost_follow_link(src, M)]) [input]</span>"
message = span_emote("<B>[src]</B> ([ghost_follow_link(src, M)]) [input]")
if(usr && usr.client && M && !(get_z(usr) == get_z(M)))
message = "<span class='multizsay'>[message]</span>"
message = span_multizsay("[message]")
M.show_message(message, m_type)
M.create_chat_message(src, "[runemessage]", FALSE, list("emote"), (m_type == AUDIBLE_MESSAGE))