Advertisement
TidestManager1

Button Drawing code - LOVE

Sep 4th, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1.     function drawButtons()
  2.       for i, v in ipairs(buttons) do
  3.         for ii, vv in ipairs(v) do
  4.           if i == menuSelection then
  5.             love.graphics.setColor(0, 255, 0)
  6.           else
  7.             love.graphics.setColor(255, 0, 0)
  8.           end
  9.           love.graphics.rectangle("fill", vv.x, vv.y, vv.sizeX, vv.sizeY)
  10.     -- The debug console says the error is here ^
  11.           love.graphics.setColor(255, 255, 255)
  12.           love.graphics.print(vv.text, vv.x, vv.y)
  13.         end
  14.       end
  15.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement