Implemented semi-transparent spell effects

This commit is contained in:
Ivan Savenko
2024-11-17 19:48:16 +00:00
parent fd1a31253b
commit dfe6e04464
13 changed files with 41 additions and 28 deletions
+3 -2
View File
@@ -39,7 +39,8 @@ struct BattleEffect
AnimType type;
Point pos; //position on the screen
float currentFrame;
float currentFrame = 0.0;
float transparencyFactor = 1.0;
std::shared_ptr<CAnimation> animation;
int effectID; //uniqueID equal ot ID of appropriate CSpellEffectAnim
BattleHex tile; //Indicates if effect which hex the effect is drawn on
@@ -65,7 +66,7 @@ public:
//displays custom effect on the battlefield
void displayEffect(EBattleEffect effect, const BattleHex & destTile);
void displayEffect(EBattleEffect effect, const AudioPath & soundFile, const BattleHex & destTile);
void displayEffect(EBattleEffect effect, const AudioPath & soundFile, const BattleHex & destTile, float transparencyFactor = 1.f);
void battleTriggerEffect(const BattleTriggerEffect & bte);