Commit bcd533cd authored by Waitdev's avatar Waitdev

Updated home screen

parent c67ab318
......@@ -3,17 +3,34 @@ function program.main.home()
program.draw.menubar("Dashboard")
local scroll = 0
local iconnames = {
Internal.Icons["accManagement"],
Internal.Icons["appStore"],
Internal.Icons["chatRooms"],
Internal.Icons["cloudStorage"],
Internal.Icons["credits"],
Internal.Icons["help"],
Internal.Icons["login"],
Internal.Icons["logout"],
Internal.Icons["mailbox"],
Internal.Icons["newsFeed"],
Internal.Icons["profiles"],
Internal.Icons["settings"],
Internal.Icons["snippetStore"],
Internal.Icons["socialNetwork"],
Internal.Icons["updateLogs"],
}
local function render()
local function redraw()
for wid = 0,3 do
for hei = 0,5 do
-- base.gui.image.render(2+(16*wid),(3+(hei*5))-scroll,icons[(wid+1)+(hei*3)])
print(type(Internal.Icons[(wid+1)+(hei*3)]))
base.gui.image.render(2+(16*wid),(3+(hei*5))-scroll,iconnames[(wid+1)+(hei*3)])
-- print(type(Internal.Icons[(wid+1)+(hei*3)]))
end
end
end
render()
redraw()
while true do
local args = { os.pullEvent() }
if args[1] == "timer" then
......
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