Fixed string inputs in SerializableEntityEditor being cleared when enter is hit
This commit is contained in:
@@ -243,6 +243,8 @@ namespace Barotrauma
|
|||||||
if (property.TrySetValue(text))
|
if (property.TrySetValue(text))
|
||||||
{
|
{
|
||||||
TrySendNetworkUpdate(entity, property);
|
TrySendNetworkUpdate(entity, property);
|
||||||
|
textBox.Text = (string)property.GetValue();
|
||||||
|
textBox.Deselect();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user