From 15553804d644fd66c52d270c729c5250b06ee9e4 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 28 May 2022 18:28:55 +0200 Subject: Added closing animations (reverse of open) --- src/managers/AnimationManager.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/managers/AnimationManager.hpp') diff --git a/src/managers/AnimationManager.hpp b/src/managers/AnimationManager.hpp index ef554171..bfcd5d69 100644 --- a/src/managers/AnimationManager.hpp +++ b/src/managers/AnimationManager.hpp @@ -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 m_lAnimatedVariables; @@ -31,8 +31,8 @@ private: std::unordered_map 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 g_pAnimationManager; \ No newline at end of file -- cgit v1.2.3