– Snip
– IconPlaces
local currentRow = 3
local row1 = 3
local row2 = 9
local row3 = 15
local icon1, icon2, icon3, icon4, icon5, icon6, icon7, icon8 = false
local firstIconX = 4
– Loading
function drawIcons()
list = fs.list("programs")
for i,file in pairs(list) do
sleep(0.5)
drawIcon("programs/"..file.."/icon")
end
end
– Drawing
function drawIcon(path)
if icon1 == false then
paintutils.drawImage(paintutils.loadImage(path), firstIconX, currentRow) – 4
icon1 = true
elseif icon2 == false then
paintutils.drawImage(paintutils.loadImage(path), firstIconX + 6, currentRow) – 10
icon2 = true
elseif icon3 == false then
paintutils.drawImage(paintutils.loadImage(path), firstIconX + 12, currentRow) – 16
icon3 = true
elseif icon4 == false then
paintutils.drawImage(paintutils.loadImage(path), firstIconX + 18, currentRow) – 22
icon4 = true
elseif icon5 == false then
paintutils.drawImage(paintutils.loadImage(path), firstIconX + 24, currentRow) – 28
icon5 = true
elseif icon6 == false then
paintutils.drawImage(paintutils.loadImage(path), firstIconX + 30, currentRow) – 34
icon6 = true
elseif icon7 == false then
paintutils.drawImage(paintutils.loadImage(path), firstIconX + 36, currentRow) – 40
icon7 = true
elseif icon8 == false then
paintutils.drawImage(paintutils.loadImage(path), firstIconX + 42, currentRow) – 46
currentRow = currentRow + 6
icon1, icon2, icon3, icon4, icon5, icon6, icon7, icon8 = false
end
end
– Shell / Terminal
– Settings
– Config
– Main
drawIcons()
It isnt working very well.