diff options
| author | 1029chris <1029chris@gmail.com> | 2016-02-25 14:15:08 -0800 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-02-25 14:15:08 -0800 |
| commit | 8b695dc3b7d652e43bc15c07fffe4fb46d0f517d (patch) | |
| tree | d8a539f72a00f5f22a918c5db4c184221b3e36b8 /window.lua | |
| parent | 829780a9ac7b486d8f70a8bc507bd433dab7ecdf (diff) | |
Hover isn't true if the mouse is over the panel
Diffstat (limited to 'window.lua')
| -rw-r--r-- | window.lua | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -48,6 +48,9 @@ function drawWindow(id) if win[id].hov == false then win[id].hover = false end + if sys.mouse.y >= sys.h-panel.thick then + win[id].hover = false + end if(sys.mouse.p.x >= win[id].x and sys.mouse.p.x <= win[id].x+win[id].w and sys.mouse.p.y >= win[id].y and sys.mouse.p.y <= win[id].y+win[id].h) then else |
