Linking textbox creation to string display

This commit is contained in:
GearsProgress
2026-03-14 10:16:16 -04:00
parent 08140089ab
commit 1f29379810
22 changed files with 247 additions and 173 deletions

View File

@@ -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;
}