diff options
| -rw-r--r-- | desktop.lua | 3 | ||||
| -rw-r--r-- | panel.lua | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/desktop.lua b/desktop.lua index 4dbdc24..b841974 100644 --- a/desktop.lua +++ b/desktop.lua @@ -80,6 +80,9 @@ function checkIcon(id) win[id].s = 0.2 win[id].oldlayer = win[id].layer layer.sentToFront = id + else + win[id].oldlayer = win[id].layer + layer.sentToFront = id end end elseif sys.mouse.drag == true or sys.mouse.p.x > 120 or sys.mouse.p.y > 550 then @@ -131,9 +131,11 @@ function drawMenuItems(id) 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 + if sys.mouse.p.p == true and v1.yes == false then + if win[id].ex == true then + win[id].ex = false + win[id].s = 0.2 + end win[id].oldlayer = win[id].layer layer.sentToFront = id start.o = false |
