Limit chat messages to 2500 characters.

This commit is contained in:
Paul Chote
2017-10-12 20:04:35 +01:00
committed by reaperrr
parent 249e813444
commit 75d4062698
3 changed files with 14 additions and 4 deletions

View File

@@ -469,6 +469,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
chatLabel = lobby.Get<LabelWidget>("LABEL_CHATTYPE");
var chatTextField = lobby.Get<TextFieldWidget>("CHAT_TEXTFIELD");
chatTextField.MaxLength = UnitOrders.ChatMessageMaxLength;
chatTextField.TakeKeyboardFocus();
chatTextField.OnEnterKey = () =>
{