Here's the code for the panel on the bottom.
Code: Select all
function drawStart()
love.graphics.setColor(192, 192, 192)
love.graphics.rectangle("fill", panel.x, panel.y, panel.width, panel.height) --Draw box
love.graphics.setColor(220, 220, 220)
love.graphics.setLineWidth(2)
love.graphics.line(panel.x, panel.y, panel.width, panel.y) -- Draw shine
love.graphics.setColor(150, 150, 150)
love.graphics.rectangle("line", panel.s.x, panel.s.y, panel.s.width, panel.s.height) -- Draw start outline
love.graphics.setColor(70,70,70)
love.graphics.print("START", panel.s.x+4, panel.s.y+7) -- print START
end
Code: Select all
function drawMenu()
love.graphics.setCanvas(start.cvs)
love.graphics.setColor(192, 192, 192)
love.graphics.rectangle("fill", 0, 0, 250, 350) -- Draw main box
love.graphics.setColor(220, 220, 220)
love.graphics.setLineWidth(4)
love.graphics.line(0, 0+350, 0, 0, 0+250, 0) --BoxLight
love.graphics.setColor(150,150,150)
love.graphics.line(0, 0+350, 0+250, 0+350, 0+250, 0) --BoxShadow
love.graphics.setColor(0,0,120)
love.graphics.rectangle("fill", 0, 0, 30, 350) -- Draw blue bar
love.graphics.setColor(192, 192, 192)
love.graphics.setCanvas()
love.graphics.draw(start.cvs, 0, 600-30-350-1) -- Draw canvas
end