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
2023-08-05 19:34:15 -03:00
committed by Misa Elizabeth Kai
parent 187fd85e14
commit 76ea4488af
6 changed files with 67 additions and 1 deletions

View File

@@ -5,11 +5,21 @@
#include <string>
#include <vector>
struct TextboxSprite
{
int x;
int y;
int col;
int tile;
};
class textboxclass
{
public:
textboxclass(void);
void addsprite(int x, int y, int tile, int col);
void centerx(void);
void centery(void);
@@ -53,6 +63,8 @@ public:
uint32_t print_flags;
bool fill_buttons;
std::vector<TextboxSprite> sprites;
};
#endif /* TEXTBOX_H */