dont do button animation if dropdown is open

This commit is contained in:
jill 2021-09-19 14:24:00 +03:00
parent 775d97ef2a
commit fd30c294b0
1 changed files with 1 additions and 1 deletions

View File

@ -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