sum-grid.love/0038-draw_next_button

12 lines
341 B
Plaintext

draw_next_button = function()
local w = App.width('next')
button(Buttons, 'next', {x=Safe_width-w-20, y=20, w=w+10, h=love.graphics.getFont():getHeight()+10, bg={r=0.6, g=0.8, b=0.6},
icon = function(p)
App.color{r=0, g=0, b=0}
love.graphics.print('next', p.x+5, p.y+5)
end,
onpress1 = function()
animate(new)
end,
})
end