]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
chat color change (#24922)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Sat, 3 Feb 2024 17:33:57 +0000 (12:33 -0500)
committerGitHub <noreply@github.com>
Sat, 3 Feb 2024 17:33:57 +0000 (12:33 -0500)
Content.Server/Chat/Systems/ChatSystem.cs
Resources/Prototypes/Palettes/text.yml

index 650a8b29479f5afdb3604d2dd14e052deeb8cc7a..649607772a9f2c77bc059e6c596483ad10fe8c57 100644 (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++)
         {
index de0a9fb60d9f5dcb112e150fea450500074b5334..48d20741532dbd32bea9e2566e8140a88ae577f0 100644 (file)
     amber-lighten-2: "#755900"
     amber-darken-2: "#cc8000"
     amber-accent-2: "#7c6200"
-    amber-accent-4: "#996700"
\ No newline at end of file
+    amber-accent-4: "#996700"
+
+- type: palette
+  id: ChatNames
+  name: Chat Names
+  colors:
+    ploink: "#da8bc9"
+    ourple: "#b18bda"
+    us-navy: "#96a4eb"
+    yet-another-blue: "#8cb7e8"
+    cyan: "#8bc9da"
+    fake-color: "#8bdaba"
+    green: "#8bda8e"
+    you-wish-you-were-green: "#a9da8b"
+    piss: "#ceda8b"
+    orange: "#dabc8b"
+    the-orange-she-tells-you-not-to-worry-about: "#daa58b"
+    red: "#da8b8b"