GUI elements now respect render order + some minor distance comparison optimization

This commit is contained in:
juanjp600
2016-11-15 22:26:36 -03:00
parent 3c57b9d945
commit d2c17274fe
39 changed files with 441 additions and 47 deletions

View File

@@ -78,6 +78,14 @@ namespace Barotrauma
}
public static void AddToGUIUpdateList()
{
if (isOpen)
{
frame.AddToGUIUpdateList();
}
}
public static void Update(GameMain game, float deltaTime)
{
if (PlayerInput.KeyHit(Keys.F3))
@@ -89,7 +97,7 @@ namespace Barotrauma
}
else
{
GUIComponent.MouseOn = null;
GUIComponent.ForceMouseOn(null);
textBox.Deselect();
}