mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-09-08 17:15:33 -05:00
Linking textbox creation to string display
This commit is contained in:
@@ -16,7 +16,7 @@ void show_text_debug_screen(void *context, unsigned user_param)
|
||||
(void)user_param;
|
||||
|
||||
tte_set_ink(INK_DARK_GREY);
|
||||
REG_BG1CNT = (REG_BG1CNT & ~BG_PRIO_MASK) | BG_PRIO(3);
|
||||
BG_FLEX = (BG_FLEX & ~BG_PRIO_MASK) | BG_PRIO(3);
|
||||
text_loop(SCRIPT_DEBUG);
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ void show_debug_info_screen(void *context, unsigned user_param)
|
||||
n2hexstr(def_lang_hex_str, def_lang);
|
||||
|
||||
create_textbox(4, 1, 160, 80, true);
|
||||
show_text_box();
|
||||
show_textbox();
|
||||
|
||||
npf_snprintf(text_buffer, sizeof(text_buffer),
|
||||
"Debug info:\n\nG: %d%s%d\nF: %d%d%d-%s\nS: %d-%s\n%s%s",
|
||||
@@ -95,7 +95,7 @@ void show_debug_info_screen(void *context, unsigned user_param)
|
||||
{
|
||||
if (key_hit(KEY_B))
|
||||
{
|
||||
hide_text_box();
|
||||
hide_textbox();
|
||||
reset_textbox();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user