* split admin chat into new channel * add ability to play audio when a chat message is received and add audio to admin chat * give client control of AdminChat sound and volume + suppress sound for senders
21 lines
640 B
C#
21 lines
640 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.Admin => Color.Red,
|
|
ChatChannel.AdminChat => Color.HotPink,
|
|
ChatChannel.Whisper => Color.DarkGray,
|
|
_ => Color.LightGray
|
|
};
|
|
}
|
|
}
|