From 193b9cffbc2eca5a4aa14f45694c5ad0353eff50 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Tue, 4 Jan 2022 17:10:39 +0100 Subject: [PATCH] feat: add a way to know if there is tweens --- sonic-radiance.love/birb/classes/time/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sonic-radiance.love/birb/classes/time/init.lua b/sonic-radiance.love/birb/classes/time/init.lua index ebd4b80..c980378 100644 --- a/sonic-radiance.love/birb/classes/time/init.lua +++ b/sonic-radiance.love/birb/classes/time/init.lua @@ -63,6 +63,10 @@ function TweenManager:removeNamedTween(name) self.tweens[name] = nil end +function TweenManager:haveTween() + return #self.tweens > 0 +end + -- TIMER FUNCTIONS -- Help to get info from timers