mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-08-22 08:45:16 -05:00
Updating text engine backend
This commit is contained in:
@@ -20,7 +20,8 @@ void background_frame(int global_frame_count)
|
||||
}
|
||||
|
||||
void create_textbox(int startTileX, int startTileY, int text_space_width, int text_space_height, bool eraseMainBox)
|
||||
{ // Empty function for compiling
|
||||
{
|
||||
// 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
|
||||
@@ -38,16 +39,17 @@ void create_textbox_new(int text_section, int text_key, bool eraseMainBox)
|
||||
add_menu_box(startTileX, startTileY, text_space_width + 16, text_space_height + 16);
|
||||
tte_set_pos((startTileX + 1) * 8, (startTileY + 1) * 8);
|
||||
tte_set_margins((startTileX + 1) * 8, (startTileY + 1) * 8,
|
||||
(startTileX + text_space_width) * 8, (startTileY + text_space_height) * 8);
|
||||
((startTileX + 1) * 8) + text_space_width, ((startTileY + 1) * 8) + text_space_height);
|
||||
tte_erase_rect(0, 0, H_MAX, V_MAX);
|
||||
show_textbox();
|
||||
}
|
||||
|
||||
void reset_textbox()
|
||||
{
|
||||
tte_erase_rect(0, 0, H_MAX, V_MAX);
|
||||
//tte_erase_rect(0, 0, H_MAX, V_MAX);
|
||||
reload_textbox_background();
|
||||
tte_set_pos(LEFT, TOP);
|
||||
tte_set_margins(LEFT, TOP, RIGHT, BOTTOM);
|
||||
//tte_set_pos(, TOP);
|
||||
//tte_set_margins(LEFT, TOP, RIGHT, BOTTOM);
|
||||
}
|
||||
|
||||
void show_textbox()
|
||||
|
||||
Reference in New Issue
Block a user