diff options
| -rw-r--r-- | panel.lua | 11 | ||||
| -rw-r--r-- | system.lua | 11 |
2 files changed, 11 insertions, 11 deletions
@@ -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 @@ -12,17 +12,6 @@ function drawSystem() and win[4].hov == false and win[5].hov == false and win[6].hov == false) then winHover = false end - 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 if start.o == true and sys.mouse.p.p == true and sys.mouse.p.x > 255 or sys.mouse.p.y < sys.h-380 then start.o = false end |
