mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 22:34:21 +03:00
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:
1 parent
187fd85e14
commit
76ea4488af
6 files changed
+67
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user