aboutsummaryrefslogtreecommitdiff
path: root/files.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-06-02 14:14:10 -0700
committer1029chris <1029chris@gmail.com>2016-06-02 14:14:10 -0700
commit899cfeff2a6878e0e5eb48e4e0bd0f3768aa46ec (patch)
treed615da6012ddb26833f90f80619b65206078b6a5 /files.lua
parentc51a8b6d27bc6cd91f6fe6119aaaf5db9bcea699 (diff)
Added new files, files can open new windows
Diffstat (limited to 'files.lua')
-rw-r--r--files.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/files.lua b/files.lua
index 981007c..df37c2d 100644
--- a/files.lua
+++ b/files.lua
@@ -79,6 +79,12 @@ function updateFiles()
files = f.videos
end
return
+ elseif files == f.pictures then
+ openFileWindow(7)
+ elseif files == f.videos then
+ openFileWindow(8)
+ elseif files == f.music then
+ openFileWindow(9)
end
end
end
@@ -93,3 +99,11 @@ function updateFiles()
win[3].update = true
end
end
+function openFileWindow(id)
+ if win[id].ex == true then
+ win[id].ex = false
+ win[id].s = 0.2
+ win[id].oldlayer = win[id].layer
+ layer.sentToFront = id
+ end
+end