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()
|
||||
|
||||
BIN
Zennysoft.Game.Ma/src/ui/player_ui/Assets/panel rough draft.png
Normal file
BIN
Zennysoft.Game.Ma/src/ui/player_ui/Assets/panel rough draft.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 365 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bj4p4qxb1mj3q"
|
||||
path="res://.godot/imported/panel rough draft.png-0c7c4e82f01664d18eb3207c7b4e1a9a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://src/ui/player_ui/Assets/panel rough draft.png"
|
||||
dest_files=["res://.godot/imported/panel rough draft.png-0c7c4e82f01664d18eb3207c7b4e1a9a.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
Reference in New Issue
Block a user