(7ee8dbc11) v0.9.8.0

This commit is contained in:
Joonas Rikkonen
2020-03-31 15:11:41 +03:00
parent 3e99a49383
commit b647059b93
147 changed files with 2299 additions and 1297 deletions

View File

@@ -569,15 +569,13 @@ namespace Barotrauma
Font = GUI.SmallFont,
Text = value,
OverflowClip = true,
OnEnterPressed = (textBox, text) =>
};
propertyBox.OnDeselected += (textBox, keys) =>
{
if (property.TrySetValue(entity, textBox.Text))
{
if (property.TrySetValue(entity, text))
{
TrySendNetworkUpdate(entity, property);
textBox.Text = (string)property.GetValue(entity);
textBox.Deselect();
}
return true;
TrySendNetworkUpdate(entity, property);
textBox.Text = (string)property.GetValue(entity);
}
};
if (translationTextTag != null)