Advertisement
RobotBubble

Menu

Oct 24th, 2017
140
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.clear()
  2. term.setCursorPos(1, 1)
  3. term.setTextColor(colors.lightGray)
  4. print("--------------------------")
  5. print("---")
  6. term.setTextColor(colors.lightBlue)
  7. term.setCursorPos(4, 2)
  8. print("Bubble Bot Computers")
  9. term.setTextColor(colors.lightGray)
  10. term.setCursorPos(24, 2)
  11. print("---")
  12. print("--------------------------")
  13. term.setTextColor(colors.white)
  14. term.setCursorPos(1, 5)
  15. print("[1] TurtleMenu")
  16. term.setCursorPos(1, 7)
  17. print("[2] Chat")
  18. term.setCursorPos(1, 9)
  19. print("[3] Calculator")
  20. term.setCursorPos(1, 11)
  21. print("[4] NotePad")
  22. term.setCursorPos(1, 13)
  23. print("[5] Games")
  24. term.setCursorPos(1, 15)
  25. print("[6] Comp. Info")
  26. term.setCursorPos(1, 17)
  27. print("[7] Options")
  28. term.setCursorPos(1, 19)
  29. print("[8] Sleep")
  30. local sEvent, param = os.pullEvent("key")
  31. if(sEvent == "key" ) then
  32. if(param == 2) then
  33. term.clear()
  34. term.setCursorPos(1, 1)
  35. shell.run("turtlemenu")
  36. elseif(param == 109) then
  37. term.clear()
  38. term.setCursorPos(1, 1)
  39. shell.run("turtlemenu")
  40. elseif(param == 50) then
  41. term.clear()
  42. term.setCursorPos(1, 1)
  43. print("Bubble Bot Computers V4.1.1")
  44. print("Remote [1]")
  45. print("Chat [2]")
  46. print("Calculator [3]")
  47. print("NumberGame [4]")
  48. print("2048 [5]")
  49. print("Comp. Info [6]")
  50. print("Options [7]")
  51. print("Reboot [8]")
  52. print("Shutdown [9]")
  53. elseif(param == 3) then
  54. term.clear()
  55. term.setCursorPos(1, 1)
  56. shell.run("chat")
  57. elseif(param == 110) then
  58. term.clear()
  59. term.setCursorPos(1, 1)
  60. shell.run("chat")
  61. elseif(param == 4) then
  62. term.clear()
  63. term.setCursorPos(1, 1)
  64. shell.run("calculator")
  65. elseif(param == 111) then
  66. term.clear()
  67. term.setCursorPos(1, 1)
  68. shell.run("calculator")
  69. elseif(param == 5) then
  70. term.clear()
  71. term.setCursorPos(1, 1)
  72. shell.run("notes")
  73. elseif(param == 106) then
  74. term.clear()
  75. term.setCursorPos(1, 1)
  76. shell.run("notes")
  77. elseif(param == 6) then
  78. term.clear()
  79. term.setCursorPos(1, 1)
  80. shell.run("games")
  81. elseif(param == 107) then
  82. term.clear()
  83. term.setCursorPos(1, 1)
  84. shell.run("games")
  85. elseif(param == 7) then
  86. term.clear()
  87. term.setCursorPos(1, 1)
  88. shell.run("id")
  89. sleep(5)
  90. shell.run("menu")
  91. elseif(param == 108) then
  92. term.clear()
  93. term.setCursorPos(1, 1)
  94. shell.run("id")
  95. sleep(5)
  96. shell.run("menu")
  97. elseif(param == 8) then
  98. term.clear()
  99. term.setCursorPos(1, 1)
  100. shell.run("options")
  101. elseif(param == 103) then
  102. term.clear()
  103. term.setCursorPos(1, 1)
  104. shell.run("options")
  105. elseif(param == 9) then
  106. sleep(.5)
  107. term.clear()
  108. term.setCursorPos(1, 1)
  109. sleep(.5)
  110. textutils.slowPrint("Goodbye...")
  111. sleep(2.5)
  112. os.shutdown()
  113. elseif(param == 104) then
  114. sleep(.5)
  115. term.clear()
  116. term.setCursorPos(1, 1)
  117. sleep(.5)
  118. textutils.slowPrint("Goodbye...")
  119. sleep(2.5)
  120. os.shutdown()
  121. else
  122. shell.run("menu")
  123. end
  124. end
Advertisement
RAW Paste Data Copied
Advertisement