aboutsummaryrefslogtreecommitdiff
path: root/gui.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-08-06 21:00:27 +0200
committerAstatin <[email protected]>2025-08-06 21:00:27 +0200
commit8b7594415a4ca28b0193d24d59c3089f046a3be1 (patch)
treecc73c7f8b59ff5a30d9989bc99508de8b7241c08 /gui.gbasm
parent4db56b6d877ee88a672f5361bbe372783086353d (diff)
Add click sound effect on menu open, dialogue next & menu arrow moves
Diffstat (limited to 'gui.gbasm')
-rw-r--r--gui.gbasm13
1 files changed, 12 insertions, 1 deletions
diff --git a/gui.gbasm b/gui.gbasm
index 1cc94c4..6f1e2b2 100644
--- a/gui.gbasm
+++ b/gui.gbasm
@@ -181,6 +181,8 @@ Move_dialogue_cursor:
CP B
RET Z
+ .SET_SOUND_EFFECT =_sound_effect_Click
+
DEC A
BIT 1, A
JR Z, =.Vertical_axis
@@ -258,8 +260,8 @@ Check_dialogue_action:
CP $00
RET Z
BIT 0, A
+ .SET_SOUND_EFFECT =_sound_effect_Click
JP NZ, =Dialogue_script_step
- RET
.Dungeon_Menu:
LD A, $mem_button_action
@@ -274,6 +276,9 @@ Check_dialogue_action:
BIT 0, A
RET Z
+ LD A, $mem_menu_cursor_position
+ LD D, A
+
LD A, $mem_current_focused_attack_ep_cost
LD B, A
LD A, $mem_bunny_mana
@@ -290,6 +295,11 @@ Check_dialogue_action:
ADD L
LD L, A
+ LD A, $mem_menu_cursor_position
+ CP D
+ JR NZ, =.moved_sound_effect
+ .SET_SOUND_EFFECT =_sound_effect_Click
+ .moved_sound_effect:
LD A, (HL+)
LD D, A
LD A, (HL+)
@@ -345,6 +355,7 @@ Open_dialogue_on_dungeon_menu_mode:
AND $40 ; Keeping object additional tile
OR $0d
LD $mem_display_flag, A
+ .SET_SOUND_EFFECT =_sound_effect_Click
RET