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
|
|
|
{
|
|
|
|
|
public class ChatHelper
|
|
|
|
|
{
|
|
|
|
|
public static Color ChatColor(ChatChannel channel) =>
|
|
|
|
|
channel switch
|
|
|
|
|
{
|
|
|
|
|
ChatChannel.Server => Color.Orange,
|
2021-09-20 21:50:02 -07:00
|
|
|
ChatChannel.Radio => Color.LimeGreen,
|
2021-05-10 19:49:12 +02:00
|
|
|
ChatChannel.OOC => Color.LightSkyBlue,
|
|
|
|
|
ChatChannel.Dead => Color.MediumPurple,
|
2021-07-20 10:29:09 +02:00
|
|
|
ChatChannel.Admin => Color.Red,
|
2021-05-10 19:49:12 +02:00
|
|
|
_ => Color.DarkGray
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|