We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
renderLayerInPanel
If an imageTable layer is rendered in a custom function with renderLayerInPanel Panels will crash unless you specify a startDelay for the layer.
startDelay
cntrlPct is nil in this case which causes the crash trying to do the comparison at line 158 in Layers.lua.
cntrlPct
elseif layer.animationLoop then if layer.visible then if layer.trigger then if pdButtonJustPressed(layer.trigger) then layer.animationLoop.paused = false end elseif layer.startDelay then if layer.startDelayTriggered == nil then playdate.timer.performAfterDelay(layer.startDelay, function() if layer.animationLoop then layer.animationLoop.paused = false end end) layer.startDelayTriggered = true end elseif cntrlPct >= layer.scrollTrigger then -- <-- CRASH HERE layer.animationLoop.paused = false end layer.animationLoop:draw(xPos, yPos) end end
An easy workaround is to set a startDelay on the imageTable layer. It can be set to 0 if no delay is desired.
The text was updated successfully, but these errors were encountered:
cadin
No branches or pull requests
If an imageTable layer is rendered in a custom function with
renderLayerInPanel
Panels will crash unless you specify astartDelay
for the layer.cntrlPct
is nil in this case which causes the crash trying to do the comparison at line 158 in Layers.lua.An easy workaround is to set a
startDelay
on the imageTable layer. It can be set to 0 if no delay is desired.The text was updated successfully, but these errors were encountered: