Advertisement
RobotBubble

CButtonMenu

Nov 30th, 2017
74
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] Chat")
  16. term.setCursorPos(1, 7)
  17. print("[2] Calculator")
  18. term.setCursorPos(1, 9)
  19. print("[3] NotePad")
  20. term.setCursorPos(1, 11)
  21. print("[4] Games")
  22. term.setCursorPos(1, 13)
  23. print("[5] Comp. Info")
  24. term.setCursorPos(1, 15)
  25. print("[6] Options")
  26. term.setCursorPos(1, 17)
  27. print("[7] Sleep")
  28. local sEvent, param = os.pullEvent("key")
  29. if(sEvent == "key" ) then
  30. if(param == 50) then
  31. term.clear()
  32. term.setCursorPos(1, 1)
  33. print("Bubble Bot Computers V4.1.1")
  34. print("Remote [1]")
  35. print("Chat [2]")
  36. print("Calculator [3]")
  37. print("NumberGame [4]")
  38. print("2048 [5]")
  39. print("Comp. Info [6]")
  40. print("Options [7]")
  41. print("Reboot [8]")
  42. print("Shutdown [9]")
  43. elseif(param == 2) then
  44. term.clear()
  45. term.setCursorPos(1, 1)
  46. shell.run("chat")
  47. elseif(param == 3) then
  48. term.clear()
  49. term.setCursorPos(1, 1)
  50. shell.run("calculator")
  51. elseif(param == 4) then
  52. term.clear()
  53. term.setCursorPos(1, 1)
  54. shell.run("notes")
  55. elseif(param == 5) then
  56. term.clear()
  57. term.setCursorPos(1, 1)
  58. shell.run("games")
  59. elseif(param == 6) then
  60. term.clear()
  61. term.setCursorPos(1, 1)
  62. shell.run("id")
  63. sleep(5)
  64. shell.run("menu")
  65. elseif(param == 7) then
  66. term.clear()
  67. term.setCursorPos(1, 1)
  68. shell.run("options")
  69. elseif(param == 8) then
  70. sleep(.5)
  71. term.clear()
  72. term.setCursorPos(1, 1)
  73. sleep(.5)
  74. textutils.slowPrint("Goodbye...")
  75. sleep(2.5)
  76. os.shutdown()
  77. else
  78. shell.run("menu")
  79. end
  80. end
Advertisement
RAW Paste Data Copied
Advertisement