Block on events where the inventory will close after, block in general to prevent inventory scrolling during inventory message display
This commit is contained in:
@@ -81,6 +81,12 @@ public partial class InventoryMenu : Control, IInventoryMenu
|
||||
|
||||
public override void _Input(InputEvent @event)
|
||||
{
|
||||
if (_blocking)
|
||||
{
|
||||
GetViewport().SetInputAsHandled();
|
||||
return;
|
||||
}
|
||||
|
||||
var validSelectableItems = _player.Inventory.Items.ToList();
|
||||
|
||||
if (Input.IsActionJustPressed(GameInputs.MoveUp) && _currentlySelected != null && _currentlySelected.Item.Value != validSelectableItems.First())
|
||||
|
||||
Reference in New Issue
Block a user