PolskiWisnia

NextUI 1.9 Beta

Mar 3rd, 2020
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 54.84 KB | None | 0 0
  1. local function s(...) return sleep(...) end
  2. local function aw(...) return write(...) end
  3. local function p(...) return print(...) end
  4. local function tw(...) return term.write(...) end
  5. local function scp(...) return term.setCursorPos(...) end
  6. local function sbc(...) return term.setBackgroundColor(...) end
  7. local function stc(...) return term.setTextColor(...) end
  8. local function tc(...) return term.clear(...) end
  9. local function tcl(...) return term.clearLine(...) end
  10. local function r(...) return shell.run(...) end
  11. local function sp(...) return textutils.slowPrint(...) end
  12. local function sw(...) return textutils.slowWrite(...) end
  13. local function fse(...) return fs.exists(...) end
  14. local function pul(...) return paintutils.loadImage(...) end
  15. local function pud(...) return paintutils.drawImage(...) end
  16. local function pfb(...) return paintutils.drawFilledBox(...) end
  17. local function su(...) return os.shutdown(...) end
  18. local function re(...) return os.reboot(...) end
  19. local function pdp(...) return paintutils.drawPixel(...) end
  20. local w, h = term.getSize()
  21. if w>99 and h>30 then trybres = 1 else trybres = 0 end
  22.  
  23. function bsodp()
  24. tc()
  25. ac = w/2
  26. scp(ac-2,3)
  27. p("NextUI")
  28. scp(1,6)
  29. p("Microcraft MineCore napotkal blad i musial zostac zatrzymany. Jesli widzisz ten ekran po raz pierwszy, uruchom ponownie komputer, jednak jesli bedzie sie powtarzal mozliwe, ze konieczna bedzie naprawa systemu NextUI. Skontaktuj sie w tym celu z przedstawicielem Microcraft po wiecej informacji.")
  30. p("Kod bledu: 0x302525503149")
  31. p("Nazwa bledu: INV_PLA")
  32. system = "NextUI"
  33. kernel = "MineCore 2.0"
  34. kod = "0x403535604159"
  35. nazwa = "INV_PLA"
  36. p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/bsodp")
  37. local a = fs.open("/os/bsod/bsodp", "w")
  38. a.writeLine(system)
  39. a.writeLine(kernel)
  40. a.writeLine(kod)
  41. a.writeLine(nazwa)
  42. a.close()
  43. p("Twoj komputer uruchomi sie ponownie za 10 sekund")
  44. s(10)
  45. re()
  46. end
  47.  
  48. function bsodr()
  49. tc()
  50. sbc(colors.blue)
  51. tc()
  52. sbc(colors.blue)
  53. stc(colors.white)
  54. ac = w/2
  55. scp(ac-2,3)
  56. sbc(colors.white)
  57. stc(colors.blue)
  58. p("NextUI")
  59. sbc(colors.blue)
  60. stc(colors.white)
  61. scp(1,6)
  62. p("Microcraft MineCore napotkal blad i musial zostac zatrzymany. Jesli widzisz ten ekran po raz pierwszy, uruchom ponownie komputer, jednak jesli bedzie sie powtarzal mozliwe, ze konieczna bedzie naprawa systemu NextUI. Skontaktuj sie w tym celu z przedstawicielem Microcraft po wiecej informacji.")
  63. p("Kod bledu: 0x403535604159")
  64. p("Nazwa bledu: INV_RES")
  65. system = "NextUI"
  66. kernel = "MineCore 2.0"
  67. kod = "0x403535604159"
  68. nazwa = "INV_RES"
  69. p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/bsodr")
  70. local a = fs.open("/os/bsod/bsodr", "w")
  71. a.writeLine(system)
  72. a.writeLine(kernel)
  73. a.writeLine(kod)
  74. a.writeLine(nazwa)
  75. a.close()
  76. p("Twoj komputer uruchomi sie ponownie za 10 sekund")
  77. s(10)
  78. re()
  79. end
  80.  
  81.  
  82.  
  83. function bsodf()
  84. tc()
  85. sbc(colors.blue)
  86. tc()
  87. sbc(colors.blue)
  88. stc(colors.white)
  89. ac = w/2
  90. scp(ac-2,3)
  91. sbc(colors.white)
  92. stc(colors.blue)
  93. p("NextUI")
  94. sbc(colors.blue)
  95. stc(colors.white)
  96. scp(1,6)
  97. p("Microcraft MineCore napotkal blad i musial zostac zatrzymany. Jesli widzisz ten ekran po raz pierwszy, uruchom ponownie komputer, jednak jesli bedzie sie powtarzal mozliwe, ze konieczna bedzie naprawa systemu NextUI. Skontaktuj sie w tym celu z przedstawicielem Microcraft po wiecej informacji.")
  98. p("Kod bledu: 0x302525503149")
  99. p("Nazwa bledu: APP_MSNG")
  100. system = "NextUI"
  101. kernel = "MineCore 2.0"
  102. kod = "0x302525503149"
  103. nazwa = "APP_MSNG"
  104. p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/bsodf")
  105. local a = fs.open("/os/bsod/bsodf", "w")
  106. a.writeLine(system)
  107. a.writeLine(kernel)
  108. a.writeLine(kod)
  109. a.writeLine(nazwa)
  110. a.close()
  111. p("Twoj komputer uruchomi sie ponownie za 10 sekund")
  112. s(10)
  113. re()
  114. end
  115.  
  116. if w>99 and h>30 then trybres = 1 else trybres = 0 end
  117. if not term.isColor() then bsodp() end
  118. if w<51 or h<19 then bsodr() end
  119. if pocket then bsodp() end
  120. if turtle then bsodp() end
  121.  
  122. function bsodr()
  123. tc()
  124. sbc(colors.blue)
  125. tc()
  126. sbc(colors.blue)
  127. stc(colors.white)
  128. ac = w/2
  129. scp(ac-2,3)
  130. sbc(colors.white)
  131. stc(colors.blue)
  132. p("NextUI")
  133. sbc(colors.blue)
  134. stc(colors.white)
  135. scp(1,6)
  136. p("Microcraft MineCore napotkal blad i musial zostac zatrzymany. Jesli widzisz ten ekran po raz pierwszy, uruchom ponownie komputer, jednak jesli bedzie sie powtarzal mozliwe, ze konieczna bedzie naprawa systemu NextUI. Skontaktuj sie w tym celu z przedstawicielem Microcraft po wiecej informacji.")
  137. p("Kod bledu: 0x302525503149")
  138. p("Nazwa bledu: INV_RES")
  139. system = "NextUI"
  140. kernel = "MineCore"
  141. kod = "0x403535604159"
  142. nazwa = "INV_RES"
  143. p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/.bsodr")
  144. local a = fs.open("/os/bsod/.bsodr", "w")
  145. a.writeLine(system)
  146. a.writeLine(kernel)
  147. a.writeLine(kod)
  148. a.writeLine(nazwa)
  149. a.close()
  150. p("Twoj komputer uruchomi sie ponownie za 10 sekund")
  151. s(10)
  152. re()
  153. end
  154.  
  155. function bsodf()
  156. tc()
  157. sbc(colors.blue)
  158. tc()
  159. sbc(colors.blue)
  160. stc(colors.white)
  161. ac = w/2
  162. scp(ac-2,3)
  163. sbc(colors.white)
  164. stc(colors.blue)
  165. p("NextUI")
  166. sbc(colors.blue)
  167. stc(colors.white)
  168. scp(1,6)
  169. p("Microcraft MineCore napotkal blad i musial zostac zatrzymany. Jesli widzisz ten ekran po raz pierwszy, uruchom ponownie komputer, jednak jesli bedzie sie powtarzal mozliwe, ze konieczna bedzie naprawa systemu NextUI. Skontaktuj sie w tym celu z przedstawicielem Microcraft po wiecej informacji.")
  170. p("Kod bledu: 0x302525503149")
  171. p("Nazwa bledu: APP_MSNG")
  172. system = "NextUI"
  173. kernel = "MineCore"
  174. kod = "0x302525503149"
  175. nazwa = "APP_MSNG"
  176. p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/.bsodf")
  177. local a = fs.open("/os/bsod/.bsodf", "w")
  178. a.writeLine(system)
  179. a.writeLine(kernel)
  180. a.writeLine(kod)
  181. a.writeLine(nazwa)
  182. a.close()
  183. p("Twoj komputer uruchomi sie ponownie za 10 sekund")
  184. s(10)
  185. re()
  186. end
  187.  
  188. function logobraz()
  189. pfb(1, 1, w, 5, colors.blue)
  190. pfb(1, 6, w, h-5, colors.lightBlue)
  191. pfb(1, h-6, w, h, colors.blue)
  192. pfb(15, 7, 17, 9, colors.gray)
  193. scp(1,1)
  194. p("Logowanie NextUI")
  195. p("Podaj haslo, aby kontynuowac")
  196. end
  197.  
  198. function log()
  199. if pass == "" then system() else
  200. sbc(colors.lightBlue)
  201. stc(colors.white)
  202. scp(18,7)
  203. p(user)
  204. scp(18,8)
  205. write("")
  206. haslo = read()
  207. if haslo == pass then ok = 1 else scp(18,9) stc(colors.red) p("Bledne haslo") s(2) re() end
  208. end
  209. end
  210.  
  211. function pliki()
  212.  local u = fs.open("/os/.log1", "r")
  213.  user = u.readLine(1)
  214.  u.close()
  215.  local h = fs.open("/os/.log2", "r")
  216.  pass = h.readLine(1)
  217.  h.close()
  218. end
  219.  
  220. function logo()
  221. logobraz()
  222. pliki()
  223. log()
  224. end
  225.  
  226. function app()
  227. while true do
  228. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black)  end
  229. tc()
  230. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black)  end
  231. pfb(1, 1, w, 1, colors.blue)
  232. pfb(1, h, w, h, colors.blue)
  233. pdp(w,h,colors.red)
  234. pdp(w-1,h,colors.orange)
  235. scp(1,h)
  236. stc(colors.white)
  237. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black)  end
  238. write("Start")
  239. sbc(colors.blue)
  240. scp(1,1)
  241. stc(colors.white)
  242. p("Aplikacje nextStore")
  243. pdp(w,1,colors.red)
  244. if fs.exists("/nshop/.exp") then
  245. pfb(2, 4, 2, 6, colors.orange)
  246. pfb(3, 4, 3, 6, colors.yellow)
  247. pfb(4, 4, 4, 6, colors.red)
  248. scp(2,7)
  249. stc(colors.white)
  250. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black)  end
  251. p("Eksplorator")
  252. end
  253.  
  254. if fs.exists("/nshop/.dg") then
  255.  pfb(15, 4, 15, 6, colors.gray)
  256.  pfb(16, 4, 16, 6, colors.gray)
  257.  pfb(17, 4, 17, 6, colors.lightGray)
  258.  pdp(16, 5, colors.lightGray)
  259.  pdp(17, 5, colors.gray)
  260.  stc(colors.white)
  261. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black)  end
  262.  scp(15,7)
  263.  p("DGStatistics")
  264. end
  265.  
  266.  
  267. if fs.exists("/nshop/.tm") then
  268.  pfb(28, 4, 30, 6, colors.gray)
  269.  pfb(28, 4, 30, 4, colors.lightGray)
  270.  pdp(29,5, colors.lightGray)
  271.  pdp(29,6, colors.lightGray)
  272.   stc(colors.white)
  273. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black)  end
  274.  scp(28,7)
  275.  p("TimeMachine")
  276. end
  277.  
  278. if fs.exists("/nshop/.calc") then
  279.  pfb(2, 8, 4, 8, colors.blue)
  280.  pfb(2, 9, 4, 10, colors.cyan)
  281.  stc(colors.white)
  282.  if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr ==
  283.  "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then
  284.  sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr ==
  285.  "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then
  286.  sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr
  287.  == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr ==
  288.  "colors.white" then sbc(colors.white) stc(colors.black)  end
  289.  scp(2,11)
  290.  p("Kalkulator")
  291. end
  292.  
  293. local event, button, x, y = os.pullEvent("mouse_click")
  294. if x>1 and x<5 and y>3 and y<7 and fs.exists("/nshop/.exp") and button == 1 then r("/nshop/.exp") end
  295. if x>14 and x<18 and y>3 and y<7 and fs.exists("/nshop/.dg") and button == 1 then r("/nshop/.dg") end
  296. if x>27 and x<31 and y>3 and y<7 and fs.exists("/nshop/.tm") and button == 1 then r("/nshop/.tm") end
  297. if x>1 and x<5 and y>7 and y<11 and fs.exists("/nshop/.calc") and button == 1 then r("/nshop/.calc") end
  298. if x>1 and x<5 and y>3 and y<7 and fs.exists("/nshop/.exp") and button == 2 then fs.delete("/nshop/.exp") end
  299. if x>14 and x<18 and y>3 and y<7 and fs.exists("/nshop/.dg") and button == 2 then fs.delete("/nshop/.dg") end
  300. if x>27 and x<31 and y>3 and y<7 and fs.exists("/nshop/.tm") and button == 2 then fs.delete("/nshop/.tm") end
  301. if x>1 and x<5 and y>7 and y<11 and fs.exists("/nshop/.calc") and button == 2 then fs.delete("/nshop/.calc") end
  302. if x == w and y == 1 then obraz22() end
  303. if x>0 and x<6 and y == h then start() end
  304. if x == w and y == h then su() end
  305. if x == w-1 and y == h then re() end
  306.  
  307. end
  308. end
  309.  
  310. function apps()
  311. while true do
  312. sbc(colors.black)
  313. tc()
  314. sbc(colors.black)
  315. pfb(6, h, w, h, colors.blue)
  316. sbc(colors.green)
  317. stc(colors.white)
  318. scp(1,h)
  319. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black)  end
  320. aw("Start")
  321. pfb(1, 1, w, 1, colors.blue)
  322. pdp(w, 1, colors.red)
  323. pdp(w-1, h, colors.red)
  324. pdp(w-1, h, colors.orange)
  325. scp(1,1)
  326. sbc(colors.blue)
  327. stc(colors.white)
  328. p("Zarzadzanie aplikacjami")
  329. pfb(3, 3, 5, 3, colors.gray)
  330. pdp(3, 3, colors.lightGray)
  331. scp(6,3)
  332. stc(colors.white)
  333. sbc(colors.black)
  334. miejsce = math.ceil(fs.getFreeSpace("/")/1024)
  335. p("Dysk twardy   Wolne miejsce: ", miejsce, "KB")
  336. scp(1,6)
  337. p("Aplikacje:")
  338. scp(6,8)
  339. stc(colors.white)
  340. sbc(colors.black)
  341. if fs.exists("/nshop/") then rozmiar = math.ceil(getSize("/nshop/")/1024) else
  342. scp(1,7) sbc(colors.black) stc(colors.white) p("Brak zainstalowanych aplikacji") end
  343. scp(1,5)
  344. p("Laczny rozmiar aplikacji na dysku: ", rozmiar, "KB")
  345. if fs.exists("/nshop/.exp") then pfb(3, 8, 5, 8, colors.blue) scp(6,8) stc(colors.white) sbc(colors.black) p("Eksplorator") scp(1,8) stc(colors.white) sbc(colors.red) p("X") end
  346. if fs.exists("/nshop/.dg") then pfb(3, 10, 5, 10, colors.gray) scp(6,10) stc(colors.white) sbc(colors.black) p("DGStatistics") scp(1,10) stc(colors.white) sbc(colors.red) p("X") end
  347. if fs.exists("/nshop/.tm") then pfb(3, 12, 5, 12, colors.green) scp(6,12) stc(colors.white) sbc(colors.black) p("TimeMachine") scp(1,12) stc(colors.white) sbc(colors.red) p("X") end
  348. if fs.exists("/nshop/.calc") then pfb(3, 14, 5, 14, colors.cyan) scp(6,14) stc(colors.white) sbc(colors.black) p("Kalkulator") scp(1, 14) stc(colors.white) sbc(colors.red) p("X") end
  349. local event, click, x, y = os.pullEvent("mouse_click")
  350. if x>0 and x<6 and y == h then start() end
  351. if x == 1 and y == 8 then fs.delete("/nshop/.exp") s(1)  end
  352. if x == 1 and y == 10 then fs.delete("/nshop/.dg") s(1)  end
  353. if x == 1 and y == 12 then fs.delete("/nshop/.tm") s(1)  end
  354. if x == 1 and y == 14 then fs.delete("/nshop/.calc") s(1) end
  355. if x == w and y == 1 then nust() end
  356. end
  357. end
  358.  
  359. function calc()
  360. scp(16,2)
  361. sbc(colors.white)
  362. stc(colors.black)
  363. p("Kalkulator NextUI to prosta")
  364. scp(16,3)
  365. p("aplikacja pozwalajaca na szybsze")
  366. scp(16,4)
  367. p("wykonywanie dzialan matematycznych")
  368. scp(16,10)
  369. p("Wydawca: Microcraft")
  370. pfb(16, h, w, h, colors.blue)
  371. if fs.exists("/nshop/.calc") then
  372.  scp(16,h)
  373.  sbc(colors.blue)
  374.  stc(colors.white)
  375.  write("Usun      Uruchom")
  376.  local event, click, x, y = os.pullEvent("mouse_click")
  377.  if x>15 and x<21 and y == h then fs.delete("/nshop/.calc") end
  378.  if x>25 and x<34 and y == h then r("/nshop/.calc") end
  379. else
  380.  scp(30,h)
  381.  write("Pobierz")
  382.  local event, click, x, y = os.pullEvent("mouse_click")
  383.  if x>29 and x<40 and y == h then
  384.   r("pastebin get dMjjSaKY /nshop/.calc")
  385.  end
  386. end
  387. end
  388.  
  389. function ep()
  390. scp(16,2)
  391. sbc(colors.white)
  392. stc(colors.black)
  393. p("Eksplorator dla NextUI to potezne")
  394. scp(16,3)
  395. p("a zarazem proste narzedzie do")
  396. scp(16,4)
  397. p("przegladania zawartosci dysku")
  398. scp(16,5)
  399. p("twardego. Pobierz za darmo dzisiaj!")
  400. scp(16,10)
  401. p("Wydawca: Microcraft")
  402. pfb(16, h, w, h, colors.blue)
  403. if fs.exists("/nshop/.exp") then
  404.  scp(16,h)
  405.  sbc(colors.blue)
  406.  stc(colors.white)
  407.  write("Usun      Uruchom")
  408.  local event, click, x, y = os.pullEvent("mouse_click")
  409.  if x>15 and x<21 and y == h then fs.delete("/nshop/.exp") end
  410.  if x>25 and x<34 and y == h then r("/nshop/.exp") end
  411. else
  412.  scp(30,h)
  413.  write("Pobierz")
  414.  local event, click, x, y = os.pullEvent("mouse_click")
  415.  if x>29 and x<40 then
  416.   r("pastebin get zbzF7Zu4 /nshop/.exp")
  417.  end
  418. end
  419. end
  420.  
  421.  
  422. function rc()
  423. scp(16,2)
  424. sbc(colors.white)
  425. stc(colors.black)
  426. p("ReactorControl to aplikacja,")
  427. scp(16,3)
  428. p("stworzona dla latwiejszej")
  429. scp(16,4)
  430. p("kontroli reaktorow z modyfikacji")
  431. scp(16,5)
  432. p("do Minecraft nazwanej BigReactors.")
  433. scp(16,10)
  434. p("Wydawca: Microcraft")
  435. pfb(16, h, w, h, colors.blue)
  436. scp(16,h)
  437. write("Aplikacja nie jest jeszcze dostepna")
  438. local event, click, x, y = os.pullEvent("mouse_click")
  439. end
  440.  
  441.  
  442. function tm()
  443. scp(16,2)
  444. sbc(colors.white)
  445. stc(colors.black)
  446. p("TimeMashine to aplikacja")
  447. scp(16,3)
  448. p("uruchamiajaca starsze wersje")
  449. scp(16,4)
  450. p("MineCore oraz Minedows dzieki")
  451. scp(16,5)
  452. p("NextUI API! Poznaj starsze")
  453. scp(16,6)
  454. p("systemy Microcraft bez zbednego")
  455. scp(16,7)
  456. p("zajmowania miejsca na dysku!")
  457. scp(16,8)
  458. p("Aplikacja stworzona na rocznice")
  459. scp(16,9)
  460. p("wydania MineCore 1.0!")
  461. scp(16,12)
  462. p("Wydawca: Microcraft")
  463. pfb(16, h, w, h, colors.blue)
  464. if fs.exists("/nshop/.tm") then
  465.  scp(16,h)
  466.  sbc(colors.blue)
  467.  stc(colors.white)
  468.  write("Usun      Uruchom")
  469.  local event, click, x, y = os.pullEvent("mouse_click")
  470.  if x>15 and x<21 and y == h then fs.delete("/nshop/.tm") end
  471.  if x>25 and x<34 and y == h then r("/nshop/.tm") end
  472. else
  473.  scp(30,h)
  474.  write("Pobierz")
  475.  local event, click, x, y = os.pullEvent("mouse_click")
  476.  if x>29 and x<40 and y == h then
  477.   r("pastebin get kCQLpZQS /nshop/.tm")
  478.  end
  479. end
  480. end
  481.  
  482.  
  483. function dg()
  484. scp(16,2)
  485. sbc(colors.white)
  486. stc(colors.black)
  487. p("DGStatistics to aplikacja,")
  488. scp(16,3)
  489. p("stworzona we wspolpracy z ")
  490. scp(16,4)
  491. p("serwerem Darkness Grounds ")
  492. scp(16,5)
  493. p("pokazujaca statystyki broni")
  494. scp(16,6)
  495. p("Z ich autorskiej modyfikacji!")
  496. scp(16,7)
  497. p("Pobierz juz dzis!")
  498. scp(16,10)
  499. p("Wydawca: Microcraft;DG")
  500. pfb(16, h, w, h, colors.blue)
  501. scp(16,h)
  502. if fs.exists("/nshop/.dg") then
  503.  scp(16,h)
  504.  sbc(colors.blue)
  505.  stc(colors.white)
  506.  write("Usun      Uruchom")
  507.  local event, click, x, y = os.pullEvent("mouse_click")
  508.  if x>15 and x<21 and y == h then fs.delete("/nshop/.dg") end
  509.  if x>25 and x<34 and y == h then r("/nshop/.dg") end
  510. else
  511.  scp(30,h)
  512.  write("Pobierz")
  513.  local event, click, x, y = os.pullEvent("mouse_click")
  514.  if x>29 and x<40 and y == h then
  515.   r("pastebin get qRNinxW4 /nshop/.dg")
  516.  end
  517. end
  518. end
  519.  
  520.  
  521. function kolorw()
  522. scp(1,5)
  523. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  524. p("Obecny kolor wiodacy: ", colr)
  525. p("Wybierz nowy kolor wiodacy:")
  526. pdp(1, 7, colors.orange)
  527. pdp(2, 7, colors.lightBlue)
  528. pdp(3, 7, colors.yellow)
  529. pdp(4, 7, colors.lime)
  530. pdp(5, 7, colors.pink)
  531. pdp(6, 7, colors.gray)
  532. pdp(7, 7, colors.lightGray)
  533. pdp(8, 7, colors.purple)
  534. pdp(9, 7, colors.blue)
  535. pdp(10, 7, colors.brown)
  536. pdp(11, 7, colors.green)
  537. pdp(12, 7, colors.red)
  538. pdp(13, 7, colors.black)
  539. pdp(14, 7, colors.white)
  540. local event, click, x, y = os.pullEvent("mouse_click")
  541. if x == 1 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.orange") colw.close() end
  542. if x == 2 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.lightBlue") colw.close() end
  543. if x == 3 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.yellow") colw.close() end
  544. if x == 4 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.lime") colw.close() end
  545. if x == 5 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.pink") colw.close() end
  546. if x == 6 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.gray") colw.close() end
  547. if x == 7 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.lightGray") colw.close() end
  548. if x == 8 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.purple") colw.close() end
  549. if x == 9 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.blue") colw.close() end
  550. if x == 10 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.brown") colw.close() end
  551. if x == 11 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.green") colw.close() end
  552. if x == 12 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.red") colw.close() end
  553. if x == 13 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.black") colw.close() end
  554. if x == 14 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.white") colw.close() end
  555. end
  556.  
  557. function deskust()
  558. while true do
  559. kolor()
  560. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  561. tc()
  562. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  563. pfb(1, 1, w, 1, colors.blue)
  564. scp(1,1)
  565. stc(colors.white)
  566. p("Ustawienia NextUI")
  567. pdp(w,1, colors.red)
  568. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  569.  scp(1,2)
  570.  p("Styl graficzny: Domyslny NextUI")
  571.  p("Brak dostepnych stylow")
  572.  p("Wybierz kolor wiodacy")
  573.  local event, click, x, y = os.pullEvent("mouse_click")
  574.  if x>0 and x<25 and y == 4 then kolorw() end
  575.  if x == w and y == 1 then nust() end
  576. end
  577. end
  578.  
  579.  
  580. function infust()
  581. while true do
  582. kolor()
  583. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  584. tc()
  585. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  586. pfb(1, 1, w, 1, colors.blue)
  587. scp(1,1)
  588. stc(colors.white)
  589. p("Ustawienia NextUI")
  590. pdp(w,1, colors.red)
  591. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  592. scp(1,2)
  593. p("Microcraft NextUI")
  594. p("Wersja systemu: 1.9 Spring Update Beta")
  595. zajete = math.ceil(getSize("/")/1024)
  596. wolne = math.ceil(fs.getFreeSpace("/")/1024)
  597. p("Wolne miejsce na dysku:", wolne, "KB")
  598. p("Obecna nazwa komputera: ", os.getComputerLabel())
  599. if pass == "" then log = "nie" else log = "tak" end
  600. p("Logowanie wlaczone: ", log)
  601. p("Rozdzielczosc ekranu: ", w, h)
  602. p("Wersja CraftOS: ", os.version())
  603. local event, click, x, y = os.pullEvent("mouse_click")
  604. if x == w and y == 1 then nust() end
  605. end
  606. end
  607.  
  608. function cmd()
  609. s(1)
  610. tc()
  611. sbc(colors.black)
  612. tc()
  613. sbc(colors.black)
  614. stc(colors.white)
  615. scp(1,1)
  616. p("MineCore Command Prompt")
  617. p("2018 Microcraft")
  618. p("Wpisz 'help', aby uzyskac pomoc")
  619. while true do
  620. write("./minecore/>")
  621. comm = read()
  622. if comm == "help" then
  623.  p("'ver' - wersja MineCore")
  624.  p("'next' - powrot do NextUI")
  625.  p("'nextver' - wersja NextUI")
  626.  p("'run' - uruchom plik")
  627.  p("'log' - zmiana hasla")
  628.  p("'reboot' - uruchom ponownie")
  629.  p("'shutdown' - wylacz komputer")
  630.  p("'store' - sklep z aplikacjami")
  631.  p("'craft' - powrot do CraftOS")
  632.  p("'update' - aktualizuj NextUI")
  633.  p("'dir' - lista plikow w danym folderze")
  634.  p("'res' - rozdzielczosc ekranu")
  635.  p("'set' - Ustawienia NextUI")
  636.  p("'app' - Aplikacje NextUI")
  637.  p("'mon' - NextUI Handoff Alpha")
  638.  p("'clock' - Zegar NextUI Beta")
  639.  p("'setust'")
  640. end
  641. if comm == "reboot" then re() end
  642. if comm == "shutdown" then su() end
  643. if comm == "res" then p(w, h) end
  644. if comm == "update" then r("/os/.update") end
  645. if comm == "set" then nust() end
  646. if comm == "app" then app() end
  647. if comm == "setust" then setust() end
  648. if comm == "mon" then bsodp() end
  649. if comm == "clock" then clock() end
  650. if comm == "dir" then
  651.  write(".Podaj sciezke>")
  652.  dir1 = read()
  653.  r("dir", dir1)
  654. end
  655. if comm == "store" then sklep() end
  656. if comm == "ver" then
  657.  p("Microcraft MineCore 2.0 2020.")
  658.  p("Microcraft MineUI D 1.5 2018.")
  659. end
  660. if comm == "nextver" then
  661.  p("Microcraft NextUI 1.9 2020.")
  662. end
  663. if comm == "next" then system() end
  664. if comm == "run" then
  665.  write("Wpisz sciezke pliku: ")
  666.  plik = read()
  667.  if fs.exists(plik) then r(plik) end
  668. end
  669. if comm == "log" then
  670.  write("Wpisz nowe haslo: ")
  671.  passw = read()
  672.  r("rm /os/.log2")
  673.  local pas = fs.open("/os/.log2", "w")
  674.  pass = pas.writeLine(passw)
  675.  pas.close()
  676.  p("Uruchamianie ponownie...")
  677.  s(1)
  678.  re()
  679. end
  680. end
  681. end
  682.  
  683. function setust()
  684. while true do
  685. kolor()
  686. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  687. tc()
  688. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  689. pfb(1, 1, w, 1, colors.blue)
  690. scp(1,1)
  691. stc(colors.white)
  692. p("Ustawienia NextUI")
  693. pdp(w,1, colors.red)
  694. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  695. p("Zmien nazwe komputera")
  696. p("Aktualizuj system")
  697. p("Wiersz polecen")
  698. p("Zmien jezyk")
  699. p("Zegar NextUI |BETA|")
  700. local event, click, x, y = os.pullEvent("mouse_click")
  701. if x>0 and x<20 and y == 2 then
  702.  scp(1,2)
  703.   write("Wpisz nowa nazwe: ")
  704.   nazwa = read()
  705.   os.setComputerLabel(nazwa)
  706.   setust()
  707. end
  708. if x>0 and x<20 and y == 3 then r("/os/.update") end
  709. if x>0 and x<20 and y == 4 then cmd() end
  710. if x>0 and x<20 and y == 5 then r("pastebin run JQvW06m6") end
  711. if x>0 and x<20 and y == 6 then clock() end
  712. if x == w and y == 1 then nust() end
  713. end
  714. end
  715.  
  716.  
  717. function nust()
  718. while true do
  719. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  720. tc()
  721. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  722. pfb(1, h, w, h, colors.blue)
  723. scp(1,h)
  724. stc(colors.white)
  725. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  726. write("Start")
  727. pdp(w-1,h, colors.red)
  728. pdp(w,h, colors.orange)
  729. pfb(1, 1, w, 1, colors.blue)
  730. scp(1,1)
  731. p("Ustawienia NextUI")
  732. pdp(w,1, colors.red)
  733. pfb(3, 4, 13, 6, colors.orange)
  734. scp(3,5)
  735. stc(colors.white)
  736. p("Informacje")
  737. pfb(27, 4, 37, 6, colors.cyan)
  738. scp(27,5)
  739. stc(colors.white)
  740. p("Biurko")
  741. pfb(15, 4, 25, 6, colors.green)
  742. scp(15,5)
  743. stc(colors.white)
  744. p("Ustawienia")
  745. pfb(39, 4, 49, 6, colors.red)
  746. scp(39,5)
  747. stc(colors.white)
  748. p("Aplikacje")
  749. local event, click, x, y = os.pullEvent("mouse_click")
  750. if x == w and y == 1 then system() end
  751. if x>0 and x<6 and y == h then start() end
  752. if x>2 and x<14 and y>3 and y<7 then infust() end
  753. if x>14 and x<26 and y>3 and y<7 then setust() end
  754. if x>26 and x<38 and y>3 and y<7 then deskust() end
  755. if x>38 and x<50 and y>3 and y<7 then apps() end
  756. end
  757. end
  758.  
  759. if fs.exists("/os/.ver") then
  760. local wer = fs.open("/os/.ver", "r")
  761. ver = wer.readLine()
  762. wer.close()
  763. end
  764.  
  765. function res()
  766. if w<51 and h<19 then tc() p("NextUI wymaga monitora o rozdzielczosci 51x19 lub wiekszej. System nie moze dzialac na Twoim urzadzeniu. Rozdzielczosc Twojego monitora to:", w, h) elseif w == 51 and h == 19 then tryb = 1 elseif w>65 and h>25 then tryb = 2 end
  767. end
  768.  
  769. function kolor()
  770. local col = fs.open("/os/.kol", "r")
  771. colr = col.readLine()
  772. col.close()
  773. end
  774.  
  775. function ikony()
  776. while true do
  777. tc()
  778. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.green) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.white) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  779. tc()
  780. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.green) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.white) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  781. stc(colors.white)
  782. pfb(1, 1, w, 1, colors.gray)
  783. pdp(w, 1, colors.red)
  784. sbc(colors.gray)
  785. scp(1,1)
  786. p("Tworzenie ikon NextUI 2.0 Beta")
  787. scp(1,2)
  788. stc(colors.white)
  789. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  790. p("Witamy w kreatorze ikon. Wybierz miejsce na ikone:")
  791. if fs.exists("/os/iko/.ico1") then iko1 = "Zajete" else iko1 = "Wolne" end
  792. if fs.exists("/os/iko/.ico2") then iko2 = "Zajete" else iko2 = "Wolne" end
  793. if fs.exists("/os/iko/.ico3") then iko3 = "Zajete" else iko3 = "Wolne" end
  794. scp(1,6)
  795. p("Ikona 1: ", iko1)
  796. p("Ikona 2: ", iko2)
  797. p("Ikona 3: ", iko3)
  798. local event, click, x, y = os.pullEvent("mouse_click")
  799. if x == w and y == 1 then system() end
  800.  
  801. if x>0 and x<20 and y == 6 and iko1 == "Wolne" then
  802.  scp(1,10)
  803.  p("Wpisz sciezke skrotu: ")
  804.  write(".>")
  805.  sciezka = read()
  806.  p("Wpisz nazwe skrotu: ")
  807.  nazwa = read()
  808.  local iko1s = fs.open("/os/iko/.ico1", "w")
  809.  iko1s.writeLine(sciezka)
  810.  iko1s.close()
  811.  local iko1n = fs.open("/os/iko/.ico1n", "w")
  812.  iko1n.writeLine(nazwa)
  813.  iko1n.close()
  814. end
  815. if x>0 and x<20 and y == 8 and iko3 == "Wolne" then
  816.  scp(1,10)
  817.  p("Wpisz sciezke skrotu: ")
  818.  write(".>")
  819.  sciezka = read()
  820.  p("Wpisz nazwe skrotu: ")
  821.  nazwa = read()
  822.  local ikon3 = fs.open("/os/iko/.ico3", "w")
  823.  ikon3.writeLine(sciezka)
  824.  ikon3.close()
  825.  local ikon3n = fs.open("/os/iko/.ico3n", "w")
  826.  ikon3n.writeLine(nazwa)
  827.  ikon3n.close()
  828. end
  829. if x>0 and x<20 and y == 7 and iko2 == "Wolne" then
  830.  scp(1,10)
  831.  p("Wpisz sciezke skrotu: ")
  832.  write(".>")
  833.  sciezka = read()
  834.  p("Wpisz nazwe skrotu: ")
  835.  nazwa = read()
  836.  local ikon2 = fs.open("/os/iko/.ico2", "w")
  837.  ikon2.writeLine(sciezka)
  838.  ikon2.close()
  839.  local ikon2n = fs.open("/os/iko/.ico2n", "w")
  840.  ikon2n.writeLine(nazwa)
  841.  ikon2n.close()
  842. end
  843. if x>0 and x<20 and y == 6 and iko1 == "Zajete" then
  844.  fs.delete("/os/iko/.ico1")
  845.  fs.delete("/os/iko/.ico1n")
  846. end
  847. if x>0 and x<20 and y == 7 and iko2 == "Zajete" then
  848.  fs.delete("/os/iko/.ico2")
  849.  fs.delete("/os/iko/.ico2n")
  850. end
  851. if x>0 and x<20 and y == 8 and iko3 == "Zajete" then
  852.  fs.delete("/os/iko/.ico3")
  853.  fs.delete("/os/iko/.ico3n")
  854. end
  855. end
  856. end
  857.  
  858.  
  859. function start()
  860. if trybres == 0 then
  861. pfb(1, h-5, 20, h-1, colors.black)
  862. scp(1, h-5)
  863. sbc(colors.white)
  864. stc(colors.black)
  865. p("NextUI 1.9 Start    ")
  866. sbc(colors.black)
  867. stc(colors.white)
  868. scp(1, h-4)
  869. p("nextStore 2.0       ")
  870. p("Powrot do CraftOS   ")
  871. p("Ustawienia          ")
  872. p("Ikony biurka        ")
  873. local event, click, x, y = os.pullEvent("mouse_click")
  874. if x>0 and x<21 and y == h-1 then ikony() end
  875. if x>0 and x<21 and y == h-2 then nust() end
  876. if x>0 and x<21 and y == h-3 then
  877.  tc()
  878.  s(1)
  879.  scp(1,1)
  880.  error("Opuszczono NextUI 1.9")
  881. end
  882. if x>0 and x<21 and y == h-4 then nextstore() end
  883. else
  884. pliki()
  885. pfb(1,1,w,h,colors.black)
  886. scp(1,1)
  887. stc(colors.white)
  888. p("NextUI 1.9 Start")
  889. scp(w-30,1)
  890. p("Uzytkownik: ", user)
  891. pfb(1,h-2,3,h,colors.red)
  892. pdp(2,h-2,colors.white)
  893. pdp(1,h-1,colors.white)
  894. pdp(3,h-1,colors.white)
  895. pdp(2,h,colors.white)
  896. pfb(4,h-2,7,h,colors.orange)
  897. pfb(3, 4, 18, 8, colors.orange)
  898. scp(3,6)
  899. stc(colors.white)
  900. p("Ustawienia")
  901. pfb(21, 4, 36, 8, colors.green)
  902. scp(21,6)
  903. stc(colors.white)
  904. p("CraftOS")
  905. pfb(38, 4, 53, 8, colors.cyan)
  906. scp(38,6)
  907. stc(colors.white)
  908. p("Ikony Biurka")
  909. pfb(55, 4, 70, 8, colors.red)
  910. scp(55,6)
  911. stc(colors.white)
  912. p("Edytor")
  913. local event, click, x, y = os.pullEvent("mouse_click")
  914. if x>2 and x<19 and y>3 and y<9 then nust() end
  915. if x>19 and x<36 and y>3 and y<9 then error("Opuszczono NextUI.") end
  916. if x>37 and x<54 and y>3 and y<9 then ikony() end
  917. if x>54 and x<71 and y>3 and y<9 then r("/os/.luaide") end
  918. if x>0 and x<4 and y>h-3 and y<h+1 then su() end
  919. if x>3 and x<7 and y>h-3 and y<h+1 then re() end
  920. end
  921. end
  922. function pulpit()
  923. sbc(colors.cyan)
  924. tc()
  925. sbc(colors.cyan)
  926. local obraz = pul("/os/.pulpit")
  927. pud(obraz, 5, 3)
  928. stc(colors.white)
  929. if colr == "colors.orange" then pfb(1, 1, w, 1, colors.orange) elseif colr == "colors.magneta" then pfb(1, 1, w, 1, colors.magneta) elseif colr == "colors.lightBlue" then pfb(1, 1, w, 1, colors.lightBlue) elseif colr == "colors.yellow" then pfb(1, 1, w, 1, colors.yellow) elseif colr == "colors.lime" then pfb(1, 1, w, 1, colors.lime) elseif colr == "colors.pink" then pfb(1, 1, w, 1, colors.pink) elseif colr == "colors.gray" then pfb(1, 1, w, 1, colors.gray) elseif colr == "colors.lightGray" then pfb(1, 1, w, 1, colors.lightGray) elseif colr == "colors.purple" then pfb(1, 1, w, 1, colors.purple) elseif colr == "colors.blue" then pfb(1, 1, w, 1, colors.blue) elseif colr == "colors.brown" then pfb(1, 1, w, 1, colors.brown) elseif colr == "colors.green" then pfb(1, 1, w, 1, colors.green) elseif colr == "colors.red" then pfb(1, 1, w, 1, colors.red) elseif colr == "colors.black" then pfb(1, 1, w, 1, colors.black) stc(colors.white) elseif colr == "colors.white" then pfb(1, 1, w, 1, colors.white) stc(colors.black) end
  930. if colr == "colors.white" then stc(colors.black) else stc(colors.white) end
  931. scp(1,1)
  932. p("NextUI 1.9 Spring Update")
  933. scp(1,h)
  934. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  935. write("Start")
  936. pfb(6, h, w, h, colors.blue)
  937. scp(w-12,h)
  938. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  939. write("Aplikacje")
  940. pdp(w, h, colors.red)
  941. pdp(w-1, h, colors.orange)
  942. end
  943.  
  944. function getSize(path)
  945.   local size = 0
  946.   for _, file in ipairs(fs.list(path)) do
  947.     if fs.isDir(fs.combine(path, file)) then
  948.       size = size + getSize(fs.combine(path, file))
  949.     else
  950.       size = size + fs.getSize(fs.combine(path, file))
  951.     end
  952.   end
  953.   return size
  954. end
  955.  
  956. function nextstore()
  957. while true do
  958. res()
  959. sbc(colors.white)
  960. tc()
  961. sbc(colors.white)
  962.  
  963. sbc(colors.black)
  964. stc(colors.white)
  965. scp(1,1)
  966. p("Start")
  967. pdp(w,h,colors.red)
  968. pdp(w-1,h,colors.orange)
  969. pfb(1,1,w,1,colors.blue)
  970. scp(1,1)
  971. stc(colors.white)
  972. p("nextStore 2.0")
  973. pdp(w,1, colors.red)
  974. sbc(colors.white)
  975. stc(colors.black)
  976. scp(1,2)
  977. p("Eksplorator")
  978. p("DGStatistics")
  979. p("ReactorControl")
  980. p("TimeMashine")
  981. p("Kalkulator")
  982. scp(1,h-1)
  983. p("Wolne miejsce:")
  984. miejsce = math.ceil(fs.getFreeSpace("/")/1024)
  985. write(fs.getFreeSpace("/")/1024, "KB")
  986. local event, click, x, y = os.pullEvent("mouse_click")
  987. if x>0 and x<16 and y == 2 then ep() end
  988. if x>0 and x<16 and y == 3 then dg() end
  989. if x>0 and x<16 and y == 4 then rc() end
  990. if x>0 and x<16 and y == 5 then tm() end
  991. if x>0 and x<16 and y == 6 then calc() end
  992. if x == w and y == 1 then system() end
  993. pdp(w,1, colors.red)
  994. end
  995. end
  996.  
  997. function mysz()
  998. local event, button, x, y = os.pullEvent("mouse_click")
  999. if x == w and y == h then su() end
  1000. if x == w-1 and y == h then re() end
  1001. if x>0 and x<6 and y == h and button == 1 then start() end
  1002. if x>0 and x<6 and y == h and button == 2 then cmd() end
  1003. if x<w-1 and x>w-13 and y == h then obraz22() end
  1004. end
  1005.  
  1006.  
  1007. function clock()
  1008. while true do
  1009. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  1010. tc()
  1011. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  1012. pfb(1,1,w,1,colors.blue)
  1013. scp(1,1)
  1014. p("Zegar NextUI Beta")
  1015. pdp(w,1,colors.red)
  1016. scp(1,2)
  1017. if fse("/os/.false") then
  1018. clo = "false"
  1019. elseif fse("/os/.true") then clo = "true"
  1020. else
  1021.  local op1 = fs.open("/os/.false", "w")
  1022.  op1.writeLine("false")
  1023.  op1.close()
  1024.  clo = "false"
  1025. end
  1026. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  1027. scp(1,2)
  1028. p("Zmiany tutaj wprowadzone wymagaja ponownego uruchomienia, aby przyniosly oczekiwany efekt.")
  1029. if clo == "false" then scp(1,5) sbc(colors.black) stc(colors.red) p("Wylaczony") elseif clo == "true" then scp(1,5) sbc(colors.black) stc(colors.green) p("Wlaczony") end
  1030. local event, button, x, y = os.pullEvent("mouse_click")
  1031. if x == w and y == 1 then setust() end
  1032. if x>0 and x<20 and y == 5 and clo == "false" then
  1033.  fs.delete("/os/.false")
  1034.  local op2 = fs.open("/os/.true", "w")
  1035.  op2.writeLine("true")
  1036.  op2.close()
  1037.  clock()
  1038. end
  1039. if x>0 and x<20 and y == 5 and clo == "true" then
  1040.  fs.delete("/os/.true")
  1041.  local op3 = fs.open("/os/.false", "w")
  1042.  op3.writeLine("false")
  1043.  op3.close()
  1044.  clock()
  1045. end
  1046. end
  1047. end
  1048.  
  1049. function godz()
  1050. while true do
  1051. scp(w-6,1)
  1052. stc(colors.white)
  1053. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  1054. print( textutils.formatTime(os.time("local"), true ) )
  1055. s(1)
  1056. end
  1057. end
  1058.  
  1059. function z1()
  1060. if fse("/os/.false") then
  1061. clo = "false"
  1062. elseif fse("/os/.true") then clo = "true"
  1063. else
  1064.  local op1 = fs.open("/os/.false", "w")
  1065.  op1.writeLine("false")
  1066.  op1.close()
  1067.  clo = "false"
  1068. end
  1069. end
  1070.  
  1071. function z2()
  1072. if fse("/os/.false") then
  1073. clo = "false"
  1074. elseif fse("/os/.true") then clo = "true"
  1075. else
  1076.  local op1 = fs.open("/os/.false", "w")
  1077.  op1.writeLine("false")
  1078.  op1.close()
  1079.  clo = "false"
  1080. end
  1081. end
  1082.  
  1083.  
  1084. function sys1()
  1085. while true do
  1086. kolor()
  1087. pulpit()
  1088. parallel.waitForAny(godz, mysz)
  1089. end
  1090. end
  1091.  
  1092.  
  1093. function sys2()
  1094. while true do
  1095. kolor()
  1096. pulpit()
  1097. mysz()
  1098. end
  1099. end
  1100.  
  1101. function clo3()
  1102. z1()
  1103. if clo == "true" then
  1104. local function system(...) return sys1(...) end
  1105. elseif clo == "false" or clo == nil then
  1106. local function system(...) return sys2(...) end
  1107. end
  1108. p(clo)
  1109. s(2)
  1110. end
  1111.  
  1112. function system()
  1113. z1()
  1114. if clo == "true" then sys1()
  1115. elseif clo == "false" then sys2()
  1116. end
  1117. end
  1118.  
  1119. function monitor()
  1120. local monitor = peripheral.find("monitor")
  1121. if monitor then
  1122. tc()
  1123. pfb(1,1,w,h,colors.black)
  1124. stc(colors.white)
  1125. scp(1,1)
  1126. p("NextUI wykryl zewnetrzny wyswietlacz, wybierz gdzie wyswietlane ma byc Biurko NextUI.")
  1127. scp(1,3)
  1128. p("Wyswietlacz wewnetrzny")
  1129. scp(1,5)
  1130. p("Monitor")
  1131. end
  1132. end
  1133.  
  1134. function obraz22()
  1135. while true do
  1136. tc()
  1137. sbc(colors.black)
  1138. tc()
  1139. sbc(colors.black)
  1140. pfb(1,1,w,1,colors.blue)
  1141. pfb(1,h,w,h,colors.blue)
  1142. scp(1,h)
  1143. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  1144. write("Start")
  1145. scp(1,1)
  1146. sbc(colors.blue)
  1147. stc(colors.white)
  1148. p("Aplikacje NextUI")
  1149. scp(1,2)
  1150. sbc(colors.black)
  1151. p("Aplikacje      ")
  1152. p("Gry            ")
  1153. p("Sklep          ")
  1154. pfb(16,2,16,h,colors.blue)
  1155. pdp(w,h,colors.red)
  1156. pdp(w-1,h,colors.orange)
  1157. pdp(w,1,colors.red)
  1158. local event, button, x, y = os.pullEvent("mouse_click")
  1159. if x == w and y == 1 then system() end
  1160. if x>0 and x<15 and y == 2 then apps11() end
  1161. if x>0 and x<15 and y == 3 then apps22() end
  1162. if x>0 and x<15 and y == 4 then app() end
  1163. if x>0 and x<6 and y == h then start() end
  1164. end
  1165. end
  1166.  
  1167. function apps11()
  1168. pfb(18,3,20,5,colors.orange)
  1169. scp(18,6)
  1170. sbc(colors.black)
  1171. stc(colors.white)
  1172. p("LuaIDE")
  1173. pfb(25,3,27,5,colors.green)
  1174. scp(25,6)
  1175. sbc(colors.black)
  1176. stc(colors.white)
  1177. p("Paint")
  1178. if fse("/os/iko/.ico1") and fse("/os/iko/.ico1n") then
  1179. local iko1 = fs.open("/os/iko/.ico1", "r")
  1180. iko1p = iko1.readLine()
  1181. iko1.close()
  1182. local iko1n = fs.open("/os/iko/.ico1n", "r")
  1183. iko1pn = iko1n.readLine()
  1184. iko1n.close()
  1185. pfb(17, h-6, 19, h-4, colors.purple)
  1186. scp(17,h-3)
  1187.  if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr ==
  1188.  "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then
  1189.  sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr ==
  1190.  "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then
  1191.  sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr
  1192.  == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr ==
  1193.  "colors.white" then sbc(colors.white) stc(colors.black)  end
  1194. p(iko1pn)
  1195. end
  1196.  
  1197. if fse("/os/iko/.ico2") and fse("/os/iko/.ico2n") then
  1198. local iko2 = fs.open("/os/iko/.ico2", "r")
  1199. iko2p = iko2.readLine()
  1200. iko2.close()
  1201. local iko2n = fs.open("/os/iko/.ico2n", "r")
  1202. iko2pn = iko2n.readLine()
  1203. iko2n.close()
  1204. pfb(28, h-6, 30, h-4, colors.green)
  1205. scp(28,h-3)
  1206.  if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr ==
  1207.  "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then
  1208.  sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr ==
  1209.  "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then
  1210.  sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr
  1211.  == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr ==
  1212.  "colors.white" then sbc(colors.white) stc(colors.black)  end
  1213. p(iko2pn)
  1214. end
  1215.  
  1216. if fse("/os/iko/.ico3") and fse("/os/iko/.ico3n") then
  1217. local iko3 = fs.open("/os/iko/.ico3", "r")
  1218. iko3p = iko3.readLine()
  1219. iko3.close()
  1220. local iko3n = fs.open("/os/iko/.ico3n", "r")
  1221. iko3pn = iko3n.readLine()
  1222. iko3n.close()
  1223. pfb(39, h-6, 41, h-4, colors.orange)
  1224. scp(39,h-3)
  1225.  if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr ==
  1226.  "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then
  1227.  sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr ==
  1228.  "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then
  1229.  sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr
  1230.  == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr ==
  1231.  "colors.white" then sbc(colors.white) stc(colors.black)  end
  1232. p(iko3pn)
  1233. end
  1234. local event, click, x, y = os.pullEvent("mouse_click")
  1235. if x == w and y == 1 then obraz22() end
  1236. if x>17 and x<24 and y>2 and y<7 then r("/os/.luaide") obraz22() end
  1237. if x>24 and x<30 and y>2 and y<7 then r("/os/.paint") obraz22() end
  1238. end
  1239.  
  1240. function apps22()
  1241. pfb(18,3,20,5,colors.cyan)
  1242. scp(18,6)
  1243. sbc(colors.black)
  1244. stc(colors.white)
  1245. p("2048")
  1246. pfb(25,3,27,5,colors.blue)
  1247. scp(25,6)
  1248. sbc(colors.black)
  1249. stc(colors.white)
  1250. p("Snake")
  1251. local event, click, x, y = os.pullEvent("mouse_click")
  1252. if x == w and y == 1 then obraz22() end
  1253. if x>17 and x<24 and y>2 and y<7 then r("/os/.2048") obraz22() end
  1254. if x>24 and x<30 and y>2 and y<7 then r("worm") obraz22() end
  1255. end
  1256.  
  1257. if fse("/os/.19") then
  1258. res()
  1259. system()
  1260. else
  1261. a = fs.open("/os/.19", "w")
  1262. as = a.writeLine("NextUI 1.9")
  1263. a.close()
  1264. s(1)
  1265. tc()
  1266. scp(1,1)
  1267. p("NextUI 1.9 first boot configuration complete.")
  1268. s(1)
  1269. res()
  1270. system()
  1271. end
Add Comment
Please, Sign In to add comment