Transition fade added for foreground items.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
@@ -33,8 +33,14 @@ private:
|
||||
std::vector<TileRenderData>tiles;
|
||||
int minX=0,minY=0,maxX=0,maxY=0;
|
||||
public:
|
||||
static float FADE_TIME;
|
||||
//0-255. 255 indicates fully invisible.
|
||||
static uint8_t FADE_AMT;
|
||||
geom2d::rect<int>GetRange();
|
||||
//The fade range is the bounds in which this tile group will be considered "in range" of a player, one tile in each direction further than its actual range.
|
||||
geom2d::rect<int>GetFadeRange();
|
||||
std::vector<TileRenderData>&GetTiles();
|
||||
void InsertTile(TileRenderData tile);
|
||||
bool playerBehind=false;
|
||||
float fadeFactor=0.f;
|
||||
};
|
||||
Reference in New Issue
Block a user