Advertisement
DanilYoutuber

NewStartTheSys

Oct 4th, 2015
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. term.setBackgroundColor(1)
  2. term.clear()
  3. function osbar()
  4. term.setCursorPos(1, 1)
  5. term.setBackgroundColor(512)
  6. term.clearLine()
  7. term.setCursorPos(3, 1)
  8. print("Apos")
  9. end
  10. function desktop()
  11. background = paintutils.loadImage("Apos/Backgrounds/Homescreen")
  12. paintutils.drawImage(background, 1, 1)
  13. osbar()
  14. end
  15. desktop()
  16. while true do
  17. local event, button, xPos, yPos = os.pullEvent("mouse_click")
  18. if xPos>=4 and xPos<=7 and yPos>=2 and yPos<=4 then
  19. shell.run("cd","/")
  20. shell.run("cd","Apos/Downloads")
  21. shell.run("CraftingOS")
  22. end
  23. local event, button, xPos, yPos = os.pullEvent("mouse_click")
  24. if xPos>=24 and xPos<=30 and yPos>=17 and yPos<=19 then
  25. shell.run("cd","/")
  26. shell.run("cd","Apos/Programs")
  27. shell.run("Settings")
  28. end
  29. local event, button, xPos, yPos = os.pullEvent("mouse_click")
  30. if xPos>=16 and xPos<=19 and yPos>=17 and yPos<=19 then
  31. shell.run("cd","/")
  32. shell.run("cd","Apos/Programs")
  33. shell.run("Safari")
  34. end
  35. local event, button, xPos, yPos = os.pullEvent("mouse_click")
  36. if xPos>=9 and xPos<=12 and yPos>=17 and yPos<=19 then
  37. shell.run("chat","host","osx1")
  38. end
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement