Add alternative emotes channel (#15965)

This commit is contained in:
router
2023-06-27 00:20:08 +03:00
committed by GitHub
parent 56a363a5df
commit 33f823e6be
2 changed files with 14 additions and 2 deletions

View File

@@ -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<ChatSelectChannel, char> ChannelPrefixes =
PrefixToChannel.ToDictionary(kv => kv.Value, kv => kv.Key);
public static readonly Dictionary<ChatSelectChannel, char> 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}
};
/// <summary>
/// The max amount of chars allowed to fit in a single speech bubble.

View File

@@ -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 = ',';