Posted 03 January 2013 - 05:57 AM
I am making my first OS! Or some kinda file manger thingy… anyway I am basing it all in tables that store information about the icons in a large object table problem is I have no idea how to use table.insert and I need that function :P/> anyway this is just a little of the code. Thanks for your time :)/>
--Table Int--
local Apps = {
[1] = {name = "NPaintPro", author = "Nitrogenfingers", handler = function() end},
[2] = {name = "FireWolf", author = "Gravityscore", handler = function() end},
[3] = {name = "Taco", author = "Da404lewZer", handler = function() end},
}
--Testing add Icon to Table--
local tArgs = {...}
table.insert(Apps,[#Apps+1] = {name = tArgs[1], author = tArgs[2], handler = function() tArgs[3] end})