Updating text engine backend

This commit is contained in:
GearsProgress
2026-03-18 22:55:38 -04:00
parent 1f29379810
commit a7ebcd06fe
13 changed files with 117 additions and 180 deletions

View File

@@ -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()