Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function drawButtons()
- for i, v in ipairs(buttons) do
- for ii, vv in ipairs(v) do
- if i == menuSelection then
- love.graphics.setColor(0, 255, 0)
- else
- love.graphics.setColor(255, 0, 0)
- end
- love.graphics.rectangle("fill", vv.x, vv.y, vv.sizeX, vv.sizeY)
- -- The debug console says the error is here ^
- love.graphics.setColor(255, 255, 255)
- love.graphics.print(vv.text, vv.x, vv.y)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement