Advertisement
Guest User

8Loader

a guest
Sep 2nd, 2014
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.56 KB | None | 0 0
  1. --[[
  2.     If you are changing the settings, you must
  3.     keep in mind that only a restore can fix
  4.     broken things.
  5.     only change the colours unless you know LUA
  6.     well, from CraftCo.
  7. --]]
  8.  
  9. username = fs.open("CraftOS/Terminal/Username","r")
  10.  if username then
  11.   username1 = username.readLine()
  12.  end
  13.  
  14. term.setBackgroundColour(colours.lightBlue)
  15. term.clear()
  16. term.setCursorPos(1, 1)
  17. sleep(0.7)
  18.  
  19. print ("  ")
  20. print ("  START                                   "..username1)
  21.  
  22. term.setCursorPos(2, 5)
  23.  
  24. term.setBackgroundColour(colours.orange)
  25.  
  26. print ("                ")
  27. term.setCursorPos(2, 6)
  28. print ("                ")
  29. term.setCursorPos(2 ,7)
  30. print ("   RExplorer    ")
  31. term.setCursorPos(2, 8)
  32. print ("                ")
  33. term.setCursorPos(2, 9)
  34. print ("                ")
  35.  
  36. term.setBackgroundColour(colours.blue)
  37.  
  38. term.setCursorPos(18, 5)
  39. print ("                ")
  40. term.setCursorPos(18, 6)
  41. print ("                ")
  42. term.setCursorPos(18, 7)
  43. print ("    Terminal    ")
  44. term.setCursorPos(18, 8)
  45. print ("                ")
  46. term.setCursorPos(18, 9)
  47. print ("                ")
  48.  
  49. term.setBackgroundColour(colours.lime)
  50.  
  51. term.setCursorPos(34, 5)
  52. print ("                ")
  53. term.setCursorPos(34, 6)
  54. print ("                ")
  55. term.setCursorPos(34, 7)
  56. print ("       NC       ")
  57. term.setCursorPos(34, 8)
  58. print ("                ")
  59. term.setCursorPos(34, 9)
  60. print ("                ")
  61.  
  62. term.setBackgroundColour(colours.red)
  63.  
  64. term.setCursorPos(2, 11)
  65. print ("                ")
  66. term.setCursorPos(2, 12)
  67. print ("                ")
  68. term.setCursorPos(2, 13)
  69. print ("       CC       ")
  70. term.setCursorPos(2, 14)
  71. print ("                ")
  72. term.setCursorPos(2, 15)
  73. print ("                ")
  74.  
  75. term.setBackgroundColour(colours.purple)
  76.  
  77. term.setCursorPos(18, 11)
  78. print ("                ")
  79. term.setCursorPos(18, 12)
  80. print ("                ")
  81. term.setCursorPos(18, 13)
  82. print ("    Settings    ")
  83. term.setCursorPos(18, 14)
  84. print ("                ")
  85. term.setCursorPos(18, 15)
  86. print ("                ")
  87.  
  88. term.setBackgroundColour(colours.grey)
  89.  
  90. term.setCursorPos(34, 11)
  91. print ("                ")
  92. term.setCursorPos(34, 12)
  93. print ("                ")
  94. term.setCursorPos(34, 13)
  95. print ("   Run CCiri    ")
  96. term.setCursorPos(34, 14)
  97. print ("(reboot to exit)")
  98. term.setCursorPos(34, 15)
  99. print ("                ")
  100.  
  101. term.setBackgroundColour(colours.lightBlue)
  102. term.setCursorPos(2, 17)
  103.  
  104. answer = read ()
  105. if answer == "rexplorer" then
  106.  shell.run("RExplorer")
  107. end
  108.  
  109. if answer == "terminal" then
  110. sleep(0)
  111. end
  112.  
  113. if answer == "nc" then
  114.  term.setBackgroundColour(colours.black)
  115.  term.clear()
  116.  term.setCursorPos(1, 1)
  117.  sleep(1)
  118.  shell.run("NC")
  119. end
  120.  
  121. if answer == "cc" then
  122.  term.setBackgroundColour(colours.black)
  123.  term.clear()
  124.  term.setCursorPos(1, 1)
  125.  sleep(1)
  126.  shell.run("cc")
  127. end
  128.  
  129. if answer == "settings" then
  130.  term.clear()
  131.  term.setCursorPos(1, 1)
  132.  print ("Change username or password?")
  133.  print ("---------------------------------------------------")
  134.  print ("  ")
  135.  write(" What would you like to change? ")
  136.  answer = read ()
  137.   if answer == "username" then
  138.    shell.run("edit CraftOS/Terminal/Username")
  139.   else
  140.    if answer == "password" then
  141.     shell.run("edit CraftOS/Terminal/Password")
  142.    end
  143.   end
  144.  term.setBackgroundColour(colours.black)
  145.  term.clear()
  146.  term.setCursorPos(1, 1)
  147. end
  148.  
  149. if answer == "run cciri" then
  150.  term.setBackgroundColour(colours.black)
  151.  term.clear()
  152.  term.setCursorPos(1, 1)
  153.  sleep(1)
  154.  shell.run("cciri")
  155. end
  156.  
  157. sleep(1)
  158. term.setBackgroundColour(colours.black)
  159. term.clear()
  160. term.setCursorPos(1, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement