Add SFX
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user