Advertisement
PolskiWisnia

1.5 Anniversary BETA

Oct 7th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 31.29 KB | None | 0 0
  1.  local function s(...) return sleep(...) end
  2. local function w(...) 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.  
  21.  
  22. function cmd()
  23. if fs.exists("/disk") then dysk = "1"
  24. s(1)
  25. tc()
  26. sbc(colors.black)
  27. tc()
  28. sbc(colors.black)
  29. stc(colors.white)
  30. scp(1,1)
  31. p("MineCore Command Prompt")
  32. p("2018 Microcraft")
  33. p("Wpisz 'help', aby uzyskac pomoc")
  34. while true do
  35. w("./minecore/>")
  36. comm = read()
  37. if comm == "help" then
  38.  p("'ver' - wersja MineCore")
  39.  p("'next' - powrot do NextUI")
  40.  p("'nextver' - wersja NextUI")
  41.  p("'run' - uruchom plik")
  42.  p("'log' - zmiana hasla")
  43.  p("'reboot' - uruchom ponownie")
  44.  p("'shutdown' - wylacz komputer")
  45.  p("'store' - sklep z aplikacjami")
  46.  p("'craft' - powrot do CraftOS")
  47.  p("'update' - aktualizuj NextUI")
  48.  p("'dir' - lista plikow w danym folderze")
  49. end
  50. if comm == "update" then r("/os/.update") end
  51. if comm == "dir" then
  52.  w(".Podaj sciezke>")
  53.  dir1 = read()
  54.  r("dir", dir1)
  55. end
  56. if comm == "store" then sklep() end
  57. if comm == "ver" then
  58.  p("Microcraft MineCore 1.6 2019.")
  59.  p("Microcraft MineUI D 1.0 2018.")
  60. end
  61. if comm == "nextver" then
  62.  p("Microcraft NextUI 1.5 Anniversary Update 2019.")
  63. end
  64. if comm == "next" then system() end
  65. if comm == "run" then
  66.  w("Wpisz sciezke pliku: ")
  67.  plik = read()
  68.  if fs.exists(plik) then r(plik) end
  69. end
  70. if comm == "log" then
  71.  w("Wpisz nowe haslo: ")
  72.  passw = read()
  73.  r("rm /os/.log2")
  74.  local pas = fs.open("/os/.log2", "w")
  75.  pass = pas.writeLine(passw)
  76.  pas.close()
  77.  p("Uruchamianie ponownie...")
  78.  s(1)
  79.  re()
  80. end
  81. if dysk == "1" and comm == "disk" then
  82.  r("dir /disk/")
  83.  w("./minecore/disk/>")
  84.  ap1 = read()
  85.  shell.setDir("/disk/")
  86.  if ap1 == "exit" then cmd() else r("/disk/", ap1) end
  87. end
  88. end
  89. end
  90. end
  91.  
  92.  
  93. function apps()
  94. while true do
  95. sbc(colors.black)
  96. tc()
  97. sbc(colors.black)
  98. pfb(6, 19, 49, 19, colors.blue)
  99. sbc(colors.green)
  100. stc(colors.white)
  101. pdp(51, 1, colors.red)
  102. scp(1,19)
  103. 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
  104. w("Start")
  105. pdp(50,19, colors.red)
  106. pdp(51,19, colors.orange)
  107. pfb(1, 1, 51, 1, colors.blue)
  108. pdp(51, 1, colors.red)
  109. scp(1,1)
  110. sbc(colors.blue)
  111. stc(colors.white)
  112. p("Zarzadzanie aplikacjami")
  113. pfb(3, 3, 5, 3, colors.gray)
  114. pdp(3, 3, colors.lightGray)
  115. scp(6,3)
  116. stc(colors.white)
  117. sbc(colors.black)
  118. miejsce = math.ceil(fs.getFreeSpace("/")/1024)
  119. p("Dysk twardy   Wolne miejsce: ", miejsce, "KB")
  120. scp(1,6)
  121. p("Aplikacje:")
  122. scp(6,8)
  123. stc(colors.white)
  124. sbc(colors.black)
  125. if fs.exists("/nshop/") then rozmiar = math.ceil(getSize("/nshop/")/1024) else
  126. scp(1,7) sbc(colors.black) stc(colors.white) p("Brak zainstalowanych aplikacji") end
  127. scp(1,5)
  128. p("Laczny rozmiar aplikacji na dysku: ", rozmiar, "KB")
  129. 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
  130. 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
  131. 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
  132. local event, click, x, y = os.pullEvent("mouse_click")
  133. if x>0 and x<6 and y == 19 then start() end
  134. if x == 1 and y == 8 then fs.delete("/nshop/.exp") s(1)  end
  135. if x == 1 and y == 10 then fs.delete("/nshop/.dg") s(1)  end
  136. if x == 1 and y == 12 then fs.delete("/nshop/.tm") s(1)  end
  137. if x == 51 and y == 1 then system() end
  138. end
  139. end
  140.  
  141.  
  142. function pol()
  143. pfb(50, 13, 50, 18, colors.white)
  144. pfb(51, 13, 51, 18, colors.red)
  145. end
  146.  
  147.  
  148. function ep()
  149. scp(16,2)
  150. sbc(colors.white)
  151. stc(colors.black)
  152. p("Eksplorator dla NextUI to potezne")
  153. scp(16,3)
  154. p("a zarazem proste narzedzie do")
  155. scp(16,4)
  156. p("przegladania zawartosci dysku")
  157. scp(16,5)
  158. p("twardego. Pobierz za darmo dzisiaj!")
  159. pfb(16, 19, 51, 19, colors.green)
  160. if fs.exists("/nshop/.exp") then
  161.  scp(16,19)
  162.  sbc(colors.green)
  163.  stc(colors.white)
  164.  w("Usun      Uruchom")
  165.  local event, click, x, y = os.pullEvent("mouse_click")
  166.  if x>15 and x<21 and y == 19 then fs.delete("/nshop/.exp") end
  167.  if x>25 and x<34 and y == 19 then r("/nshop/.exp") end
  168. else
  169.  scp(30,19)
  170.  w("Pobierz")
  171.  local event, click, x, y = os.pullEvent("mouse_click")
  172.  if x>29 and x<40 then
  173.   if pass == "" then r("pastebin get zbzF7Zu4 /nshop/.exp")
  174.   else
  175.   pfb(10, 5, 30, 9, colors.blue)
  176.   scp(10,5) stc(colors.white)
  177.   p("Wymagana autoryzacja.")
  178.   scp(10,6)
  179.   p("Wpisz haslo:")
  180.   scp(10,7)
  181.   w("")
  182.   haslo = read()
  183.   if haslo == pass then r("pastebin get zbzF7Zu4 /nshop/.exp")
  184.   end  
  185.   end
  186.   end
  187. end
  188. end
  189.  
  190.  
  191. function rc()
  192. scp(16,2)
  193. sbc(colors.white)
  194. stc(colors.black)
  195. p("ReactorControl to aplikacja,")
  196. scp(16,3)
  197. p("stworzona dla latwiejszej")
  198. scp(16,4)
  199. p("kontroli reaktorow z modyfikacji")
  200. scp(16,5)
  201. p("do Minecraft nazwanej BigReactors.")
  202. scp(16,6)
  203. p("Pobierz juz dzis!")
  204. pfb(16, 19, 51, 19, colors.green)
  205. scp(16,19)
  206. w("Aplikacja nie jest jeszcze dostepna")
  207. local event, click, x, y = os.pullEvent("mouse_click")
  208. end
  209.  
  210.  
  211. function tm()
  212. scp(16,2)
  213. sbc(colors.white)
  214. stc(colors.black)
  215. p("TimeMashine to aplikacja")
  216. scp(16,3)
  217. p("uruchamiajaca starsze wersje")
  218. scp(16,4)
  219. p("MineCore oraz Minedows dzieki")
  220. scp(16,5)
  221. p("NextUI API! Poznaj starsze")
  222. scp(16,6)
  223. p("systemy Microcraft bez zbednego")
  224. scp(16,7)
  225. p("zajmowania miejsca na dysku!")
  226. scp(16,8)
  227. p("Aplikacja stworzona na rocznice")
  228. scp(16,9)
  229. p("wydania MineCore 1.0!")
  230. pfb(16, 19, 51, 19, colors.green)
  231. if fs.exists("/nshop/.tm") then
  232.  scp(16,19)
  233.  sbc(colors.green)
  234.  stc(colors.white)
  235.  w("Usun      Uruchom")
  236.  local event, click, x, y = os.pullEvent("mouse_click")
  237.  if x>15 and x<21 and y == 19 then fs.delete("/nshop/.tm") end
  238.  if x>25 and x<34 and y == 19 then r("/nshop/.tm") end
  239. else
  240.  scp(30,19)
  241.  w("Pobierz")
  242.  local event, click, x, y = os.pullEvent("mouse_click")
  243.  if x>29 and x<40 then
  244.   if pass == "" then r("pastebin get kCQLpZQS /nshop/.tm")
  245.   else
  246.   pfb(10, 5, 30, 9, colors.blue)
  247.   scp(10,5) stc(colors.white)
  248.   p("Wymagana autoryzacja.")
  249.   scp(10,6)
  250.   p("Wpisz haslo:")
  251.   scp(10,7)
  252.   w("")
  253.   haslo = read()
  254.   if haslo == pass then r("pastebin get kCQLpZQS /nshop/.tm")
  255.   end  
  256.   end
  257.   end
  258. end
  259. end
  260.  
  261.  
  262. function dg()
  263. scp(16,2)
  264. sbc(colors.white)
  265. stc(colors.black)
  266. p("DGStatistics to aplikacja,")
  267. scp(16,3)
  268. p("stworzona we wspolpracy z ")
  269. scp(16,4)
  270. p("serwerem Darkness Grounds ")
  271. scp(16,5)
  272. p("pokazujaca statystyki broni")
  273. scp(16,6)
  274. p("Z ich autorskiej modyfikacji!")
  275. scp(16,7)
  276. p("Pobierz juz dzis!")
  277. pfb(16, 19, 51, 19, colors.green)
  278. scp(16,19)
  279. if fs.exists("/nshop/.dg") then
  280.  scp(16,19)
  281.  sbc(colors.green)
  282.  stc(colors.white)
  283.  w("Usun      Uruchom")
  284.  local event, click, x, y = os.pullEvent("mouse_click")
  285.  if x>15 and x<21 and y == 19 then fs.delete("/nshop/.dg") end
  286.  if x>25 and x<34 and y == 19 then r("/nshop/.dg") end
  287. else
  288.  scp(30,19)
  289.  w("Pobierz")
  290.  local event, click, x, y = os.pullEvent("mouse_click")
  291.  if x>29 and x<40 then
  292.   if pass == "" then r("pastebin get qRNinxW4 /nshop/.dg")
  293.   else
  294.   pfb(10, 5, 30, 9, colors.blue)
  295.   scp(10,5) stc(colors.white)
  296.   p("Wymagana autoryzacja.")
  297.   scp(10,6)
  298.   p("Wpisz haslo:")
  299.   scp(10,7)
  300.   w("")
  301.   haslo = read()
  302.   if haslo == pass then r("pastebin get qRNinxW4 /nshop/.dg")
  303.   end  
  304.   end
  305.   end
  306. end
  307. end
  308.  
  309.  
  310. function sklep()
  311. while true do
  312. sbc(colors.white)
  313. tc()
  314. sbc(colors.white)
  315. pfb(1, 1, 51, 1, colors.green)
  316. pfb(15, 1, 15, 19, colors.green)
  317. pdp(51, 1, colors.red)
  318. scp(1,1)
  319. sbc(colors.green)
  320. stc(colors.white)
  321. p("nextShop")
  322. sbc(colors.white)
  323. stc(colors.black)
  324. p("Eksplorator")
  325. p("DGStatistics")
  326. p("ReactorControl")
  327. p("TimeMashine")
  328. scp(1,18)
  329. p("Wolne miejsce:")
  330. miejsce = math.ceil(fs.getFreeSpace("/")/1024)
  331. w(fs.getFreeSpace("/")/1024, "KB")
  332. shell.exit()
  333. local event, click, x, y = os.pullEvent("mouse_click")
  334. if x>0 and x<16 and y == 2 then ep() end
  335. if x>0 and x<16 and y == 3 then dg() end
  336. if x>0 and x<16 and y == 4 then rc() end
  337. if x>0 and x<16 and y == 5 then tm() end
  338. if x == 51 and y == 1 then system() end
  339. end
  340. end
  341.  
  342.  
  343. function shop()
  344. pfb(41, 17, 51, 18, colors.black)
  345. stc(colors.white)
  346. scp(41,17)
  347. p("Sklep")
  348. scp(41,18)
  349. p("Wyczysc")
  350. local event, click, x, y = os.pullEvent("mouse_click")
  351. if x>40 and x<52 and y == 17 then sklep() end
  352. if x>40 and x<52 and y == 18 then fs.delete("/nshop/") end
  353. end
  354.  
  355.  
  356. function dysk()
  357. while true do
  358. 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
  359. scp(13,4)
  360. p("Kiedy w stacji bedzie ")
  361. scp(13,5)
  362. p("kompatybilna dyskietka")
  363. scp(13,6)
  364. p("nacisnij OK           ")
  365. scp(13,7)
  366. p("[OK]                  ")
  367. local event, click, x, y = os.pullEvent("mouse_click")
  368. if x>12 and x<17 and y == 7 and fs.exists("/disk/.nsetup") then r("/disk/.nsetup")
  369. elseif x>12 and x<17 and y == 7 and not fs.exists("/disk/.nsetup") then scp(13,8) stc(colors.white) sbc(colors.red) p("Blad! Nie znaleziono instalatora") s(2) system()
  370. else s(1) system()
  371. end
  372. end
  373. end
  374.  
  375.  
  376. function pierwszeu()
  377. if fs.exists("/os/.log1") and fs.exists("/os/.log2") then logo()
  378. else
  379. tc()
  380. sbc(colors.white)
  381. tc()
  382. sbc(colors.white)
  383. stc(colors.black)
  384. scp(1,1)
  385. p("Konfiguracja NextUI")
  386. p("Witamy w NextUI!")
  387. p("Wpisz nazwe uzytkownika:")
  388. w("")
  389. uzytkownik = read()
  390. p("Wpisz haslo: ")
  391. w("")
  392. haslo = read()
  393. local p = fs.open("/os/.log1", "w")
  394. p.write(uzytkownik)
  395. p.close()
  396. local h = fs.open("/os/.log2", "w")
  397. h.writeLine(haslo)
  398. h.close()
  399. print("Ponowne uruchamianie....")
  400. sleep(1)
  401. os.reboot()
  402. end
  403. end
  404.  
  405.  
  406. function logobraz()
  407. pfb(1, 1, 51, 5, colors.blue)
  408. pfb(1, 6, 51, 14, colors.lightBlue)
  409. pfb(1, 15, 51, 19, colors.blue)
  410. pfb(15, 7, 17, 9, colors.gray)
  411. scp(1,1)
  412. p("Logowanie NextUI")
  413. scp(1,2)
  414. p("Prosze wpisac dwukrotnie haslo.")
  415. end
  416.  
  417.  
  418. function pliki()
  419.  local u = fs.open("/os/.log1", "r")
  420.  user = u.readLine(1)
  421.  u.close()
  422.  local h = fs.open("/os/.log2", "r")
  423.  pass = h.readLine(1)
  424.  h.close()
  425. end
  426.  
  427.  
  428. function log()
  429. if pass == "" then system() else
  430. sbc(colors.lightBlue)
  431. stc(colors.white)
  432. scp(18,7)
  433. p(user)
  434. scp(18,8)
  435. w("")
  436. haslo = read()
  437. if haslo == pass then ok = 1 else scp(18,9) stc(colors.red) p("Bledne haslo") s(2) re() end
  438. end
  439. end
  440.  
  441.  
  442. function logo()
  443. logobraz()
  444. pliki()
  445. log()
  446. end
  447.  
  448.  
  449. function kolor()
  450. local col = fs.open("/os/.kol", "r")
  451. colr = col.readLine(1)
  452. col.close()
  453. end
  454.  
  455.  
  456. function kolorw()
  457. scp(1,8)
  458. 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
  459. p("Obecny kolor wiodacy: ", colr)
  460. p("Wybierz nowy kolor wiodacy:")
  461. pdp(1, 10, colors.orange)
  462. pdp(2, 10, colors.lightBlue)
  463. pdp(3, 10, colors.yellow)
  464. pdp(4, 10, colors.lime)
  465. pdp(5, 10, colors.pink)
  466. pdp(6, 10, colors.gray)
  467. pdp(7, 10, colors.lightGray)
  468. pdp(8, 10, colors.purple)
  469. pdp(9, 10, colors.blue)
  470. pdp(10, 10, colors.brown)
  471. pdp(11, 10, colors.green)
  472. pdp(12, 10, colors.red)
  473. pdp(13, 10, colors.black)
  474. pdp(14,10, colors.white)
  475. local event, click, x, y = os.pullEvent("mouse_click")
  476. if x == 1 and y == 10 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.orange") colw.close() end
  477. if x == 2 and y == 10 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.lightBlue") colw.close() end
  478. if x == 3 and y == 10 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.yellow") colw.close() end
  479. if x == 4 and y == 10 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.lime") colw.close() end
  480. if x == 5 and y == 10 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.pink") colw.close() end
  481. if x == 6 and y == 10 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.gray") colw.close() end
  482. if x == 7 and y == 10 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.lightGray") colw.close() end
  483. if x == 8 and y == 10 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.purple") colw.close() end
  484. if x == 9 and y == 10 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.blue") colw.close() end
  485. if x == 10 and y == 10 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.brown") colw.close() end
  486. if x == 11 and y == 10 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.green") colw.close() end
  487. if x == 12 and y == 10 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.red") colw.close() end
  488. if x == 13 and y == 10 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.black") colw.close() end
  489. if x == 14 and y == 10 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.white") colw.close() end
  490. end
  491.  
  492.  
  493. function getSize(path)
  494.   local size = 0
  495.   for _, file in ipairs(fs.list(path)) do
  496.     if fs.isDir(fs.combine(path, file)) then
  497.       size = size + getSize(fs.combine(path, file))
  498.     else
  499.       size = size + fs.getSize(fs.combine(path, file))
  500.     end
  501.   end
  502.   return size
  503. end
  504.  
  505.  
  506. local wer = fs.open("/os/.ver", "r")
  507. ver = wer.readLine(1)
  508. wer.close()
  509.  
  510.  
  511. function ust()
  512. while true do
  513. kolor()
  514. tc()
  515. 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
  516. tc()
  517. 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
  518. pfb(1, 1, 50, 1, colors.blue)
  519. pdp(51, 1, colors.red)
  520. pol()
  521. sbc(colors.blue)
  522. stc(colors.white)
  523. scp(1,1)
  524. p("Ustawienia")
  525. stc(colors.black)
  526. scp(1,2)
  527. 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
  528. p("Informacje i ustawienia | Pulpit")
  529. local event, click, x, y = os.pullEvent("mouse_click")
  530. if x == 51 and y == 1 then system() end
  531. if x>0 and x<25 and y == 2 then tryb = 1 end
  532. if x>24 and x<33 and y == 2 then tryb = 3 end
  533. scp(1,3)
  534. if tryb == 1 then
  535.  scp(1,3)
  536. 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
  537.  p("MineCore Hybrid OS NextUI")
  538.  p("Wersja systemu: 1.5 Anniversary Update")
  539.  zajete = math.ceil(getSize("/")/1024)
  540.  wolne = math.ceil(fs.getFreeSpace("/")/1024)
  541.  p("Wolne miejsce na dysku:", wolne, "KB")
  542.  print(zajete, "KB uzyte")
  543.  p("[Aktualizacja systemu]")
  544.  p("Jezyk systemu: ", "polski")
  545.  p("Dostepny jezyk: ", "angielski / English")
  546.  p("Zmien jezyk")
  547.  p("Wiersz polecen")
  548.  p("Logowanie wlaczone: ")
  549.  if pass == "" then print("Nie") else print("Tak") end
  550.  p("Obecna nazwa komputera: ", os.getComputerLabel())
  551.  p("Zmien nazwe komptutera")
  552.  local event, click, x, y = os.pullEvent("mouse_click")
  553.  if x>0 and x<20 and y == 7 then r("/os/.update") end
  554.  if x>0 and x<20 and y == 10 then r("pastebin run JQvW06m6") end
  555.  if x>0 and x<20 and y == 11 then cmd() end
  556.  if x>0 and x<20 and y == 15 then
  557.   scp(1,16)
  558.   w("Wpisz nowa nazwe: ")
  559.   nazwa = read()
  560.   os.setComputerLabel(nazwa)
  561.   end
  562. end
  563. if tryb == 2 then
  564.  scp(1,3)
  565. 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
  566.  p("Logowanie wlaczone: ")
  567.  if pass == "" then print("Nie") else print("Tak") end
  568.  p("Zmien nazwe komptutera")
  569.  local event, click, x, y = os.pullEvent("mouse_click")
  570.  if x>0 and x<51 and y == 5 then
  571.   scp(1,6)
  572.   w("Wpisz nowa nazwe: ")
  573.   nazwa = read()
  574.   os.setComputerLabel(nazwa)
  575.   end
  576. end
  577. if tryb == 3 then
  578. 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
  579.  scp(1,3)
  580.  p("Styl graficzny: Domyslny NextUI")
  581.  p("Brak dostepnych stylow")
  582.  p("Wybierz kolor wiodacy")
  583.  local event, click, x, y = os.pullEvent("mouse_click")
  584.  if x>0 and x<25 and y == 5 then kolorw() end
  585. end
  586. end
  587. end
  588.  
  589.  
  590. function ikony()
  591. tc()
  592. 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
  593. tc()
  594. 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
  595. stc(colors.white)
  596. pfb(1, 1, 51, 1, colors.gray)
  597. pdp(51, 1, colors.red)
  598. sbc(colors.gray)
  599. scp(1,1)
  600. p("Tworzenie ikon NextUI")
  601. scp(1,2)
  602. stc(colors.white)
  603. 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
  604. p("Witamy w kreatorze ikon. Wybierz miejsce na ikone:")
  605. if fs.exists("/os/iko/.ico1") then iko1 = "Zajete" else iko1 = "Wolne" end
  606. if fs.exists("/os/iko/.ico2") then iko2 = "Zajete" else iko2 = "Wolne" end
  607. if fs.exists("/os/iko/.ico3") then iko3 = "Zajete" else iko3 = "Wolne" end
  608. if fs.exists("/os/iko/.ico4") then iko4 = "Zajete" else iko4 = "Wolne" end
  609. if fs.exists("/os/iko/.ico5") then iko5 = "Zajete" else iko5 = "Wolne" end
  610. if fs.exists("/os/iko/.ico6") then iko6 = "Zajete" else iko6 = "Wolne" end
  611. if fs.exists("/os/iko/.ico7") then iko7 = "Zajete" else iko7 = "Wolne" end
  612. if fs.exists("/os/iko/.ico8") then iko8 = "Zajete" else iko8 = "Wolne" end
  613. if iko1 == "Wolne" then pfb(1, 7, 2, 8, colors.lime) else pfb(1, 7, 2, 8, colors.red) end
  614. if iko2 == "Wolne" then pfb(4, 7, 5, 8, colors.lime) else pfb(4, 7, 5, 8, colors.red) end
  615. if iko3 == "Wolne" then pfb(7, 7, 8, 8, colors.lime) else pfb(7, 7, 8, 8, colors.red) end
  616. if iko4 == "Wolne" then pfb(10, 7, 11, 8, colors.lime) else pfb(10, 7, 11, 8, colors.red) end
  617. if iko5 == "Wolne" then pfb(13, 7, 14, 8, colors.lime) else pfb(13, 7, 14, 8, colors.red) end
  618. if iko6 == "Wolne" then pfb(16, 7, 17, 8, colors.lime) else pfb(16, 7, 17, 8, colors.red) end
  619. if iko7 == "Wolne" then pfb(19, 7, 20, 8, colors.lime) else pfb(19, 7, 20, 8, colors.red) end
  620. if iko8 == "Wolne" then pfb(22, 7, 23, 8, colors.lime) else pfb(22, 7, 23, 8, colors.red) end
  621. local event, click, x, y = os.pullEvent("mouse_click")
  622. if x == 51 and y == 1 then system() end
  623. if x>0 and x<3 and y>6 and y<9 and iko1 == "Zajete" then
  624.  r("rm /os/iko/.ico1")
  625.  system()
  626. end
  627. if x>3 and x<6 and y>6 and y<9 and iko2 == "Zajete" then
  628.  r("rm /os/iko/.ico2")
  629.  system()
  630. end
  631. if x>6 and x<9 and y>6 and y<9 and iko3 == "Zajete" then
  632.  r("rm /os/iko/.ico3")
  633.  system()
  634. end
  635. if x>9 and x<12 and y>6 and y<9 and iko4 == "Zajete" then
  636.  r("rm /os/iko/.ico4")
  637.  system()
  638. end
  639. if x>12 and x<15 and y>6 and y<9 and iko5 == "Zajete" then
  640.  r("rm /os/iko/.ico5")
  641.  system()
  642. end
  643. if x>15 and x<18 and y>6 and y<9 and iko6 == "Zajete" then
  644.  r("rm /os/iko/.ico6")
  645.  system()
  646. end
  647. if x>18 and x<21 and y>6 and y<9 and iko7 == "Zajete" then
  648.  r("rm /os/iko/.ico7")
  649.  system()
  650. end
  651. if x>21 and x<24 and y>6 and y<9 and iko8 == "Zajete" then
  652.  r("rm /os/iko/.ico8")
  653.  system()
  654. end
  655. scp(1,10)
  656. 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
  657. w("Wpisz sciezkie do pliku: ")
  658. sciezka = read()
  659. if x>0 and x<3 and y>6 and y<9 and iko1 == "Wolne" then
  660.  local ikon1 = fs.open("/os/iko/.ico1", "w")
  661.  ikon1.writeLine(sciezka)
  662.  ikon1.close()
  663. end
  664. if x>3 and x<6 and y>6 and y<9 and iko2 == "Wolne" then
  665.  local ikon2 = fs.open("/os/iko/.ico2", "w")
  666.  ikon2.writeLine(sciezka)
  667.  ikon2.close()
  668. end
  669. if x>6 and x<8 and y>6 and y<9 and iko3 == "Wolne" then
  670.  local ikon3 = fs.open("/os/iko/.ico3", "w")
  671.  ikon3.writeLine(sciezka)
  672.  ikon3.close()
  673. end
  674. if x>9 and x<12 and y>6 and y<9 and iko4 == "Wolne" then
  675.  local ikon4 = fs.open("/os/iko/.ico4", "w")
  676.  ikon4.writeLine(sciezka)
  677.  ikon4.close()
  678. end
  679. if x>12 and x<15 and y>6 and y<9 and iko5 == "Wolne" then
  680.  local ikon5 = fs.open("/os/iko/.ico5", "w")
  681.  ikon5.writeLine(sciezka)
  682.  ikon5.close()
  683. end
  684. if x>15 and x<18 and y>6 and y<9 and iko6 == "Wolne" then
  685.  local ikon6 = fs.open("/os/iko/.ico6", "w")
  686.  ikon6.writeLine(sciezka)
  687.  ikon6.close()
  688. end
  689. if x>18 and x<21 and y>6 and y<9 and iko7 == "Wolne" then
  690.  local ikon7 = fs.open("/os/iko/.ico7", "w")
  691.  ikon7.writeLine(sciezka)
  692.  ikon7.close()
  693. end
  694. if x>21 and x<24 and y>6 and y<9 and iko8 == "Wolne" then
  695.  local ikon8 = fs.open("/os/iko/.ico8", "w")
  696.  ikon8.writeLine(sciezka)
  697.  ikon8.close()
  698. end
  699. end
  700.  
  701.  
  702. function pulpit()
  703. local obraz = pul("/os/.pulpit")
  704. pud(obraz, 1, 1)
  705. kolor()
  706. pol()
  707. scp(1,19)
  708. stc(colors.white)
  709. 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
  710. w("Start")
  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) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  712. scp(1,1)
  713. p("NextUI 1.5 Anniversary Update. Microcraft          ")
  714. scp(41,19)
  715. w("nextShop")
  716. scp(20,19)
  717. w("Aplikacje")
  718. if fs.exists("/nshop/.exp") then
  719.  scp(5,18)
  720.  sbc(colors.cyan)
  721.  p("Eksplorator")
  722.  pfb(5, 15, 7, 17, colors.orange)
  723. end
  724. if fs.exists("/nshop/.dg") then
  725.  scp(20,18)
  726.  sbc(colors.cyan)
  727.  p("DGStatistics")
  728.  pfb(20, 16, 22, 16, colors.gray)
  729.  pfb(20, 15, 22, 15, colors.gray)
  730.  pfb(20, 17, 22, 17, colors.gray)
  731.  pdp(21, 16, colors.lightGray)
  732.  pdp(22, 15, colors.lightGray)
  733.  pdp(22, 17, colors.lightGray)
  734. end
  735. if fs.exists("/nshop/.tm") then
  736.  scp(33,18)
  737.  sbc(colors.cyan)
  738.  p("TimeMashine")
  739.  pfb(33, 15, 35, 17, colors.lime)
  740. end
  741. if fs.exists("/os/iko/.ico1") then
  742.  local i1 = fs.open("/os/iko/.ico1", "r")
  743.  ii1 = i1.readLine(1)
  744.  i1.close()
  745.  pfb(44, 2, 46, 3, colors.purple)
  746. end
  747. if fs.exists("/os/iko/.ico2") then
  748.  local i2 = fs.open("/os/iko/.ico2", "r")
  749.  ii2 = i2.readLine(1)
  750.  i2.close()
  751.  pfb(44, 5, 46, 6, colors.orange)
  752. end
  753. if fs.exists("/os/iko/.ico3") then
  754.  local i3 = fs.open("/os/iko/.ico3", "r")
  755.  ii3 = i3.readLine(1)
  756.  i3.close()
  757.  pfb(44, 8, 46, 9, colors.red)
  758. end
  759. if fs.exists("/os/iko/.ico4") then
  760.  local i4 = fs.open("/os/iko/.ico4", "r")
  761.  ii1 = i4.readLine(1)
  762.  i4.close()
  763.  pfb(44, 11, 46, 12, colors.yellow)
  764. end
  765. if fs.exists("/os/iko/.ico5") then
  766.  local i5 = fs.open("/os/iko/.ico5", "r")
  767.  ii5 = i5.readLine(1)
  768.  i5.close()
  769.  pfb(49, 2, 51, 3, colors.green)
  770. end
  771. if fs.exists("/os/iko/.ico6") then
  772.  local i6 = fs.open("/os/iko/.ico6", "r")
  773.  ii6 = i6.readLine(1)
  774.  i6.close()
  775.  pfb(49, 5, 51, 6, colors.lime)
  776. end
  777. if fs.exists("/os/iko/.ico7") then
  778.  local i7 = fs.open("/os/iko/.ico7", "r")
  779.  ii7 = i7.readLine(1)
  780.  i7.close()
  781.  pfb(49, 8, 51, 9, colors.lightBlue)
  782. end
  783. if fs.exists("/os/iko/.ico8") then
  784.  local i8 = fs.open("/os/iko/.ico8", "r")
  785.  ii8 = i8.readLine(1)
  786.  i8.close()
  787.  pfb(49, 11, 51, 12, colors.blue)
  788. end
  789. end
  790.  
  791.  
  792. function start()
  793. pfb(1, 11, 20, 18, colors.white)
  794. scp(1,10)
  795. stc(colors.white)
  796. 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.white) stc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  797. p("NextUI Start        ")
  798. scp(1,11)
  799. if colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.black) stc(colors.white) else sbc(colors.white) stc(colors.black) end
  800. p("Zainstaluj z dysku  ")
  801. p("Paint               ")
  802. p("2048                ")
  803. p("Snake               ")
  804. p("Edytor              ")
  805. p("Powrot do CraftOS   ")
  806. p("Ustawienia          ")
  807. p("Ikony pulpitu       ")
  808. local event, click, x, y = os.pullEvent("mouse_click")
  809. if x>0 and x<21 and y == 11 then dysk() end
  810. if x>0 and x<21 and y == 18 then ikony() end
  811. if x>0 and x<21 and y == 16 then error() end
  812. if x>0 and x<21 and y == 14 then sbc(colors.black) r("worm") end
  813. if x>0 and x<21 and y == 12 then r("/os/.paint") end
  814. if x>0 and x<21 and y == 17 then ust() end
  815. if x>0 and x<21 and y == 13 then r("/os/.2048") end
  816. if x>0 and x<21 and y == 15 then r("/os/.luaide") end
  817. if x == 20 and y == 10 then system() end
  818. end
  819.  
  820. function mysz()
  821. local event, click, x, y = os.pullEvent("mouse_click")
  822. if x>20 and x<38 and y == 19 then apps() end
  823. if x == 50 and y == 19 then su() end
  824. if x == 51 and y == 19 then re() end
  825. if x>43 and x<47 and y>1 and y<4 and fs.exists("/os/iko/.ico1") then r(ii1) end
  826. if x>43 and x<47 and y>4 and y<7 and fs.exists("/os/iko/.ico2") then r(ii2) end
  827. if x>43 and x<47 and y>7 and y<10 and fs.exists("/os/iko/.ico3") then r(ii3) end
  828. if x>43 and x<47 and y>10 and y<13 and fs.exists("/os/iko/.ico4") then r(ii4) end
  829. if x>47 and x<52 and y>1 and y<4 and fs.exists("/os/iko/.ico5") then r(ii5) end
  830. if x>43 and x<47 and y>4 and y<7 and fs.exists("/os/iko/.ico6") then r(ii6) end
  831. if x>43 and x<47 and y>7 and y<10 and fs.exists("/os/iko/.ico7") then r(ii7) end
  832. if x>43 and x<47 and y>10 and y<13 and fs.exists("/os/iko/.ico8") then r(ii8) end
  833. if x>39 and x<49 and y == 19 then shop() end
  834. if x>0 and x<6 and y == 19 then start() end
  835. if fs.exists("/nshop/.exp") and x>4 and x<8 and y>14 and y<19 then r("/nshop/.exp") end
  836. if fs.exists("/nshop/.dg") and x>19 and x<23 and y>14 and y<19 then r("/nshop/.dg") end
  837. if fs.exists("/nshop/.dg") and x>32 and x<35 and y>14 and y<19 then r("/nshop/.tm") end
  838. end
  839.  
  840.  
  841. function system()
  842. while true do
  843. kolor()
  844. pulpit()
  845. mysz()
  846. end
  847. end
  848.  
  849.  
  850. pierwszeu()
  851.  
  852. logo()
  853.  
  854. system()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement