Interpolate text box alpha

This makes text boxes fade in and out pretty smoothly.

This requires that the textboxclass::setcol() be in Graphics::drawgui(),
so now it's moved there.

Text box fading is only really noticeable if you're playing in slowmode.
This commit is contained in:
Misa
2020-04-28 21:49:15 -07:00
committed by Ethan Lee
parent 4ba9954eb8
commit c56df48d75
3 changed files with 7 additions and 2 deletions

View File

@@ -40,6 +40,7 @@ public:
int timer;
float tl;
float prev_tl;
int tm;
int max;