Files
OldThink/Content.Shared/Chat/ChatChannelExtensions.cs

27 lines
904 B
C#
Raw Permalink Normal View History

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,
2023-03-23 10:10:49 -05:00
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
};
}
}