2022-10-12 01:16:23 -07:00
|
|
|
|
namespace Content.Shared.Chat;
|
|
|
|
|
|
|
|
|
|
|
|
public static class ChatChannelExtensions
|
|
|
|
|
|
{
|
|
|
|
|
|
public static Color TextColor(this ChatChannel channel)
|
|
|
|
|
|
{
|
|
|
|
|
|
return channel switch
|
|
|
|
|
|
{
|
2024-01-31 12:54:38 +00:00
|
|
|
|
ChatChannel.Server => Color.FromHex("#9051a8"),
|
2022-10-12 01:16:23 -07:00
|
|
|
|
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,
|
2022-12-19 21:39:01 -06:00
|
|
|
|
ChatChannel.AdminChat => Color.HotPink,
|
2022-10-12 01:16:23 -07:00
|
|
|
|
ChatChannel.Whisper => Color.DarkGray,
|
2024-08-08 13:20:06 +03:00
|
|
|
|
// WD EDIT START
|
|
|
|
|
|
ChatChannel.Cult => Color.DarkRed,
|
2024-01-31 14:01:35 +00:00
|
|
|
|
ChatChannel.Changeling => Color.Purple,
|
2024-08-08 13:20:06 +03:00
|
|
|
|
ChatChannel.Network => Color.White,
|
|
|
|
|
|
// WD EDIT END
|
2022-10-12 01:16:23 -07:00
|
|
|
|
_ => Color.LightGray
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|