Deselecting the currently selected item has a higher priority than interacting with the focused item (i.e. can't interact with another item until the selected item is deselected)

This commit is contained in:
Joonas Rikkonen
2017-07-09 19:19:28 +03:00
parent 769a012776
commit cbe7200ff6
@@ -1257,15 +1257,15 @@ namespace Barotrauma
{ {
SelectCharacter(focusedCharacter); SelectCharacter(focusedCharacter);
} }
else if (IsKeyHit(InputType.Select) && selectedConstruction != null)
{
selectedConstruction = null;
}
else if (focusedItem != null) else if (focusedItem != null)
{ {
focusedItem.IsHighlighted = true; focusedItem.IsHighlighted = true;
focusedItem.TryInteract(this); focusedItem.TryInteract(this);
} }
else if (IsKeyHit(InputType.Select) && selectedConstruction != null)
{
selectedConstruction = null;
}
} }
public static void UpdateAnimAll(float deltaTime) public static void UpdateAnimAll(float deltaTime)