aboutsummaryrefslogtreecommitdiff
path: root/window.lua
diff options
context:
space:
mode:
Diffstat (limited to 'window.lua')
-rw-r--r--window.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/window.lua b/window.lua
index 508db5d..0ae2a0c 100644
--- a/window.lua
+++ b/window.lua
@@ -174,6 +174,8 @@ function drawWindow(id)
updateInternet()
elseif id == 6 then
updateSettings()
+ elseif id == 3 then
+ updateFiles()
end
if id == layer[1] and win[id].bar == "grey" then
win[id].bar = "active"
@@ -253,3 +255,10 @@ function windowMouseMove(id,limitx,limitw,limity,limith)
win[id].y = limith
end
end
+function mouseClick(x,y,w,h)
+ if sys.mouse.p.x >= x and sys.mouse.p.x <= x+w and
+ sys.mouse.p.y >= y and sys.mouse.p.y <= y+h and
+ sys.mouse.p.p == true and sys.mouse.drag == false then
+ return true
+ end
+end