Advertisement
RobotBubble

Options

Oct 24th, 2017
128
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.setCursorPos(1, 5)
  14. term.setTextColor(colors.white)
  15. print("[M] Menu")
  16. term.setCursorPos(1, 7)
  17. print("[1] Rename")
  18. term.setCursorPos(1, 9)
  19. print("[2] Help")
  20. term.setCursorPos(1, 11)
  21. print("[3] Adminin. Access")
  22. term.setCursorPos(1, 13)
  23. print("[4] Erase Data")
  24. term.setCursorPos(1, 15)
  25. print("[5] Switch UI")
  26. local sEvent, param = os.pullEvent("key")
  27. if(sEvent == "key" ) then
  28. if(param == 50) then
  29. term.clear()
  30. term.setCursorPos(1, 1)
  31. shell.run("menu")
  32. elseif(param == 2) then
  33. term.clear()
  34. term.setCursorPos(1, 1)
  35. shell.run("name")
  36. elseif(param == 109) then
  37. term.clear()
  38. term.setCursorPos(1, 1)
  39. shell.run("name")
  40. elseif(param == 3) then
  41. term.clear()
  42. term.setCursorPos(1, 1)
  43. shell.run("help")
  44. elseif(param == 110) then
  45. term.clear()
  46. term.setCursorPos(1, 1)
  47. shell.run("help")
  48. elseif(param == 4) then
  49. term.clear()
  50. term.setCursorPos(1, 1)
  51. shell.run("admin")
  52. elseif(param == 111) then
  53. term.clear()
  54. term.setCursorPos(1, 1)
  55. shell.run("admin")
  56. elseif(param == 5) then
  57. term.clear()
  58. term.setCursorPos(1, 1)
  59. shell.run("erase")
  60. elseif(param == 106) then
  61. term.clear()
  62. term.setCursorPos(1, 1)
  63. shell.run("erase")
  64. elseif(param == 107) then
  65. term.clear()
  66. term.setCursorPos(1, 1)
  67. term.setTextColor(colors.white)
  68. shell.run("ui")
  69. else
  70. shell.run("options")
  71. end
  72. end
Advertisement
RAW Paste Data Copied
Advertisement