diff --git a/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs b/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs index 336b2d0757..be22414f3d 100644 --- a/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs +++ b/Content.Client/UserInterface/Systems/Chat/ChatUIController.cs @@ -65,13 +65,24 @@ public sealed class ChatUIController : UIController {SharedChatSystem.LOOCPrefix, ChatSelectChannel.LOOC}, {SharedChatSystem.OOCPrefix, ChatSelectChannel.OOC}, {SharedChatSystem.EmotesPrefix, ChatSelectChannel.Emotes}, + {SharedChatSystem.EmotesAltPrefix, ChatSelectChannel.Emotes}, {SharedChatSystem.AdminPrefix, ChatSelectChannel.Admin}, {SharedChatSystem.RadioCommonPrefix, ChatSelectChannel.Radio}, {SharedChatSystem.DeadPrefix, ChatSelectChannel.Dead} }; - public static readonly Dictionary ChannelPrefixes = - PrefixToChannel.ToDictionary(kv => kv.Value, kv => kv.Key); + public static readonly Dictionary ChannelPrefixes = new() + { + {ChatSelectChannel.Local, SharedChatSystem.LocalPrefix}, + {ChatSelectChannel.Whisper, SharedChatSystem.WhisperPrefix}, + {ChatSelectChannel.Console, SharedChatSystem.ConsolePrefix}, + {ChatSelectChannel.LOOC, SharedChatSystem.LOOCPrefix}, + {ChatSelectChannel.OOC, SharedChatSystem.OOCPrefix}, + {ChatSelectChannel.Emotes, SharedChatSystem.EmotesPrefix}, + {ChatSelectChannel.Admin, SharedChatSystem.AdminPrefix}, + {ChatSelectChannel.Radio, SharedChatSystem.RadioCommonPrefix}, + {ChatSelectChannel.Dead, SharedChatSystem.DeadPrefix} + }; /// /// The max amount of chars allowed to fit in a single speech bubble. diff --git a/Content.Shared/Chat/SharedChatSystem.cs b/Content.Shared/Chat/SharedChatSystem.cs index 040cb3af20..1858a868be 100644 --- a/Content.Shared/Chat/SharedChatSystem.cs +++ b/Content.Shared/Chat/SharedChatSystem.cs @@ -15,6 +15,7 @@ public abstract class SharedChatSystem : EntitySystem public const char LOOCPrefix = '('; public const char OOCPrefix = '['; public const char EmotesPrefix = '@'; + public const char EmotesAltPrefix = '*'; public const char AdminPrefix = ']'; public const char WhisperPrefix = ',';