I'm brand new to LÖVE and would like to first say hello. I'm really enjoying it so far.
I had a question regarding love.window.isVisible(). I have searched the forums and documentation and can't seem to solve my issue. For some reason, minimizing my window is not causing this function to switch to false. Has anyone else had this issue and have any idea on how to fix it? I'll post two ways I'm trying to get it to show up, but can post all of my code if needed. Thanks in advance!
Tim
Code: Select all
function love.update(dt)
if love.window.isVisible() == false then
print("Window minimized!")
end
checkPrices()
checkThread()
updateTimer = updateTimer - dt
if updateTimer <= 0 then
updateTimer = updateTime
newThread()
end
end
Code: Select all
function love.visible(v)
print(v)
end