In this version of the inventory system I've expanded on the support for sounds. This page is a breakdown of how they work, and how you can customize them. If there are more sounds you would like to see added in the future please let me know.
Default Sounds
All of the default sounds played throughout this system are defined in the UI_InventorySystemHUD found in the UIs/ folder.
Inside this widget locate the map variable UI_Sounds. For each entry in this map variable the Key is the Sound Type (the event that occurs), and the Value is the soft object reference to the Sound that is played. The default values used by each are all from the built in Engine content.
Below is a breakdown of each Sound Type, and when it is played. The other sections on this page will go into customizing these sounds.
Window Sounds
See the Override Window Sounds section further below to learn how to customize these sounds for each window.
WindowShow The default sound played when the window is shown.
WindowHide The default sound played when the window is hidden.
Item Sounds
See the Override Item Sounds section further below to learn how to customize these sound for each item.
ItemPickup The default sound played when an item is picked up in the world or on the item grid. This sound is also played when an item is added through any other means to a grid with notifications enabled.
ItemDrop The default sound played when an item is dropped in the world or on an item grid.
ItemMove The default sound played when an item is moved from one location to another in a method other than dropping. Such as right clicking to transfer.
Other Sounds
Click When some things are clicked on this sound will play.
Error When an error alert spawns this sound will play.
Crafting Sounds
See the Override Crafting Sounds section further below to learn how to customize these sounds for each recipe.
Craft Fail When crafting fails while a crafting window is open this sound will play.
Craft Success When crafting succeeds while a crafting window is open this sound will play.
Craft Bonus When crafting succeeds with a bonus while a crafting window is open this sound will play.
Vendor Sounds
Buy Item When an item is purchased from a vendor this sound will play.
Sell Item When an item is sold to a vendor this sound will play.
Override Item Sounds
You can override the default sounds played for each item through the UISounds section of each item in the DT_Items data table. Each item lets you define 3 override sounds:
PickupSound - When the player picks up an item in the world or from the item grid this sound will play.
DropSound - When the player drops an item in the world or on the item grid this sound will play.
MoveSound - When the player moves an item from an item grid (with right click) this sound will play.
Override Crafting Sounds
You can override the default sounds played for each crafting recipe through the UISounds section of each recipe in the DT_Recipes data table. Each recipe lets you define 3 override sounds:
CraftSuccessSound - The sound that plays when crafting succeeds for this recipe while a crafting window is open.
CraftBonusSound - The sound that plays when crafting succeeds with a bonus for this recipe while a crafting window is open.
CraftFailSound - The sound that plays when crafting fails for this recipe while a crafting window is open.
Override Window Sounds
You can also override the default show and hide sounds that are played for each window. Where you customize the sound depends on the window, here is a breakdown of each:
Player Specific Windows
Player Inventory - Customize the player inventory window sounds on the AC_InventorySystem component you added to the player controller. Navigate to the Configure / Inventory / Inventory Window section to set your show and hide window sounds.
Player Bank - Customize the default player bank window sounds on the
AC_InventorySystem component you added to the player controller. Navigate to the Configure / Bank / Bank Window section to set your show and hide window sounds.
These banking values are only used if you are not overriding the sounds from the banking actor through the BankerWindowOpenSound and BankerWindowCloseSound variables found in the UI section of the banker blueprint.
Player Equipment - Customize the player equipment window sounds on the AC_InventorySystem component you added to the player controller. Navigate to the Configure / Equipment / Equipment Window section to set your show and hide window sounds.
Player Currency - Customize the player currency window sounds on the AC_InventorySystem component you added to the player controller. Navigate to the Configure / Currency / Currency Window section to set your show and hide window sounds.
Player Crafting - Customize the player crafting window sounds on the AC_InventorySystem component you added to the player controller. Navigate to the Configure / Inventory / Inventory Window section to set your show and hide window sounds.
Other World Actor Windows
Containers - Customize the container window show and hide sounds in the container blueprint BP_Interactable_Container or within the child blueprints of this class using the WindowOpenSound and WindowCloseSound variables.
Workstations - Customize the workstation window show and hide sounds in the workstation blueprint BP_Interactable_Workstation or within the child blueprints of this class using the WindowOpenSound and WindowCloseSound variables.
Vendors - Customize the vendor window show and hide sounds in the vendor blueprint BP_Interactable_Vendor or within the child blueprints of this class using the VendorWindowOpenSound and VendorWindowCloseSound variables.