Add flipme attribute to textboxclass

Instead of calculating the y-position of the text box when it's created,
we will store a flag that says whether or not the text box should be
flipped in Flip Mode (and thus stay right-side-up), and when it comes
time to draw the text box, we will check Flip Mode and calculate the
position then.
This commit is contained in:
Misa
2021-03-19 19:51:36 -07:00
committed by Ethan Lee
parent 2ac13815e4
commit 1a9f2d9342
3 changed files with 22 additions and 11 deletions

View File

@@ -43,6 +43,8 @@ public:
int max;
/* Whether to flip text box y-position in Flip Mode. */
bool flipme;
};
#endif /* TEXTBOX_H */