chat color change (#24922)

This commit is contained in:
Nemanja
2024-02-03 12:33:57 -05:00
committed by GitHub
parent c9018cf205
commit 2d48ec52ab
2 changed files with 20 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ public sealed partial class ChatSystem : SharedChatSystem
private readonly bool _adminLoocEnabled = true;
[ValidatePrototypeId<ColorPalettePrototype>]
private const string _chatNamePalette = "Material";
private const string ChatNamePalette = "ChatNames";
private string[] _chatNameColors = default!;
public override void Initialize()
@@ -84,7 +84,7 @@ public sealed partial class ChatSystem : SharedChatSystem
SubscribeLocalEvent<GameRunLevelChangedEvent>(OnGameChange);
var nameColors = _prototypeManager.Index<ColorPalettePrototype>(_chatNamePalette).Colors.Values.ToArray();
var nameColors = _prototypeManager.Index<ColorPalettePrototype>(ChatNamePalette).Colors.Values.ToArray();
_chatNameColors = new string[nameColors.Length];
for (var i = 0; i < nameColors.Length; i++)
{