Add debug menu UI when you press L+R in the main menu.

It's only the UI yet. It only shows a couple of dummy options right now.
This commit is contained in:
Philippe Symons
2026-03-09 19:56:32 +01:00
parent 12f710dafc
commit b84939b49a
28 changed files with 433 additions and 31 deletions

View File

@@ -14,7 +14,8 @@
#include "sprite_data.h"
#include "button_handler.h"
#include "button_menu.h"
#include "debug_mode.h"
#include "dbg/debug_mode.h"
#include "dbg/debug_menu.h"
// #include "soundbank.h"
// #include "soundbank_bin.h"
#include "dex_handler.h"
@@ -343,6 +344,10 @@ int main_menu_loop()
ptgb_write("#{cx:0xF000}");
return return_values[curr_selection];
}
else if ((key_held(KEY_L) && key_held(KEY_R)))
{
return BTN_DEBUG_MENU;
}
else
{
update = false;
@@ -558,6 +563,10 @@ int main(void)
obj_hide_multi(ptgb_logo_l, 2);
text_loop(SCRIPT_DEBUG);
break;
case (BTN_DEBUG_MENU):
obj_hide_multi(ptgb_logo_l, 2);
show_debug_menu();
break;
default:
global_next_frame();
}