Smoothly interpolate "[Press ENTER to return to editor]" fadeout

Now it'll be real smooth at 60 FPS. Or above. Or whichever one you want
above 30.
This commit is contained in:
Misa
2020-05-02 10:49:41 -07:00
committed by Ethan Lee
parent 5daad95f1d
commit 9256b4da56
4 changed files with 6 additions and 1 deletions

View File

@@ -1389,7 +1389,8 @@ void gamerender()
#if !defined(NO_CUSTOM_LEVELS)
if(map.custommode && !map.custommodeforreal && !game.advancetext){
//Return to level editor
graphics.bprintalpha(5, 5, "[Press ENTER to return to editor]", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), ed.returneditoralpha, false);
int alpha = graphics.lerp(ed.oldreturneditoralpha, ed.returneditoralpha);
graphics.bprintalpha(5, 5, "[Press ENTER to return to editor]", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), alpha, false);
}
#endif