Release 1.9.7.0 - Summer Update 2025
This commit is contained in:
@@ -1021,6 +1021,14 @@ namespace Barotrauma
|
||||
{
|
||||
MaxTextLength = Client.MaxNameLength
|
||||
};
|
||||
nameBox.OnTextChanged += (GUITextBox textBox, string text) =>
|
||||
{
|
||||
if (text.Contains('\n') || text.Contains('\r'))
|
||||
{
|
||||
textBox.Text = text.Replace("\r\n", " ").Replace('\n', ' ').Replace('\r', ' ');
|
||||
}
|
||||
return true;
|
||||
};
|
||||
new GUIButton(new RectTransform(groupElementSize, layoutGroup.RectTransform), text: TextManager.Get("confirm"))
|
||||
{
|
||||
OnClicked = (button, userData) =>
|
||||
|
||||
Reference in New Issue
Block a user