mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-09-08 09:05:40 -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:
17
source/dbg/debug_menu_functions.cpp
Normal file
17
source/dbg/debug_menu_functions.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "dbg/debug_menu_functions.h"
|
||||
#include "libraries/nanoprintf/nanoprintf.h"
|
||||
#include "text_engine.h"
|
||||
#include "pokemon_data.h"
|
||||
|
||||
void dbg_menu_print_number(void *context, unsigned user_param)
|
||||
{
|
||||
(void)context;
|
||||
char buf[64];
|
||||
npf_snprintf(buf, sizeof(buf), "%u", user_param);
|
||||
uint16_t charset[256];
|
||||
load_localized_charset(charset, 3, ENGLISH);
|
||||
|
||||
tte_erase_rect(0, 0, 100, 12);
|
||||
tte_set_pos(0, 0);
|
||||
ptgb_write_debug(charset, buf, true);
|
||||
}
|
||||
Reference in New Issue
Block a user