From 598a49db946322ac729c722924d1ecbdd6c4e5ce Mon Sep 17 00:00:00 2001 From: 1029chris <1029chris@gmail.com> Date: Tue, 12 Apr 2016 13:00:45 -0700 Subject: Moved start menu activation to panel.lua --- panel.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'panel.lua') diff --git a/panel.lua b/panel.lua index 05cf61f..79ba3cf 100644 --- a/panel.lua +++ b/panel.lua @@ -47,4 +47,15 @@ function drawStart() drawPanelButton(4) drawPanelButton(5) drawPanelButton(6) + if(sys.mouse.p.p == true and start.p == false and sys.mouse.p.x >= panel.s.x + and sys.mouse.p.x <= panel.s.x+panel.s.width + and sys.mouse.p.y >= panel.s.y and sys.mouse.p.y <= panel.s.y+panel.s.height) then + start.p = true + if start.o == true then + start.o = false + elseif start.o == false then + start.o = true + sendMessage(1, msgs[msg.c]) + end + end end -- cgit