From 899cfeff2a6878e0e5eb48e4e0bd0f3768aa46ec Mon Sep 17 00:00:00 2001 From: 1029chris <1029chris@gmail.com> Date: Thu, 2 Jun 2016 14:14:10 -0700 Subject: Added new files, files can open new windows --- files.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'files.lua') 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 -- cgit