Commit 1ea97579 authored by Waitdev's avatar Waitdev

Started dev on apps list

parent bcd533cd
--[[
Name: apps.all
Desc: All apps screen function
--]]
\ No newline at end of file
--]]
function program.apps.all()
base.screen.color("white")
program.draw.menubar("All Apps")
local scroll = 0
local function redraw(scroll)
end
while true do
local args = { os.pullEvent() }
if args[1] == "timer" then
elseif args[1] == "mouse_click" then
elseif args[1] == "mouse_scroll" then
if args[2] == -1 then -- Scroll up
if not scroll == 0 then
scroll = scroll-1
redraw(scroll)
end
elseif args[2] == 1 then -- Scroll down
if not scroll == 3+items then
scroll = scroll+1
redraw(scroll)
end
end
end
end
end
......@@ -25,7 +25,7 @@ function program.main.home()
for wid = 0,3 do
for hei = 0,5 do
base.gui.image.render(2+(16*wid),(3+(hei*5))-scroll,iconnames[(wid+1)+(hei*3)])
-- print(type(Internal.Icons[(wid+1)+(hei*3)]))
--print(type(iconnames[(wid+1)+(hei*3)]))
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment