PolskiWisnia

NextUI 1.86 EM

Mar 6th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  22. function bsodp()
  23. tc()
  24. ac = w/2
  25. scp(ac-2,3)
  26. p("NextUI")
  27. scp(1,6)
  28. 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.")
  29. p("Kod bledu: 0x302525503149")
  30. p("Nazwa bledu: INV_PLA")
  31. system = "NextUI"
  32. kernel = "MineCore"
  33. kod = "0x403535604159"
  34. nazwa = "INV_PLA"
  35. p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/bsodp")
  36. local a = fs.open("/os/bsod/bsodp", "w")
  37. a.writeLine(system)
  38. a.writeLine(kernel)
  39. a.writeLine(kod)
  40. a.writeLine(nazwa)
  41. a.close()
  42. p("Twoj komputer uruchomi sie ponownie za 10 sekund")
  43. s(10)
  44. re()
  45. end
  46.  
  47. function bsodr()
  48. tc()
  49. sbc(colors.blue)
  50. tc()
  51. sbc(colors.blue)
  52. stc(colors.white)
  53. ac = w/2
  54. scp(ac-2,3)
  55. sbc(colors.white)
  56. stc(colors.blue)
  57. p("NextUI")
  58. sbc(colors.blue)
  59. stc(colors.white)
  60. scp(1,6)
  61. 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.")
  62. p("Kod bledu: 0x302525503149")
  63. p("Nazwa bledu: INV_RES")
  64. system = "NextUI"
  65. kernel = "MineCore"
  66. kod = "0x403535604159"
  67. nazwa = "INV_RES"
  68. p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/bsodr")
  69. local a = fs.open("/os/bsod/bsodr", "w")
  70. a.writeLine(system)
  71. a.writeLine(kernel)
  72. a.writeLine(kod)
  73. a.writeLine(nazwa)
  74. a.close()
  75. p("Twoj komputer uruchomi sie ponownie za 10 sekund")
  76. s(10)
  77. re()
  78. end
  79.  
  80. function bsodf()
  81. tc()
  82. sbc(colors.blue)
  83. tc()
  84. sbc(colors.blue)
  85. stc(colors.white)
  86. ac = w/2
  87. scp(ac-2,3)
  88. sbc(colors.white)
  89. stc(colors.blue)
  90. p("NextUI")
  91. sbc(colors.blue)
  92. stc(colors.white)
  93. scp(1,6)
  94. 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.")
  95. p("Kod bledu: 0x302525503149")
  96. p("Nazwa bledu: APP_MSNG")
  97. system = "NextUI"
  98. kernel = "MineCore"
  99. kod = "0x302525503149"
  100. nazwa = "APP_MSNG"
  101. p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/.bsod")
  102. local a = fs.open("/os/bsod/.bsod", "w")
  103. a.writeLine(system)
  104. a.writeLine(kernel)
  105. a.writeLine(kod)
  106. a.writeLine(nazwa)
  107. a.close()
  108. p("Twoj komputer uruchomi sie ponownie za 10 sekund")
  109. s(10)
  110. re()
  111. end
  112.  
  113. if w>99 and h>30 then trybres = 1 else trybres = 0 end
  114. if not term.isColor() then bsodp() end
  115. if w<51 and h<19 then bsodr() end
  116. if pocket then bsodp() end
  117. if turtle then bsodp() end
  118.  
  119. function logobraz()
  120. pfb(1, 1, w, 5, colors.blue)
  121. pfb(1, 6, w, h-5, colors.lightBlue)
  122. pfb(1, h-6, w, h, colors.blue)
  123. pfb(15, 7, 17, 9, colors.gray)
  124. scp(1,1)
  125. p("Logowanie NextUI")
  126. p("Podaj haslo, aby kontynuowac")
  127. end
  128.  
  129. function log()
  130. if pass == "" then system() else
  131. sbc(colors.lightBlue)
  132. stc(colors.white)
  133. scp(18,7)
  134. p(user)
  135. scp(18,8)
  136. write("")
  137. haslo = read()
  138. if haslo == pass then ok = 1 else scp(18,9) stc(colors.red) p("Bledne haslo") s(2) re() end
  139. end
  140. end
  141.  
  142. function pliki()
  143.  local u = fs.open("/os/.log1", "r")
  144.  user = u.readLine(1)
  145.  u.close()
  146.  local h = fs.open("/os/.log2", "r")
  147.  pass = h.readLine(1)
  148.  h.close()
  149. end
  150.  
  151. function logo()
  152. logobraz()
  153. pliki()
  154. log()
  155. end
  156.  
  157. function app()
  158. while true do
  159. 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
  160. tc()
  161. 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
  162. pfb(1, 1, w, 1, colors.blue)
  163. scp(1,1)
  164. stc(colors.white)
  165. p("Aplikacje")
  166. pdp(w,1,colors.red)
  167.  
  168.  
  169. if fs.exists("/nshop/.dg") then
  170.  pfb(15, 4, 15, 6, colors.gray)
  171.  pfb(16, 4, 16, 6, colors.gray)
  172.  pfb(17, 4, 17, 6, colors.lightGray)
  173.  pdp(16, 5, colors.lightGray)
  174.  pdp(17, 5, colors.gray)
  175.  stc(colors.white)
  176. 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
  177.  scp(15,7)
  178.  p("DGStatistics")
  179. end
  180.  
  181.  
  182. if fs.exists("/nshop/.tm") then
  183.  pfb(28, 4, 30, 6, colors.gray)
  184.  pfb(28, 4, 30, 4, colors.lightGray)
  185.  pdp(29,5, colors.lightGray)
  186.  pdp(29,6, colors.lightGray)
  187.   stc(colors.white)
  188. 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
  189.  scp(28,7)
  190.  p("TimeMachine")
  191. end
  192.  
  193. if fs.exists("/nshop/.calc") then
  194.  pfb(2, 8, 4, 8, colors.blue)
  195.  pfb(2, 9, 4, 10, colors.cyan)
  196.  stc(colors.white)
  197.  if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr ==
  198.  "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then
  199.  sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr ==
  200.  "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then
  201.  sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr
  202.  == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr ==
  203.  "colors.white" then sbc(colors.white) stc(colors.black)  end
  204.  scp(2,11)
  205.  p("Kalkulator")
  206. end
  207.  
  208. if fse("/os/iko/.ico1") and fse("/os/iko/.ico1n") then
  209. local iko1 = fs.open("/os/iko/.ico1", "r")
  210. iko1p = iko1.readLine()
  211. iko1.close()
  212. local iko1n = fs.open("/os/iko/.ico1n", "r")
  213. iko1pn = iko1n.readLine()
  214. iko1n.close()
  215. pfb(2, h-6, 4, h-4, colors.purple)
  216. scp(2,h-3)
  217.  if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr ==
  218.  "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then
  219.  sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr ==
  220.  "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then
  221.  sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr
  222.  == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr ==
  223.  "colors.white" then sbc(colors.white) stc(colors.black)  end
  224. p(iko1pn)
  225. end
  226.  
  227. if fse("/os/iko/.ico2") and fse("/os/iko/.ico2n") then
  228. local iko2 = fs.open("/os/iko/.ico2", "r")
  229. iko2p = iko2.readLine()
  230. iko2.close()
  231. local iko2n = fs.open("/os/iko/.ico2n", "r")
  232. iko2pn = iko2n.readLine()
  233. iko2n.close()
  234. pfb(15, h-6, 17, h-4, colors.green)
  235. scp(15,h-3)
  236.  if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr ==
  237.  "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then
  238.  sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr ==
  239.  "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then
  240.  sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr
  241.  == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr ==
  242.  "colors.white" then sbc(colors.white) stc(colors.black)  end
  243. p(iko2pn)
  244. end
  245.  
  246. if fse("/os/iko/.ico3") and fse("/os/iko/.ico3n") then
  247. local iko3 = fs.open("/os/iko/.ico3", "r")
  248. iko3p = iko3.readLine()
  249. iko3.close()
  250. local iko3n = fs.open("/os/iko/.ico3n", "r")
  251. iko3pn = iko3n.readLine()
  252. iko3n.close()
  253. pfb(28, h-6, 30, h-4, colors.orange)
  254. scp(28,h-3)
  255.  if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr ==
  256.  "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then
  257.  sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr ==
  258.  "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then
  259.  sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr
  260.  == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr ==
  261.  "colors.white" then sbc(colors.white) stc(colors.black)  end
  262. p(iko3pn)
  263. end
  264.  
  265. local event, click, x, y = os.pullEvent("mouse_click")
  266. if x>14 and x<18 and y>3 and y<7 and fs.exists("/nshop/.dg") then r("/nshop/.dg") end
  267. if x>27 and x<31 and y>3 and y<7 and fs.exists("/nshop/.tm") then r("/nshop/.tm") end
  268. if x>1 and x<5 and y>7 and y<11 and fs.exists("/nshop/.calc") then r("/nshop/.calc") end
  269. if x>1 and x<5 and y>h-7 and y<h-3 and fse("/os/iko/.ico1") and fse("/os/iko/.ico1n") then r(iko1p) end
  270. if x>14 and x<18 and y>h-7 and y<h-3 and fse("/os/iko/.ico2") and fse("/os/iko/.ico2n") then r(iko2p) end
  271. if x>27 and x<31 and y>h-7 and y<h-3 and fse("/os/iko/.ico3") and fse("/os/iko/.ico3n") then r(iko3p) end
  272. if x == w and y == 1 then system() end
  273. if x == 1 and y == 1 then bsodf() end
  274.  
  275. end
  276. end
  277.  
  278. function apps()
  279. while true do
  280. sbc(colors.black)
  281. tc()
  282. sbc(colors.black)
  283. pfb(6, h, w, h, colors.blue)
  284. sbc(colors.green)
  285. stc(colors.white)
  286. scp(1,h)
  287. 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
  288. aw("Start")
  289. pfb(1, 1, w, 1, colors.blue)
  290. pdp(w, 1, colors.red)
  291. pdp(w-1, h, colors.red)
  292. pdp(w-1, h, colors.orange)
  293. scp(1,1)
  294. sbc(colors.blue)
  295. stc(colors.white)
  296. p("Zarzadzanie aplikacjami")
  297. pfb(3, 3, 5, 3, colors.gray)
  298. pdp(3, 3, colors.lightGray)
  299. scp(6,3)
  300. stc(colors.white)
  301. sbc(colors.black)
  302. miejsce = math.ceil(fs.getFreeSpace("/")/1024)
  303. p("Dysk twardy   Wolne miejsce: ", miejsce, "KB")
  304. scp(1,6)
  305. p("Aplikacje:")
  306. scp(6,8)
  307. stc(colors.white)
  308. sbc(colors.black)
  309. if fs.exists("/nshop/") then rozmiar = math.ceil(getSize("/nshop/")/1024) else
  310. scp(1,7) sbc(colors.black) stc(colors.white) p("Brak zainstalowanych aplikacji") end
  311. scp(1,5)
  312. p("Laczny rozmiar aplikacji na dysku: ", rozmiar, "KB")
  313. 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
  314. 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
  315. 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
  316. 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
  317. local event, click, x, y = os.pullEvent("mouse_click")
  318. if x>0 and x<6 and y == h then start() end
  319. if x == 1 and y == 8 then fs.delete("/nshop/.exp") s(1)  end
  320. if x == 1 and y == 10 then fs.delete("/nshop/.dg") s(1)  end
  321. if x == 1 and y == 12 then fs.delete("/nshop/.tm") s(1)  end
  322. if x == 1 and y == 14 then fs.delete("/nshop/.calc") s(1) end
  323. if x == w and y == 1 then nust() end
  324. end
  325. end
  326.  
  327. function calc()
  328. scp(16,2)
  329. sbc(colors.white)
  330. stc(colors.black)
  331. p("Kalkulator NextUI to prosta")
  332. scp(16,3)
  333. p("aplikacja pozwalajaca na szybsze")
  334. scp(16,4)
  335. p("wykonywanie dzialan matematycznych")
  336. scp(16,10)
  337. p("Wydawca: Microcraft")
  338. pfb(16, h, w, h, colors.blue)
  339. if fs.exists("/nshop/.calc") then
  340.  scp(16,h)
  341.  sbc(colors.blue)
  342.  stc(colors.white)
  343.  write("Usun      Uruchom")
  344.  local event, click, x, y = os.pullEvent("mouse_click")
  345.  if x>15 and x<21 and y == h then fs.delete("/nshop/.calc") end
  346.  if x>25 and x<34 and y == h then r("/nshop/.calc") end
  347. else
  348.  scp(30,h)
  349.  write("Pobierz")
  350.  local event, click, x, y = os.pullEvent("mouse_click")
  351.  if x>29 and x<40 and y == h then
  352.   if pass == "" then r("pastebin get dMjjSaKY /nshop/.calc")
  353.   else
  354.   pfb(10, 5, 30, 9, colors.blue)
  355.   scp(10,5) stc(colors.white)
  356.   p("Wymagana autoryzacja.")
  357.   scp(10,6)
  358.   p("Wpisz haslo:")
  359.   scp(10,7)
  360.   write("")
  361.   haslo = read()
  362.   if haslo == pass then r("pastebin get dMjjSaKY /nshop/.calc")
  363.   end  
  364.   end
  365.   end
  366. end
  367. end
  368.  
  369.  
  370.  
  371. function rc()
  372. scp(16,2)
  373. sbc(colors.white)
  374. stc(colors.black)
  375. p("ReactorControl to aplikacja,")
  376. scp(16,3)
  377. p("stworzona dla latwiejszej")
  378. scp(16,4)
  379. p("kontroli reaktorow z modyfikacji")
  380. scp(16,5)
  381. p("do Minecraft nazwanej BigReactors.")
  382. scp(16,10)
  383. p("Wydawca: Microcraft")
  384. pfb(16, h, w, h, colors.blue)
  385. scp(16,h)
  386. write("Aplikacja nie jest jeszcze dostepna")
  387. local event, click, x, y = os.pullEvent("mouse_click")
  388. end
  389.  
  390.  
  391. function tm()
  392. scp(16,2)
  393. sbc(colors.white)
  394. stc(colors.black)
  395. p("TimeMashine to aplikacja")
  396. scp(16,3)
  397. p("uruchamiajaca starsze wersje")
  398. scp(16,4)
  399. p("MineCore oraz Minedows dzieki")
  400. scp(16,5)
  401. p("NextUI API! Poznaj starsze")
  402. scp(16,6)
  403. p("systemy Microcraft bez zbednego")
  404. scp(16,7)
  405. p("zajmowania miejsca na dysku!")
  406. scp(16,8)
  407. p("Aplikacja stworzona na rocznice")
  408. scp(16,9)
  409. p("wydania MineCore 1.0!")
  410. scp(16,12)
  411. p("Wydawca: Microcraft")
  412. pfb(16, h, w, h, colors.blue)
  413. if fs.exists("/nshop/.tm") then
  414.  scp(16,h)
  415.  sbc(colors.blue)
  416.  stc(colors.white)
  417.  write("Usun      Uruchom")
  418.  local event, click, x, y = os.pullEvent("mouse_click")
  419.  if x>15 and x<21 and y == h then fs.delete("/nshop/.tm") end
  420.  if x>25 and x<34 and y == h then r("/nshop/.tm") end
  421. else
  422.  scp(30,h)
  423.  write("Pobierz")
  424.  local event, click, x, y = os.pullEvent("mouse_click")
  425.  if x>29 and x<40 and y == h then
  426.   if pass == "" then r("pastebin get kCQLpZQS /nshop/.tm")
  427.   else
  428.   pfb(10, 5, 30, 9, colors.blue)
  429.   scp(10,5) stc(colors.white)
  430.   p("Wymagana autoryzacja.")
  431.   scp(10,6)
  432.   p("Wpisz haslo:")
  433.   scp(10,7)
  434.   write("")
  435.   haslo = read()
  436.   if haslo == pass then r("pastebin get kCQLpZQS /nshop/.tm")
  437.   end  
  438.   end
  439.   end
  440. end
  441. end
  442.  
  443.  
  444. function dg()
  445. scp(16,2)
  446. sbc(colors.white)
  447. stc(colors.black)
  448. p("DGStatistics to aplikacja,")
  449. scp(16,3)
  450. p("stworzona we wspolpracy z ")
  451. scp(16,4)
  452. p("serwerem Darkness Grounds ")
  453. scp(16,5)
  454. p("pokazujaca statystyki broni")
  455. scp(16,6)
  456. p("Z ich autorskiej modyfikacji!")
  457. scp(16,7)
  458. p("Pobierz juz dzis!")
  459. scp(16,10)
  460. p("Wydawca: Microcraft;DG")
  461. pfb(16, h, w, h, colors.blue)
  462. scp(16,h)
  463. if fs.exists("/nshop/.dg") then
  464.  scp(16,h)
  465.  sbc(colors.blue)
  466.  stc(colors.white)
  467.  write("Usun      Uruchom")
  468.  local event, click, x, y = os.pullEvent("mouse_click")
  469.  if x>15 and x<21 and y == h then fs.delete("/nshop/.dg") end
  470.  if x>25 and x<34 and y == h then r("/nshop/.dg") end
  471. else
  472.  scp(30,h)
  473.  write("Pobierz")
  474.  local event, click, x, y = os.pullEvent("mouse_click")
  475.  if x>29 and x<40 and y == h then
  476.   if pass == "" then r("pastebin get qRNinxW4 /nshop/.dg")
  477.   else
  478.   pfb(10, 5, 30, 9, colors.blue)
  479.   scp(10,5) stc(colors.white)
  480.   p("Wymagana autoryzacja.")
  481.   scp(10,6)
  482.   p("Wpisz haslo:")
  483.   scp(10,7)
  484.   write("")
  485.   haslo = read()
  486.   if haslo == pass then r("pastebin get qRNinxW4 /nshop/.dg")
  487.   end  
  488.   end
  489.   end
  490. end
  491. end
  492.  
  493. function tm2()
  494. while true do
  495. pfb(1,2,w,h-1)
  496. scp(1,2)
  497. p("TimeMashine")
  498. p("Wydawca: Microcraft")
  499. scp(1,6)
  500. p("TimeMashine pozwala na ponowne odwiedzenie klasycznych systemow Microcraft dzieki NextAPI. Przezyj podroz w przeszlosc, ukazujaca rozwoj Microcraft, od Minedowsa XP Pro 2.3, az po MineCore March Update.")
  501. if not fs.exists("/nshop/.tm") then
  502. pfb(w-15, 14, w-5, 16, colors.green)
  503. stc(colors.white)
  504. scp(w-15,15)
  505. p("Pobierz")
  506. local event, click, x, y = os.pullEvent("mouse_click")
  507. if x>w-14 and x<w-4 and y>13 and y<17 then r("pastebin get kCQLpZQS /nshop/.tm") end
  508. if x == w and y == 1 then nextstore() end
  509. else
  510. pfb(w-15, 14, w-5, 16, colors.green)
  511. stc(colors.white)
  512. scp(w-15,15)
  513. p("Uruchom")
  514. local event, click, x, y = os.pullEvent("mouse_click")
  515. if x>w-14 and x<w-4 and y>13 and y<17 then r("/nshop/.tm") end
  516. if x == w and y == 1 then nextstore() end
  517. end
  518. end
  519. end
  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.8 Embedded Developers Update")
  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. end
  638. if comm == "reboot" then re() end
  639. if comm == "shutdown" then su() end
  640. if comm == "res" then p(w, h) end
  641. if comm == "update" then r("/os/.update") end
  642. if comm == "set" then nust() end
  643. if comm == "app" then app() end
  644. if comm == "dir" then
  645.  write(".Podaj sciezke>")
  646.  dir1 = read()
  647.  r("dir", dir1)
  648. end
  649. if comm == "store" then sklep() end
  650. if comm == "ver" then
  651.  p("Microcraft MineCore 2.0 2020.")
  652.  p("Microcraft MineUI D 1.5 2018.")
  653. end
  654. if comm == "nextver" then
  655.  p("Microcraft NextUI 1.81 EM Developers Update 2020.")
  656. end
  657. if comm == "next" then system() end
  658. if comm == "run" then
  659.  write("Wpisz sciezke pliku: ")
  660.  plik = read()
  661.  if fs.exists(plik) then r(plik) end
  662. end
  663. if comm == "log" then
  664.  write("Wpisz nowe haslo: ")
  665.  passw = read()
  666.  r("rm /os/.log2")
  667.  local pas = fs.open("/os/.log2", "w")
  668.  pass = pas.writeLine(passw)
  669.  pas.close()
  670.  p("Uruchamianie ponownie...")
  671.  s(1)
  672.  re()
  673. end
  674. end
  675. end
  676.  
  677. function setust()
  678. while true do
  679. kolor()
  680. 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
  681. tc()
  682. 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
  683. pfb(1, 1, w, 1, colors.blue)
  684. scp(1,1)
  685. stc(colors.white)
  686. p("Ustawienia NextUI")
  687. pdp(w,1, colors.red)
  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. p("Zmien nazwe komputera")
  690. p("Aktualizuj system")
  691. p("Wiersz polecen")
  692. p("Zmien jezyk")
  693. local event, click, x, y = os.pullEvent("mouse_click")
  694. if x>0 and x<20 and y == 2 then
  695.  scp(1,2)
  696.   write("Wpisz nowa nazwe: ")
  697.   nazwa = read()
  698.   os.setComputerLabel(nazwa)
  699.   setust()
  700. end
  701. if x>0 and x<20 and y == 3 then r("/os/.update") end
  702. if x>0 and x<20 and y == 4 then cmd() end
  703. if x>0 and x<20 and y == 5 then r("pastebin run JQvW06m6") end
  704. if x == w and y == 1 then nust() end
  705. end
  706. end
  707.  
  708.  
  709. function nust()
  710. while true do
  711. 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
  712. tc()
  713. 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
  714. pfb(1, h, w, h, colors.blue)
  715. scp(1,h)
  716. stc(colors.white)
  717. 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
  718. write("Start")
  719. pdp(w-1,h, colors.red)
  720. pdp(w,h, colors.orange)
  721. pfb(1, 1, w, 1, colors.blue)
  722. scp(1,1)
  723. p("Ustawienia NextUI")
  724. pdp(w,1, colors.red)
  725. pfb(3, 4, 13, 6, colors.orange)
  726. scp(3,5)
  727. stc(colors.white)
  728. p("Informacje")
  729. pfb(27, 4, 37, 6, colors.cyan)
  730. scp(27,5)
  731. stc(colors.white)
  732. p("Biurko")
  733. pfb(15, 4, 25, 6, colors.green)
  734. scp(15,5)
  735. stc(colors.white)
  736. p("Ustawienia")
  737. pfb(39, 4, 49, 6, colors.red)
  738. scp(39,5)
  739. stc(colors.white)
  740. p("Aplikacje")
  741. local event, click, x, y = os.pullEvent("mouse_click")
  742. if x == w and y == 1 then system() end
  743. if x>0 and x<6 and y == h then start() end
  744. if x>2 and x<14 and y>3 and y<7 then infust() end
  745. if x>14 and x<26 and y>3 and y<7 then setust() end
  746. if x>26 and x<38 and y>3 and y<7 then deskust() end
  747. if x>38 and x<50 and y>3 and y<7 then apps() end
  748. end
  749. end
  750.  
  751. if fs.exists("/os/.ver") then
  752. local wer = fs.open("/os/.ver", "r")
  753. ver = wer.readLine()
  754. wer.close()
  755. end
  756.  
  757. function res()
  758. 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
  759. end
  760.  
  761. function kolor()
  762. local col = fs.open("/os/.kol", "r")
  763. colr = col.readLine()
  764. col.close()
  765. end
  766.  
  767. function ikony()
  768. while true do
  769. tc()
  770. 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
  771. tc()
  772. 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
  773. stc(colors.white)
  774. pfb(1, 1, w, 1, colors.gray)
  775. pdp(w, 1, colors.red)
  776. sbc(colors.gray)
  777. scp(1,1)
  778. p("Tworzenie ikon NextUI 2.0 Beta")
  779. scp(1,2)
  780. stc(colors.white)
  781. 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
  782. p("Witamy w kreatorze ikon. Wybierz miejsce na ikone:")
  783. if fs.exists("/os/iko/.ico1") then iko1 = "Zajete" else iko1 = "Wolne" end
  784. if fs.exists("/os/iko/.ico2") then iko2 = "Zajete" else iko2 = "Wolne" end
  785. if fs.exists("/os/iko/.ico3") then iko3 = "Zajete" else iko3 = "Wolne" end
  786. scp(1,6)
  787. p("Ikona 1: ", iko1)
  788. p("Ikona 2: ", iko2)
  789. p("Ikona 3: ", iko3)
  790. local event, click, x, y = os.pullEvent("mouse_click")
  791. if x == w and y == 1 then system() end
  792.  
  793. if x>0 and x<20 and y == 6 and iko1 == "Wolne" then
  794.  scp(1,10)
  795.  p("Wpisz sciezke skrotu: ")
  796.  write(".>")
  797.  sciezka = read()
  798.  p("Wpisz nazwe skrotu: ")
  799.  nazwa = read()
  800.  local iko1s = fs.open("/os/iko/.ico1", "w")
  801.  iko1s.writeLine(sciezka)
  802.  iko1s.close()
  803.  local iko1n = fs.open("/os/iko/.ico1n", "w")
  804.  iko1n.writeLine(nazwa)
  805.  iko1n.close()
  806. end
  807. if x>0 and x<20 and y == 8 and iko3 == "Wolne" then
  808.  scp(1,10)
  809.  p("Wpisz sciezke skrotu: ")
  810.  write(".>")
  811.  sciezka = read()
  812.  p("Wpisz nazwe skrotu: ")
  813.  nazwa = read()
  814.  local ikon3 = fs.open("/os/iko/.ico3", "w")
  815.  ikon3.writeLine(sciezka)
  816.  ikon3.close()
  817.  local ikon3n = fs.open("/os/iko/.ico3n", "w")
  818.  ikon3n.writeLine(nazwa)
  819.  ikon3n.close()
  820. end
  821. if x>0 and x<20 and y == 7 and iko2 == "Wolne" then
  822.  scp(1,10)
  823.  p("Wpisz sciezke skrotu: ")
  824.  write(".>")
  825.  sciezka = read()
  826.  p("Wpisz nazwe skrotu: ")
  827.  nazwa = read()
  828.  local ikon2 = fs.open("/os/iko/.ico2", "w")
  829.  ikon2.writeLine(sciezka)
  830.  ikon2.close()
  831.  local ikon2n = fs.open("/os/iko/.ico2n", "w")
  832.  ikon2n.writeLine(nazwa)
  833.  ikon2n.close()
  834. end
  835. if x>0 and x<20 and y == 6 and iko1 == "Zajete" then
  836.  fs.delete("/os/iko/.ico1")
  837.  fs.delete("/os/iko/.ico1n")
  838. end
  839. if x>0 and x<20 and y == 7 and iko2 == "Zajete" then
  840.  fs.delete("/os/iko/.ico2")
  841.  fs.delete("/os/iko/.ico2n")
  842. end
  843. if x>0 and x<20 and y == 8 and iko3 == "Zajete" then
  844.  fs.delete("/os/iko/.ico3")
  845.  fs.delete("/os/iko/.ico3n")
  846. end
  847. end
  848. end
  849.  
  850.  
  851. function start()
  852. pfb(1, h-8, 20, h-1, colors.black)
  853. scp(1, h-8)
  854. sbc(colors.white)
  855. stc(colors.black)
  856. p("NextUI 1.8 EM Start ")
  857. sbc(colors.black)
  858. stc(colors.white)
  859. scp(1, h-7)
  860. p("nextStore 2.0       ")
  861. p("Paint               ")
  862. p("2048                ")
  863. p("Snake               ")
  864. p("Edytor              ")
  865. p("Ustawienia          ")
  866. p("Ikony pulpitu       ")
  867. local event, click, x, y = os.pullEvent("mouse_click")
  868. if x>0 and x<21 and y == h-1 then ikony() end
  869. if x>0 and x<21 and y == h-2 then nust() end
  870. if x>0 and x<21 and y == h-3 then
  871.  if fse("/os/.luaide") then r("/os/.luaide") else bsodf()
  872.  end
  873. end
  874. if x>0 and x<21 and y == h-4 then r("worm") end
  875. if x>0 and x<21 and y == h-5 then r("/os/.2048") end
  876. if x>0 and x<21 and y == h-6 then r("/os/.paint") end
  877. if x>0 and x<21 and y == h-7 then nextstore() end
  878. end
  879. function pulpit()
  880. sbc(colors.cyan)
  881. tc()
  882. sbc(colors.cyan)
  883. local obraz = pul("/os/.pulpit")
  884. pud(obraz, 5, 3)
  885. pfb(1, 1, w, 1, colors.black)
  886. scp(1,1)
  887. stc(colors.white)
  888. if w>=65 then p("Microcraft NextUI 1.86 EmbeddedOS. 2020 ") else p("Microcraft NextUI 1.86 EM") end
  889. scp(1,h)
  890. 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
  891. write("Start")
  892. pfb(6, h, w, h, colors.blue)
  893. scp(w-12,h)
  894. 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
  895. write("Aplikacje")
  896. pdp(w, h, colors.red)
  897. pdp(w-1, h, colors.orange)
  898. end
  899.  
  900. function getSize(path)
  901.   local size = 0
  902.   for _, file in ipairs(fs.list(path)) do
  903.     if fs.isDir(fs.combine(path, file)) then
  904.       size = size + getSize(fs.combine(path, file))
  905.     else
  906.       size = size + fs.getSize(fs.combine(path, file))
  907.     end
  908.   end
  909.   return size
  910. end
  911.  
  912. function nextstore()
  913. while true do
  914. res()
  915. sbc(colors.white)
  916. tc()
  917. sbc(colors.white)
  918.  
  919. sbc(colors.black)
  920. stc(colors.white)
  921. scp(1,1)
  922. p("Start")
  923. pdp(w,h,colors.red)
  924. pdp(w-1,h,colors.orange)
  925. pfb(1,1,w,1,colors.blue)
  926. scp(1,1)
  927. stc(colors.white)
  928. p("nextStore 2.0")
  929. pdp(w,1, colors.red)
  930. sbc(colors.white)
  931. stc(colors.black)
  932. scp(1,2)
  933. p("DGStatistics")
  934. p("ReactorControl")
  935. p("TimeMashine")
  936. p("Kalkulator")
  937. scp(1,h-1)
  938. p("Wolne miejsce:")
  939. miejsce = math.ceil(fs.getFreeSpace("/")/1024)
  940. write(fs.getFreeSpace("/")/1024, "KB")
  941. local event, click, x, y = os.pullEvent("mouse_click")
  942. if x>0 and x<16 and y == 2 then dg() end
  943. if x>0 and x<16 and y == 3 then rc() end
  944. if x>0 and x<16 and y == 4 then tm() end
  945. if x>0 and x<16 and y == 5 then calc() end
  946. if x == w and y == 1 then system() end
  947. pdp(w,1, colors.red)
  948. end
  949. end
  950.  
  951. function mysz()
  952. local event, click, x, y = os.pullEvent("mouse_click")
  953. if x == w and y == h then su() end
  954. if x == w-1 and y == h then re() end
  955. if x>0 and x<6 and y == h then start() end
  956. if x<w-1 and x>w-13 and y == h then app() end
  957. end
  958.  
  959. function godz()
  960. while true do
  961. scp(w-6,1)
  962. sbc(colors.black)
  963. stc(colors.white)
  964. print( textutils.formatTime(os.time("local"), true ) )
  965. s(1)
  966. end
  967. end
  968.  
  969. function system()
  970. while true do
  971. kolor()
  972. pulpit()
  973. parallel.waitForAny(godz, mysz)
  974. end
  975. end
  976.  
  977. --function system()
  978. --while true do
  979. --kolor()
  980. --pulpit()
  981. --mysz()
  982. --end
  983. --end
  984.  
  985. res()
  986. logo()
  987. system()
Add Comment
Please, Sign In to add comment