Files
OldThink/Content.Shared/Chat/ChatChannelExtensions.cs
Spatison cced3cc98b Сообщения в ПДА 2 (#583)
* add: AdminLog

* tweak: clean up

* fix: Changeling -> Network

* add: сортировка сообщений

* fix: ТексТ
2024-08-08 13:20:06 +03:00

27 lines
904 B
C#

namespace Content.Shared.Chat;
public static class ChatChannelExtensions
{
public static Color TextColor(this ChatChannel channel)
{
return channel switch
{
ChatChannel.Server => Color.FromHex("#9051a8"),
ChatChannel.Radio => Color.LimeGreen,
ChatChannel.LOOC => Color.MediumTurquoise,
ChatChannel.OOC => Color.LightSkyBlue,
ChatChannel.Dead => Color.MediumPurple,
ChatChannel.Admin => Color.Red,
ChatChannel.AdminAlert => Color.Red,
ChatChannel.AdminChat => Color.HotPink,
ChatChannel.Whisper => Color.DarkGray,
// WD EDIT START
ChatChannel.Cult => Color.DarkRed,
ChatChannel.Changeling => Color.Purple,
ChatChannel.Network => Color.White,
// WD EDIT END
_ => Color.LightGray
};
}
}