Initial implementation of textbox sprites

This commit adds a system for displaying sprites in textboxes, meant to
replace the hardcoded system in the main game. This does not support
levelcomplete.png and gamecomplete.png yet, which will most likely just
be special cases.
This commit is contained in:
AllyTally authored and Misa Elizabeth Kai committed 2023-11-19 15:07:25 -08:00
1 parent 187fd85e14
commit 76ea4488af
6 files changed
+67 -1

No files matched your search

+12
View File
@@ -28,6 +28,18 @@ textboxclass::textboxclass(void)
print_flags = PR_FONT_LEVEL;
fill_buttons = false;
sprites.clear();
}
void textboxclass::addsprite(int x, int y, int tile, int col)
{
TextboxSprite sprite;
sprite.x = x;
sprite.y = y;
sprite.tile = tile;
sprite.col = col;
sprites.push_back(sprite);
}
void textboxclass::centerx(void)