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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user