Skiuileuf

Untitled

Feb 18th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. term.setBackgroundColor(colors.orange)
  2. function editList()
  3. term.setCursorPos(40,1)
  4. term.setTextColor(colors.white)
  5. term.setBackgroundColor(colors.blue)
  6. write(" Edit List ")
  7. end
  8. function monEditList()
  9. term.setCursorPos(40,1)
  10. term.setTextColor(colors.white)
  11. term.setBackgroundColor(colors.blue)
  12. write(" Edit List ")
  13. end
  14. function exitList()
  15. term.setCursorPos(1,19)
  16. term.setTextColor(colors.white)
  17. term.setBackgroundColor(colors.blue)
  18. write(" Exit List ")
  19. end
  20. function monExitList()
  21. term.setCursorPos(1,19)
  22. term.setTextColor(colors.white)
  23. term.setBackgroundColor(colors.blue)
  24. write(" Exit List ")
  25. end
  26. function desktop()
  27. term.setBackgroundColor(colors.orange)
  28. term.clear()
  29. term.setBackgroundColor(colors.orange)
  30. term.setTextColor(colors.black)
  31. term.setCursorPos(21,3)
  32. write("Todo List")
  33. term.setCursorPos(2,5)
  34. write("1: ")
  35. term.setCursorPos(2,7)
  36. write("2: ")
  37. term.setCursorPos(2,9)
  38. write("3: ")
  39. term.setCursorPos(2,11)
  40. write("4: ")
  41. term.setCursorPos(2,13)
  42. write("5: ")
  43. editList()
  44. exitList()
  45. end
  46. function desktop2()
  47. term.setBackgroundColor(colors.orange)
  48. term.clear()
  49. term.setTextColor(colors.black)
  50. term.setCursorPos(21,3)
  51. write("Todo List")
  52. term.setCursorPos(2,5)
  53. write("1: "..a)
  54. term.setCursorPos(2,7)
  55. write("2: "..B)/>/>
  56. term.setCursorPos(2,9)
  57. write("3: "..c)
  58. term.setCursorPos(2,11)
  59. write("4: "..d)
  60. term.setCursorPos(2,13)
  61. write("5: "..e)
  62. editList()
  63. exitList()
  64. end
  65. function monDesktop()
  66. mon = peripheral.wrap("left")
  67. mon.setBackgroundColor(colors.orange)
  68. mon.clear()
  69. mon.setTextColor(colors.black)
  70. mon.setCursorPos(21,3)
  71. mon.write("Todo List")
  72. mon.setCursorPos(2,5)
  73. mon.write("1: "..a)
  74. mon.setCursorPos(2,7)
  75. mon.write("2: "..B)/>/>
  76. mon.setCursorPos(2,9)
  77. mon.write("3: "..c)
  78. mon.setCursorPos(2,11)
  79. mon.write("4: "..d)
  80. mon.setCursorPos(2,13)
  81. mon.write("5: "..e)
  82. monEditList()
  83. monExitList()
  84. end
  85.  
  86. desktop()
  87. while true do
  88. event,a1,a2,a3 = os.pullEvent("mouse_click")
  89. if a2>=40 and a2<=51 and a3 == 1 and a1 == 1 then
  90. term.clear()
  91. term.setCursorPos(1,1)
  92. write("steps")
  93. term.setCursorPos(1,2)
  94. write("1: When than # comes to the one you want to change type what u want that # to say on the list")
  95. term.setCursorPos(1,4)
  96. write("2: If u dont want to put any thing on that line then click Enter")
  97. term.setCursorPos(1,6)
  98. write("3: When done typing for that number click Enter")
  99. term.setCursorPos(1,8)
  100. write("This message will go away in 10 secs")
  101. sleep(5)
  102. for i = 1,10 do
  103. term.setCursorPos(1,9)
  104. print(i)
  105. i = i+1
  106. sleep(1)
  107. end
  108. term.clear()
  109. term.setBackgroundColor(colors.blue)
  110. term.setCursorPos(1,1)
  111. write(" List Maker")
  112. term.setCursorPos(1,3)
  113. write("1: ")
  114. a = read()
  115. term.setCursorPos(1,5)
  116. write("2: ")
  117. b = read()
  118. term.setCursorPos(1,7)
  119. write("3: ")
  120. c = read()
  121. term.setCursorPos(1,9)
  122. write("4: ")
  123. d = read()
  124. term.setCursorPos(1,11)
  125. write("5: ")
  126. e = read()
  127. sleep(3)
  128. term.clear()
  129. term.setCursorPos(1,1)
  130. for i = 1,3 do
  131. write("SAVING DATA.")
  132. sleep(1)
  133. term.clear()
  134. term.setCursorPos(1,1)
  135. write("SAVING DATA..")
  136. sleep(1)
  137. term.clear()
  138. term.setCursorPos(1,1)
  139. write("SAVING DATA...")
  140. sleep(1)
  141. term.clear()
  142. term.setCursorPos(1,1)
  143. end
  144. desktop2()
  145. monDesktop()
  146. elseif a2>=1 and a2<=11 and a3==19 then
  147. os.reboot()
  148. end
  149. end
Add Comment
Please, Sign In to add comment