Fix some boxes and global positioning
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user