dw str_dbg_clear_actors
debug_menu_str_table_end:
-#define DEBUG_MENU_STR_TABLE_LEN (debug_menu_str_table_end - debug_menu_str_table)
+#define DEBUG_MENU_STR_TABLE_LEN (debug_menu_str_table_end - debug_menu_str_table) / 2
debug_menu_action_table:
debug_menu_action_table_end:
ret
@notb:
+ ; update menu
+ ld a, [debug_menu_cursor]
+ ld hl, debug_menu_str_table
+ ld b, DEBUG_MENU_STR_TABLE_LEN
+ call select_menu_update
+ ld [debug_menu_cursor], a
+
ldnull bc
ret
ld [hl], a
; draw initial status line
- ld a, [action_menu_cursor]
+ ld a, [debug_menu_cursor]
ld b, DEBUG_MENU_STR_TABLE_LEN
ld hl, debug_menu_str_table
call select_menu_draw_status
redraw_steps: .adv 1
action_menu_cursor: .adv 1
+debug_menu_cursor: .adv 1
; simple menu delay timer
select_menu_delay: .adv 1