Fix some boxes and global positioning

This commit is contained in:
2026-02-26 22:56:57 -08:00
parent 0c4a424a4d
commit 721a45c6bb
12 changed files with 83 additions and 14 deletions

View File

@@ -85,6 +85,15 @@ public partial class InventoryMenu : Control, IInventoryMenu
SfxDatabase.Instance.Play(SoundEffect.MoveUI);
if (Input.IsActionJustPressed(GameInputs.Interact))
SfxDatabase.Instance.Play(SoundEffect.CancelUI);
if (Input.IsActionJustPressed(GameInputs.InventorySort))
{
var sorted = _player.Inventory.Sort(_player.EquipmentComponent.EquippedWeapon.Value, _player.EquipmentComponent.EquippedArmor.Value, _player.EquipmentComponent.EquippedAccessory.Value, _player.EquipmentComponent.EquippedAmmo.Value);
if (sorted)
{
ResetInventoryState();
SfxDatabase.Instance.Play(SoundEffect.SortInventory);
}
}
}
private void ActionPanel_AugmentMenuRequested()