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 (ss220club#965)

## Что этот PR делает

Красит имя в локальном в чате, в зависимости от цвета присвоенного к
рунчату моба

## Почему это хорошо для игры

Легче понимать кто говорит вчат

## Изображения изменений


![image](https://github.com/user-attachments/assets/4b69e53b-0af9-483c-809a-966c971743b4)

## Тестирование

запустил, проверил

## Changelog

:cl:
add: Красит имя в локальном в чате, в зависимости от цвета присвоенного
к рунчату моба
/:cl:
  • Loading branch information
Gaxeer authored Jan 14, 2025
1 parent bc1deee commit 9d29585
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 @@ -150,7 +150,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 @@ -231,7 +231,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 9d29585

Please sign in to comment.