Added closing animations (reverse of open)

This commit is contained in:
vaxerski
2022-05-28 18:28:55 +02:00
parent 7f1f14fe85
commit 15553804d6
5 changed files with 58 additions and 26 deletions

View File

@@ -16,7 +16,7 @@ public:
void addBezierWithName(std::string, const Vector2D&, const Vector2D&);
void removeAllBeziers();
void onWindowPostCreate(CWindow*);
void onWindowPostCreateClose(CWindow*, bool close = false);
std::list<CAnimatedVariable*> m_lAnimatedVariables;
@@ -31,8 +31,8 @@ private:
std::unordered_map<std::string, CBezierCurve> m_mBezierCurves;
// Anim stuff
void animationPopin(CWindow*);
void animationSlide(CWindow*, std::string force = "");
void animationPopin(CWindow*, bool close = false);
void animationSlide(CWindow*, std::string force = "", bool close = false);
};
inline std::unique_ptr<CAnimationManager> g_pAnimationManager;