fox32rom: Don't repush the submenu update event if the submenu closed
This commit is contained in:
parent
9a2c1fcf4a
commit
3a5675ec6d
|
@ -193,6 +193,12 @@ submenu_update_event:
|
||||||
mov r9, r2 ; r9: selected root menu item
|
mov r9, r2 ; r9: selected root menu item
|
||||||
mov r10, r3 ; r10: hovering submenu item (or 0xFFFFFFFF for none)
|
mov r10, r3 ; r10: hovering submenu item (or 0xFFFFFFFF for none)
|
||||||
|
|
||||||
|
; check if the submenu overlay is enabled
|
||||||
|
; if the submenu was closed then exit without repushing the update event to the event stack
|
||||||
|
in r0, 0x8000031D
|
||||||
|
cmp r0, 0
|
||||||
|
ifz jmp submenu_update_event_end_no_push
|
||||||
|
|
||||||
; get the current mouse position and check if the submenu overlay covers that position
|
; get the current mouse position and check if the submenu overlay covers that position
|
||||||
; if the mouse is not in the submenu, then there is nothing to do
|
; if the mouse is not in the submenu, then there is nothing to do
|
||||||
call get_mouse_position
|
call get_mouse_position
|
||||||
|
|
Loading…
Reference in New Issue
Block a user