This commit is contained in:
2025-09-06 14:46:49 -07:00
parent 8368a55d7c
commit d830a05d98
816 changed files with 2899 additions and 2586 deletions

View File

@@ -163,6 +163,7 @@ public partial class InventoryMenu : Control, IInventoryMenu
HideUserActionPrompt();
ShowInventoryInfo();
GameEventDepot.OnMenuBackedOut();
Autoload.InGameAudio.Cancel.Play();
}
else
{
@@ -180,6 +181,7 @@ public partial class InventoryMenu : Control, IInventoryMenu
Player.Stats.BonusAttack.Sync -= BonusAttack_Sync;
Player.Stats.BonusDefense.Sync -= BonusDefense_Sync;
_gameRepo.CloseInventory();
Autoload.InGameAudio.Cancel.Play();
}
}
@@ -202,6 +204,7 @@ public partial class InventoryMenu : Control, IInventoryMenu
SetToUnselectedStyle(ItemSlots.ElementAt(oldIndex));
SetToSelectedStyle(ItemSlots.ElementAt(newIndex));
GameEventDepot.OnMenuScrolled();
Autoload.InGameAudio.MoveThroughOptions.Play();
_currentIndex = newIndex;
}
@@ -216,12 +219,14 @@ public partial class InventoryMenu : Control, IInventoryMenu
SetToUnselectedStyle(ItemSlots.ElementAt(oldIndex));
SetToSelectedStyle(ItemSlots.ElementAt(newIndex));
GameEventDepot.OnMenuScrolled();
Autoload.InGameAudio.MoveThroughOptions.Play();
_currentIndex = newIndex;
}
if (@event.IsActionPressed(GameInputs.UiAccept))
{
DisplayUserActionPrompt();
Autoload.InGameAudio.Select.Play();
}
if (@event.IsActionPressed(GameInputs.InventorySort))
@@ -323,6 +328,7 @@ public partial class InventoryMenu : Control, IInventoryMenu
_currentPageNumber = pageToChangeTo;
await RefreshInventoryScreen();
GameEventDepot.OnMenuScrolled();
Autoload.InGameAudio.MoveThroughOptions.Play();
}
private async void PopulateInventory()