v2.6.1
This commit is contained in:
@@ -205,7 +205,7 @@ namespace Barotrauma
|
||||
|
||||
private Vector2 MeasureText(string text)
|
||||
{
|
||||
if (string.IsNullOrEmpty(text) || Font==null) return Vector2.Zero;
|
||||
if (Font==null) return Vector2.Zero;
|
||||
|
||||
Vector2 size = Vector2.Zero;
|
||||
while (size == Vector2.Zero)
|
||||
|
||||
@@ -196,9 +196,15 @@ namespace Barotrauma
|
||||
{
|
||||
string input = Text;
|
||||
Text = "";
|
||||
OnEnterPressed(this, input);
|
||||
|
||||
OnEnterPressed(this, input);
|
||||
}
|
||||
#if LINUX
|
||||
else if (PlayerInput.KeyHit(Keys.Back) && Text.Length>0)
|
||||
{
|
||||
Text = Text.Substring(0, Text.Length-1);
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
textBlock.Update(deltaTime);
|
||||
|
||||
Reference in New Issue
Block a user