2021-05-10 19:49:12 +02:00
|
|
|
using Content.Shared.Chat;
|
|
|
|
|
using Robust.Shared.Maths;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Client.Chat
|
2021-05-10 19:49:12 +02:00
|
|
|
{
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class ChatHelper
|
2021-05-10 19:49:12 +02:00
|
|
|
{
|
|
|
|
|
public static Color ChatColor(ChatChannel channel) =>
|
|
|
|
|
channel switch
|
|
|
|
|
{
|
|
|
|
|
ChatChannel.Server => Color.Orange,
|
2021-09-20 21:50:02 -07:00
|
|
|
ChatChannel.Radio => Color.LimeGreen,
|
2022-01-14 04:28:09 -08:00
|
|
|
ChatChannel.LOOC => Color.MediumTurquoise,
|
|
|
|
|
ChatChannel.OOC => Color.LightSkyBlue,
|
2021-05-10 19:49:12 +02:00
|
|
|
ChatChannel.Dead => Color.MediumPurple,
|
2021-07-20 10:29:09 +02:00
|
|
|
ChatChannel.Admin => Color.Red,
|
2022-01-11 06:48:18 -08:00
|
|
|
ChatChannel.Whisper => Color.DarkGray,
|
|
|
|
|
_ => Color.LightGray
|
2021-05-10 19:49:12 +02:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|