mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-02-15 03:31:44 +01:00
* refmbcult * fixrule * minich * yeee * linter * somefixes * cultext&gamb * linterfix * fixtarot
23 lines
757 B
C#
23 lines
757 B
C#
namespace Content.Shared.Chat;
|
|
|
|
public static class ChatChannelExtensions
|
|
{
|
|
public static Color TextColor(this ChatChannel channel)
|
|
{
|
|
return channel switch
|
|
{
|
|
ChatChannel.Server => Color.Orange,
|
|
ChatChannel.Radio => Color.LimeGreen,
|
|
ChatChannel.LOOC => Color.MediumTurquoise,
|
|
ChatChannel.OOC => Color.LightSkyBlue,
|
|
ChatChannel.Dead => Color.MediumPurple,
|
|
ChatChannel.Mind => Color.Peru, // Corvax-Wega-MindChat
|
|
ChatChannel.Admin => Color.Red,
|
|
ChatChannel.AdminAlert => Color.Red,
|
|
ChatChannel.AdminChat => Color.HotPink,
|
|
ChatChannel.Whisper => Color.DarkGray,
|
|
_ => Color.LightGray
|
|
};
|
|
}
|
|
}
|