Adds a [PM] tag

Fixes .Private message type colors being silly
This commit is contained in:
Alex Noir
2017-12-05 18:50:36 +03:00
parent fdd3db82e6
commit 0e586651e7
4 changed files with 7 additions and 4 deletions
@@ -1099,7 +1099,7 @@ namespace Barotrauma
}
GUITextBlock msg = new GUITextBlock(new Rectangle(0, 0, chatBox.Rect.Width - 20, 0),
message.TextWithSender,
(message.Type == ChatMessageType.Private ? "[PM] " : "") + message.TextWithSender,
((chatBox.CountChildren % 2) == 0) ? Color.Transparent : Color.Black * 0.1f, message.Color,
Alignment.Left, Alignment.TopLeft, "", null, true, GUI.SmallFont);
msg.UserData = message;