diff options
| author | Chris B <1029chris@gmail.com> | 2016-01-27 13:10:44 -0800 |
|---|---|---|
| committer | Chris B <1029chris@gmail.com> | 2016-01-27 13:10:44 -0800 |
| commit | fa53e98ad792c9c1128718f282d9b508b30e56f9 (patch) | |
| tree | ce6f77cfbdb63cccda5b427de105fb6e630f08db /panel.lua | |
| parent | 9e09ef17829abb61a18392fee06db6037664b3ee (diff) | |
Added panel buttons for different windows
Diffstat (limited to 'panel.lua')
| -rw-r--r-- | panel.lua | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -8,4 +8,24 @@ function drawStart() love.graphics.rectangle("line", panel.s.x, panel.s.y, panel.s.width, panel.s.height) love.graphics.setColor(70,70,70) love.graphics.print("START", panel.s.x+4, panel.s.y+7) + love.graphics.setColor(150, 150, 150) + if panel.b[1] ~= 0 then + love.graphics.rectangle("line", panel.s.x+72, panel.s.y, panel.s.width*2, panel.s.height) + love.graphics.setColor(70,70,70) + if panel.b[1] == 1 then + love.graphics.print("Chat", panel.s.x+4+72, panel.s.y+7) + elseif panel.b[1] == 2 then + love.graphics.print("Internet", panel.s.x+4+72, panel.s.y+7) + end + end + love.graphics.setColor(150, 150, 150) + if panel.b[2] ~= 0 then + love.graphics.rectangle("line", panel.s.x+72+70+67, panel.s.y, panel.s.width*2, panel.s.height) + love.graphics.setColor(70,70,70) + if panel.b[2] == 1 then + love.graphics.print("Chat", panel.s.x+4+72+70+67, panel.s.y+7) + elseif panel.b[2] == 2 then + love.graphics.print("Internet", panel.s.x+4+72+70+67, panel.s.y+7) + end + end end |
