aboutsummaryrefslogtreecommitdiff
path: root/window.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-05-19 14:28:18 -0700
committer1029chris <1029chris@gmail.com>2016-05-19 14:28:18 -0700
commit3b78d300cafb382387310fc86fe3e5e938e6a038 (patch)
tree52b999e1c7a19a19cc4d31cb680831cde7b25d14 /window.lua
parent30e3c4eb01e1f764113bc3110a48569caea14bb7 (diff)
Folders can now be opened in the files browser
other tweaks
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