From 5d095bb9e18a3a00461c0667e3a87b887d69dcae Mon Sep 17 00:00:00 2001 From: vaxerski Date: Thu, 29 Dec 2022 12:30:43 +0100 Subject: use curves for special dim anim --- src/helpers/AnimatedVariable.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/helpers/AnimatedVariable.hpp') diff --git a/src/helpers/AnimatedVariable.hpp b/src/helpers/AnimatedVariable.hpp index 6aa33255..b01ca48c 100644 --- a/src/helpers/AnimatedVariable.hpp +++ b/src/helpers/AnimatedVariable.hpp @@ -3,16 +3,14 @@ #include "../defines.hpp" #include -enum ANIMATEDVARTYPE -{ +enum ANIMATEDVARTYPE { AVARTYPE_INVALID = -1, AVARTYPE_FLOAT, AVARTYPE_VECTOR, AVARTYPE_COLOR }; -enum AVARDAMAGEPOLICY -{ +enum AVARDAMAGEPOLICY { AVARDAMAGE_INVALID = -1, AVARDAMAGE_ENTIRE = 0, AVARDAMAGE_BORDER, @@ -190,6 +188,9 @@ class CAnimatedVariable { /* returns the spent (completion) % */ float getPercent(); + /* returns the current curve value */ + float getCurveValue(); + /* sets a function to be ran when the animation finishes. if an animation is not running, runs instantly. if "remove" is set to true, will remove the callback when ran. */ -- cgit v1.2.3