mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-08-22 08:45:16 -05:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user