Skip to content

Commit

Permalink
color speaker names in local chat channel as their corresponding rune…
Browse files Browse the repository at this point in the history
…chat name
  • Loading branch information
Gaxeer committed Jan 11, 2025
1 parent c37d7b1 commit f2d21b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ GLOBAL_LIST_INIT(freqtospan, list(
var/namepart
var/list/stored_name = list(null)
SEND_SIGNAL(speaker, COMSIG_MOVABLE_MESSAGE_GET_NAME_PART, stored_name, visible_name)
namepart = stored_name[NAME_PART_INDEX] || "[speaker.GetVoice()]"
namepart = "<span style='color: [speaker.chat_color]'>[stored_name[NAME_PART_INDEX] || speaker.GetVoice()]</span>" // Bandastation Addition: span with color

//End name span.
var/endspanpart = "</span>"
Expand Down Expand Up @@ -230,7 +230,7 @@ GLOBAL_LIST_INIT(freqtospan, list(
processed_input = attach_spans(processed_input, spans)

var/processed_say_mod = say_emphasis(say_mod)

return "[processed_say_mod], \"[processed_input]\""

/// Transforms the speech emphasis mods from [/atom/movable/proc/say_emphasis] into the appropriate HTML tags. Includes escaping.
Expand Down

0 comments on commit f2d21b6

Please sign in to comment.