Skip to content

Commit

Permalink
Do not color messages with default color
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnemotechnician committed Jul 22, 2024
1 parent 2934aeb commit 29621c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Content.Server/Radio/EntitySystems/RadioSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,12 @@ public void SendRadioMessage(EntityUid messageSource, string message, RadioChann
private string WrapRadioMessage(EntityUid source, RadioChannelPrototype channel, string name, string message, LanguagePrototype language)
{
var speech = _chat.GetSpeechVerb(source, message);
// TODO this is done just to preserve the old look of radio, perhaps we can change it as well?
var languageColor = language.SpeechOverride.Color == Color.White ? channel.Color : language.SpeechOverride.Color;

return Loc.GetString(speech.Bold ? "chat-radio-message-wrap-bold" : "chat-radio-message-wrap",
("color", channel.Color),
("languageColor", language.SpeechOverride.Color),
("languageColor", languageColor),
("fontType", language.SpeechOverride.FontId ?? speech.FontId),
("fontSize", language.SpeechOverride.FontSize ?? speech.FontSize),
("verb", Loc.GetString(_random.Pick(speech.SpeechVerbStrings))),
Expand Down

0 comments on commit 29621c3

Please sign in to comment.