Advertisement
PolskiWisnia

NextUI Menu

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