Advertisement
DanielLaby99

Setup - LabyOS - Step 2

Jul 15th, 2013
1,434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. local function screen()
  2. local data = fs.open(".minecraft/config/background", "r")
  3. if data then
  4. term.setBackgroundColor(tonumber(data.readAll()))
  5. data.close()
  6. end
  7. shell.run("clear")
  8. term.setBackgroundColor(colors.white)
  9. term.setCursorPos(2,2)
  10. for f=0,15 do
  11. for f2=0,47 do
  12. write(" ")
  13. end
  14. term.setBackgroundColor(colors.black)
  15. if f<1 then
  16. local data = fs.open(".minecraft/config/background", "r")
  17. if data then
  18. term.setBackgroundColor(tonumber(data.readAll()))
  19. data.close()
  20. end
  21. end
  22. print(" ")
  23. local data = fs.open(".minecraft/config/background", "r")
  24. if data then
  25. term.setBackgroundColor(tonumber(data.readAll()))
  26. data.close()
  27. end
  28. write(" ")
  29. term.setBackgroundColor(colors.white)
  30. end
  31. local data = fs.open(".minecraft/config/background", "r")
  32. if data then
  33. term.setBackgroundColor(tonumber(data.readAll()))
  34. data.close()
  35. end
  36. write(" ")
  37. term.setBackgroundColor(colors.black)
  38. for f=0,47 do
  39. write(" ")
  40. end
  41. end
  42. screen()
  43.  
  44. term.setCursorPos(46,3)
  45. term.setBackgroundColor(colors.white)
  46. term.setTextColor(colors.black)
  47. write("2/3")
  48. term.setBackgroundColor(colors.white)
  49. term.setCursorPos(3,3)
  50. term.setTextColor(colors.lightGray)
  51. write("> Design ")
  52. term.setTextColor(colors.gray)
  53. write("> Name ")
  54. term.setTextColor(colors.lightGray)
  55. term.setCursorPos(3,5)
  56. textutils.slowWrite("Choose your name.")
  57. term.setCursorPos(3,6)
  58. textutils.slowWrite("They want to use their premium")
  59. term.setCursorPos(3,7)
  60. textutils.slowWrite("account or a cracked account?")
  61. term.setCursorPos(3,9)
  62. textutils.slowWrite("Premium = Internet function")
  63. term.setCursorPos(3,10)
  64. textutils.slowWrite("Cracked = Offline")
  65. term.setCursorPos(3,16)
  66. term.setTextColor(colors.gray)
  67. term.setBackgroundColor(colors.lightGray)
  68. textutils.slowWrite(" ")
  69. term.setCursorPos(3,16)
  70. textutils.slowWrite(" Back ")
  71. term.setCursorPos(29,16)
  72. textutils.slowWrite(" ")
  73. term.setCursorPos(29,16)
  74. textutils.slowWrite(" Cracked ")
  75. term.setCursorPos(3,10)
  76. term.setCursorPos(40,16)
  77. textutils.slowWrite(" ")
  78. term.setCursorPos(40,16)
  79. textutils.slowWrite(" Premium ")
  80. term.setCursorPos(3,10)
  81.  
  82.  
  83.  
  84. while true do
  85. local event, btn, mouseX, mouseY = os.pullEvent("mouse_click")
  86. if mouseX >= 3 and mouseX <= 8 and mouseY == 16 then
  87. shell.run(".minecraft/bin/labyos/setup/a")
  88. break
  89. end
  90.  
  91. local event, btn, mouseX, mouseY = os.pullEvent("mouse_click")
  92. if mouseX >= 29 and mouseX <= 39 and mouseY == 16 then
  93. shell.run(".minecraft/bin/labyos/setup/step3")
  94. break
  95. end
  96.  
  97. local event, btn, mouseX, mouseY = os.pullEvent("mouse_click")
  98. if mouseX >= 40 and mouseX <= 48 and mouseY == 16 then
  99. shell.run(".minecraft/bin/labyos/setup/step3r")
  100. break
  101. end
  102.  
  103. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement