Advertisement
DanielLaby99

Files

Mar 17th, 2013
973
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.14 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. shell.run("/Laby/Desktop")
  3. term.setTextColor(colors.white)
  4. term.setBackgroundColor(512)
  5. sleep(0)
  6. term.setCursorPos(1,19)
  7. term.setBackgroundColor(colors.green)
  8. write(" Menu ")
  9. term.setBackgroundColor(colors.blue)
  10. write("                                              ")
  11. term.setBackgroundColor(colors.blue)
  12.  
  13.  
  14. function Zeit()
  15.          pzeit = os.time()
  16.          pzeit = textutils.formatTime(pzeit, true)
  17.     return pzeit     
  18. end
  19.  
  20.  
  21.  
  22. while true do    
  23.       term.setCursorPos(46,19)
  24.       write(""..Zeit())
  25.       write(" ")
  26.       sleep(0.1)
  27. break
  28. end
  29.  
  30.  
  31.  
  32. sleep(0.1)
  33. term.setCursorPos(1,1)
  34. term.setTextColor(colors.white)
  35. term.setBackgroundColor(colors.blue)
  36. write("                  Meine Dateien                   ")
  37. term.setBackgroundColor(colors.red)
  38. write("X")
  39. term.setBackgroundColor(colors.white)
  40. term.setTextColor(colors.black)
  41. print("                                                   ")
  42. print("                                                   ")
  43. print("                                                   ")
  44. print("                                                   ")
  45. print("                                                   ")
  46. print("                                                   ")
  47. print("                                                   ")
  48. print("                                                   ")
  49. print("                                                   ")
  50. print("                                                   ")
  51. print("                                                   ")
  52. print("                                                   ")
  53. print("                                                   ")
  54. print("                                                   ")
  55. print("                                                   ")
  56. print("                                                   ")
  57. print("                                                   ")
  58. print("[+]                                                ")
  59. term.setCursorPos(1,2)
  60. term.setBackgroundColor(colors.white)
  61. term.setTextColor(colors.black)
  62. shell.run("programs")
  63.  
  64.  
  65. while true do
  66. local event, button, X, Y = os.pullEvent("mouse_click")
  67. XY = X..","..Y
  68.  
  69. if XY == "2,19" and button == 1 then
  70. shell.run("/Laby/Start")
  71. break
  72. end
  73.  
  74. if XY == "3,19" and button == 1 then
  75. shell.run("/Laby/Start")
  76. break
  77. end
  78.  
  79. if XY == "4,19" and button == 1 then
  80. shell.run("/Laby/Start")
  81. break
  82. end
  83.  
  84.  
  85. if XY == "51,1" and button == 1 then
  86. term.setTextColor(colors.white)
  87. shell.run("/Laby/Gast")
  88. break
  89. end
  90.  
  91. if XY == "5,19" and button == 1 then
  92. shell.run("/Laby/Start")
  93. break
  94. end
  95.  
  96.  
  97. if XY == "2,18" and button == 1 then
  98. term.setBackgroundColor(colors.white)
  99. term.setTextColor(colors.black)
  100. term.setCursorPos(1,15)
  101. write("Run:")
  102. run = read()
  103. term.setTextColor(colors.black)
  104. shell.run(run)
  105. sleep(1)
  106. term.setBackgroundColor(colors.black)
  107. term.setCursorPos(1,1)
  108. term.setTextColor(colors.red)
  109. print("                               Use BACK for Desktop")
  110. term.setTextColor(colors.white)
  111. term.setCursorPos(1,2)
  112. print("                                                   ")
  113. print("                                                   ")
  114. print("                                                   ")
  115. print("                                                   ")
  116. print("                                                   ")
  117. print("                                                   ")
  118. print("                                                   ")
  119. print("                                                   ")
  120. print("                                                   ")
  121. print("                                                   ")
  122. print("                                                   ")
  123. print("                                                   ")
  124. print("                                                   ")
  125. print("                                                   ")
  126. print("                                                   ")
  127. print("                                                   ")
  128. print("                                                   ")
  129.  
  130.  
  131.  
  132. term.setCursorPos(1,2)
  133. shell.run(run)
  134.  
  135.  
  136.  
  137.  
  138. term.setTextColor(colors.black)
  139. break
  140. end
  141.  
  142.  
  143.  
  144.  
  145. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement