From 9e83aca958c2f0d7cc9123c66dd8d5f9d22d8633 Mon Sep 17 00:00:00 2001 From: 1029chris <1029chris@gmail.com> Date: Sun, 24 Apr 2016 13:57:53 -0700 Subject: Moved start menu code to panel.lua removed startmenu.lua --- panel.lua | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'panel.lua') diff --git a/panel.lua b/panel.lua index c7711a2..cc0b427 100644 --- a/panel.lua +++ b/panel.lua @@ -94,3 +94,48 @@ function notifyNow(title, body) notify.title = title notify.body = body end +function drawMenuItems(id) + if(sys.mouse.x >= 35 and sys.mouse.x <= 242 + and sys.mouse.y >= start.y+5+(id*55-55) and sys.mouse.y <= start.y+(id*55)) then + love.graphics.setColor(0,0,120) + love.graphics.rectangle("fill", 35, 5+(id*55-55), 208, 50) + love.graphics.setColor(colors.win.light) + love.graphics.print(win[id].title, 85, 5+22+(id*55-55)) + if sys.mouse.p.p == true and win[id].ex == true and v1.yes == false then + win[id].ex = false + win[id].s = 0.2 + win[id].oldlayer = win[id].layer + layer.sentToFront = id + start.o = false + end + else + love.graphics.rectangle("fill", 35, 5+(id*55-55), 208, 50) + love.graphics.setColor(colors.font.dark) + love.graphics.print(win[id].title, 85, 5+22+(id*55-55)) + end + love.graphics.setColor(255,255,255) + love.graphics.draw(win[id].icon32, 44, 13+(id*55-55)) + love.graphics.setColor(colors.win.normal) +end +function drawMenu() + start.y = love.graphics.getHeight() + start.y = start.y-30-350+2 + love.graphics.setCanvas(start.cvs) + love.graphics.setColor(192, 192, 192) + love.graphics.rectangle("fill", 0, 0, 250, 350) + love.graphics.setColor(220, 220, 220) + love.graphics.setLineWidth(3.5) + love.graphics.line(0, 0+350, 0, 0, 0+250, 0) --BoxLight + love.graphics.setColor(150,150,150) + love.graphics.line(0+250, 0+350, 0+250, 0) --BoxShadow + love.graphics.setColor(0,0,120) + love.graphics.rectangle("fill", 0, 0, 30, 350) + love.graphics.setColor(192, 192, 192) + love.graphics.print("WINBLOWS 98 OR SOME SHIT", 11, 340, -1.5708) + for i=1,6 do + drawMenuItems(i) + end + love.graphics.setCanvas() + love.graphics.setColor(255,255,255) + love.graphics.draw(start.cvs, start.x, start.y) +end -- cgit