Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Items = {}
- local w, h = term.getSize()
- function DrawDesktop()
- term.setBackgroundColor(colors.black)
- paintutils.drawFilledBox(1,1,w,h-1,colors.black)
- local x = 2
- local y = 2
- local MW = w / 7
- for i = 1, #Items do
- if Items[i][2] == "n" then
- else
- local Image = paintutils.loadImage(Items[i][2])
- paintutils.drawImage(Image,x,y)
- end
- term.setCursorPos(x, y + 4)
- term.write(Items[i][1])
- if x + 7 >= MW then
- x = 2
- y = y + 6
- else
- x = x + 7
- end
- end
- end
- DrawDesktop()
Add Comment
Please, Sign In to add comment