aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--panel.lua45
-rw-r--r--startmenu.lua45
2 files changed, 45 insertions, 45 deletions
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
diff --git a/startmenu.lua b/startmenu.lua
deleted file mode 100644
index 83598d0..0000000
--- a/startmenu.lua
+++ /dev/null
@@ -1,45 +0,0 @@
-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