OOC sent by an admin will have a different color (#3117)

* Admin OOC is sent with a different color than regular OOC

- Also adds the OOC color to the database

* Command to set the color

* Ooc -> OOC

* Change default color to Red (`#ff0000`)

* Outdated namespace
This commit is contained in:
Leo
2021-02-14 11:59:56 -03:00
committed by GitHub
parent 54f48aa6a9
commit a3d0e3f6a7
17 changed files with 1324 additions and 30 deletions

View File

@@ -1,4 +1,6 @@
using Content.Shared.Chat;
using Robust.Shared.Log;
using Robust.Shared.Maths;
namespace Content.Client.Chat
{
@@ -25,6 +27,11 @@ namespace Content.Client.Chat
/// </summary>
public string MessageWrap { get; set; }
/// <summary>
/// The override color of the message
/// </summary>
public Color MessageColorOverride { get; set; }
/// <summary>
/// Constructor to copy a net message into stored client variety
/// </summary>
@@ -33,6 +40,7 @@ namespace Content.Client.Chat
Message = netMsg.Message;
Channel = netMsg.Channel;
MessageWrap = netMsg.MessageWrap;
MessageColorOverride = netMsg.MessageColorOverride;
}
}
}