Fix special text box images sometimes flashing

These special images are the crewmates, Level Complete, and Game
Complete images. They flashed depending on if you were lucky and
happened to got your delta-timesteps just right when text boxes were
fading in and out.

Honestly, I'm surprised text box fading in/out hasn't ran into this
issue before. It's insane luck that this issue hasn't occurred before or
anything.

Well, anyways, to fix this, there's now an attribute `allowspecial` on
text boxes, and an optional parameter of the same name for
Graphics::createtextbox(). This attribute is the only thing that will
let these special text box images render. And any createtextbox()es that
utilize these special images have been updated accordingly.
This commit is contained in:
Misa
2020-04-29 23:46:50 -07:00
committed by Ethan Lee
parent 27fe7ff8f9
commit b3f7c174ea
5 changed files with 40 additions and 36 deletions

View File

@@ -45,6 +45,8 @@ public:
int max;
bool allowspecial;
};
#endif /* TEXTBOX_H */