Advertisement
Guest User

allPrograms

a guest
May 29th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.26 KB | None | 0 0
  1. running = true
  2. dt = paintutils.loadImage("Windows/Images/desktop")
  3. paintutils.drawImage(dt, 1,1)
  4. shell.run("Windows/Functions/taskbar")
  5. term.setBackgroundColor(colors.lightBlue)
  6. term.setTextColor(colors.black)
  7. term.setCursorPos(1,17)
  8. print("  Back   ")
  9. term.setCursorPos(1,16)
  10. print("         ")
  11. term.setCursorPos(1,15)
  12. print("# Guess  ")
  13. term.setCursorPos(1,14)
  14. print("Recovery ")
  15. term.setCursorPos(1,13)
  16. print("Paint    ")
  17. term.setCursorPos(1,12)
  18. print("Ink      ")
  19. term.setCursorPos(1,1)
  20.  
  21. while running do
  22. event, button, x, y = os.pullEvent("mouse_click")
  23. if x > 2 and x < 7 and y == 17 and button == 1 then
  24. running = false
  25. shell.run("Windows/startMenu")
  26. elseif
  27. x < 3 and y > 17 and button == 1 then
  28. running = false
  29. shell.run("Windows/Main")
  30. elseif
  31. x < 8 and y == 15 and button == 1 then
  32. running = false
  33. shell.run("Windows/allPrograms/numberGuess")
  34. elseif
  35. x < 9 and y == 14 and button == 1 then
  36. running = false
  37. shell.run("Windows/allprograms/Recovery")
  38. elseif
  39. x < 6 and y == 13 and button == 1 then
  40. running = false
  41. shell.run("Windows/allprograms/Paint")
  42. elseif x < 6 and y == 12 and button == 1 then
  43. running = false
  44. shell.run("Windows/allprograms/ink")
  45. shell.run("Windows/Main")
  46. else
  47. running = false
  48. shell.run("Windows/Main")
  49. end
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement