Added closed state flag to bntextbox

This commit is contained in:
2021-07-18 14:53:36 -07:00
parent 0d79851553
commit eb9d512233
3 changed files with 42 additions and 8 deletions

View File

@ -13,6 +13,8 @@
/** Amount of characters scrolled, per second */
#define VN_TEXTBOX_SCROLL_SPEED 60
#define VN_BOX_STATE_CLOSED 0x01
typedef struct {
/** Stores the maximum width that this textbox can take up */
float widthMax;
@ -20,6 +22,9 @@ typedef struct {
/** Font that the text box uses */
font_t *font;
/** Box State Flags */
uint8_t state;
/** How many rows of text at most can be displayed in a single text box */
int32_t linesMax;
int32_t lineCurrent;