PolskiWisnia

NextUI 1.8 OS Final BACKUP

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