Make "[Press ENTER to return to editor]" fade out after a bit

This makes the "[Press ENTER to return to editor]" fade out after a few frames, allowing screenshots of custom levels to be cleaner and to make sure nothing is obscured while the user is editing their level.
This commit also adds alpha support in BlitSurfaceColoured, where it takes into account the alpha of the pixel *and* the alpha of the color.
`graphics::getRGBA(r,g,b,a)` was added to help with this.
This commit is contained in:
AllyTally
2020-02-09 22:23:12 -04:00
parent 3273b4ab55
commit 6b1a7ebce6
6 changed files with 50 additions and 13 deletions

View File

@@ -234,6 +234,8 @@ class editorclass{
//Direct Mode variables
int dmtile;
int dmtileeditor;
int returneditoralpha = 0;
};
void addedentity(int xp, int yp, int tp, int p1=0, int p2=0, int p3=0, int p4=0, int p5=320, int p6=240);