From dd907df5b8f45aeb9c4de49d35593bf1ac7d4186 Mon Sep 17 00:00:00 2001 From: 1029chris <1029chris@gmail.com> Date: Thu, 25 Feb 2016 14:28:48 -0800 Subject: Added global hover variable --- system.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'system.lua') diff --git a/system.lua b/system.lua index 888af73..6036792 100644 --- a/system.lua +++ b/system.lua @@ -7,6 +7,10 @@ function drawSystem() orderWindow(4) orderWindow(5) orderWindow(6) + if (win[1].hov == false and win[2].hov == false and win[3].hov == false + 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 -- cgit