mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-03-21 17:34:42 -05:00
Removing commented out lines of code
This commit is contained in:
parent
a7ebcd06fe
commit
0f871923b9
|
|
@ -13,9 +13,7 @@
|
|||
#define BG_TEXT REG_BG3CNT
|
||||
|
||||
void background_frame(int global_frame_count);
|
||||
void create_textbox(int startTileX, int startTileY, int text_space_width, int text_space_height, bool eraseMainBox);
|
||||
void create_textbox_new(int text_section, int text_key, bool eraseMainBox);
|
||||
void reset_textbox();
|
||||
void show_textbox();
|
||||
void hide_textbox();
|
||||
#endif
|
||||
|
|
@ -19,11 +19,6 @@ void background_frame(int global_frame_count)
|
|||
}
|
||||
}
|
||||
|
||||
void create_textbox(int startTileX, int startTileY, int text_space_width, int text_space_height, bool eraseMainBox)
|
||||
{
|
||||
// Blank for compiling for now
|
||||
}
|
||||
|
||||
// This could honestly be an object... might want to do that in the future, depending on how complex using this gets
|
||||
void create_textbox_new(int text_section, int text_key, bool eraseMainBox)
|
||||
{
|
||||
|
|
@ -44,14 +39,6 @@ void create_textbox_new(int text_section, int text_key, bool eraseMainBox)
|
|||
show_textbox();
|
||||
}
|
||||
|
||||
void reset_textbox()
|
||||
{
|
||||
//tte_erase_rect(0, 0, H_MAX, V_MAX);
|
||||
reload_textbox_background();
|
||||
//tte_set_pos(, TOP);
|
||||
//tte_set_margins(LEFT, TOP, RIGHT, BOTTOM);
|
||||
}
|
||||
|
||||
void show_textbox()
|
||||
{
|
||||
BG_TEXTBOX = (BG_TEXTBOX & ~BG_PRIO_MASK) | BG_PRIO(1);
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ void show_debug_info_screen(void *context, unsigned user_param)
|
|||
if (key_hit(KEY_B))
|
||||
{
|
||||
hide_textbox();
|
||||
reset_textbox();
|
||||
reload_textbox_background();
|
||||
return;
|
||||
}
|
||||
global_next_frame();
|
||||
|
|
|
|||
|
|
@ -816,7 +816,7 @@ bool run_conditional(int index)
|
|||
load_flex_background(FLEXBG_FENNEL, 3);
|
||||
link_animation_state(STATE_CONNECTION);
|
||||
party_data.start_link();
|
||||
reset_textbox();
|
||||
reload_textbox_background();
|
||||
load_flex_background(FLEXBG_FENNEL, 2);
|
||||
link_animation_state(0);
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -86,9 +86,6 @@ void init_text_engine()
|
|||
);
|
||||
tte_init_con();
|
||||
|
||||
// tte_set_margins(LEFT, TOP, RIGHT, BOTTOM);
|
||||
// tte_set_pos(LEFT, TOP);
|
||||
|
||||
pal_bg_bank[15][INK_WHITE] = CLR_WHITE; // White
|
||||
pal_bg_bank[15][INK_DARK_GREY] = 0b0000110001100010; // Dark Grey
|
||||
// 14 will be changed to game color
|
||||
|
|
@ -152,7 +149,6 @@ int text_loop(int script)
|
|||
if (text_exit)
|
||||
{
|
||||
hide_textbox();
|
||||
// tte_erase_rect(LEFT, TOP, RIGHT, BOTTOM);
|
||||
tte_erase_screen();
|
||||
text_exit = false;
|
||||
return 0;
|
||||
|
|
@ -232,7 +228,6 @@ int text_loop(int script)
|
|||
text_section, text_key, true);
|
||||
}
|
||||
|
||||
// wait_for_user_to_continue();
|
||||
update_text = true;
|
||||
hide_textbox();
|
||||
tte_erase_rect(0, 0, H_MAX, V_MAX);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user