diff options
| author | 1029chris <1029chris@gmail.com> | 2016-06-02 14:14:10 -0700 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-06-02 14:14:10 -0700 |
| commit | 899cfeff2a6878e0e5eb48e4e0bd0f3768aa46ec (patch) | |
| tree | d615da6012ddb26833f90f80619b65206078b6a5 /files.lua | |
| parent | c51a8b6d27bc6cd91f6fe6119aaaf5db9bcea699 (diff) | |
Added new files, files can open new windows
Diffstat (limited to 'files.lua')
| -rw-r--r-- | files.lua | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |
