Fix inventory UI not marking inputs as handled (#19097)
This commit is contained in:
@@ -220,6 +220,7 @@ public sealed class InventoryUIController : UIController, IOnStateEntered<Gamepl
|
||||
if (args.Function == EngineKeyFunctions.UIClick)
|
||||
{
|
||||
_inventorySystem.UIInventoryActivate(control.SlotName);
|
||||
args.Handle();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -244,6 +245,12 @@ public sealed class InventoryUIController : UIController, IOnStateEntered<Gamepl
|
||||
{
|
||||
_inventorySystem.UIInventoryAltActivateItem(slot, _playerUid.Value);
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
args.Handle();
|
||||
}
|
||||
|
||||
private void StoragePressed(GUIBoundKeyEventArgs args, SlotControl control)
|
||||
|
||||
Reference in New Issue
Block a user