From fd30c294b09ef92216a508b2b296390b8aae3d60 Mon Sep 17 00:00:00 2001 From: jill Date: Sun, 19 Sep 2021 14:24:00 +0300 Subject: [PATCH] dont do button animation if dropdown is open --- button.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/button.lua b/button.lua index 1de64e4..b721dc0 100644 --- a/button.lua +++ b/button.lua @@ -41,7 +41,7 @@ function self.update(dt) local mx, my = love.mouse.getPosition() local targetsize = 1 - if mx > v.x and mx < v.x + v.size and my > v.y and my < v.y + v.size then + if mx > v.x and mx < v.x + v.size and my > v.y and my < v.y + v.size and dropdown.openDropdown == 0 then if love.mouse.isDown(1) then targetsize = 0.8 else