Advertisement
PolskiWisnia

English NextUI

Aug 2nd, 2019
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 28.82 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 tapetaust()
  31. local tapust = fs.open("/os/.tapus", "r")
  32. tapust1 = tapust.readLine()
  33. tapust.close()
  34. if tapust1 == "default" then
  35.  sbc(colors.gray)
  36.  stc(colors.white)
  37.  scp(1,9)
  38.  p("NextUI")
  39.  scp(9,9)
  40.  sbc(colors.lightGray)
  41.  p("Prosta")
  42.  scp(16,9)
  43.  p("Wlasna")
  44.  local event, click, x, y = os.pullEvent("mouse_click")
  45.  if x>8 and x<15 and y == 9 then
  46.   fs.delete("/os/.pulpit")
  47.   fs.delete("/os/.tapus")
  48.   r("pastebin get vwG8AryW /os/.pulpit")
  49.   r("pastebin get uTedutxS /os/.tapus")
  50.   s(1)
  51.   system()
  52.  end
  53.  if x>15 and x<23 and y == 9 then cus() end
  54. end
  55. if tapust1 == "custom" then
  56.  stc(colors.white)
  57.  sbc(colors.lightGray)
  58.  scp(1,9)
  59.  p("NextUI")
  60.  scp(9,9)
  61.  p("Prosta")
  62.  sbc(colors.gray)
  63.  scp(16,9)
  64.  p("Wlasna")
  65.  local event, click, x, y = os.pullEvent("mouse_click")
  66.  if x>8 and x<15 and y == 9 then
  67.   fs.delete("/os/.pulpit")
  68.   fs.delete("/os/.tapus")
  69.   r("pastebin get vwG8AryW /os/.pulpit")
  70.   r("pastebin get uTedutxS /os/.tapus")
  71.   s(1)
  72.   system()
  73.  end
  74.  if x>0 and x<9 and y == 9 then
  75.   fs.delete("/os/.pulpit")
  76.   fs.delete("/os/.tapus")
  77.   r("pastebin get KCNCwuj3 /os/.pulpit")
  78.   r("pastebin get DxMvUVHx /os/.tapus")
  79.   s(1)
  80.   system()
  81.  end
  82. end
  83. if tapust1 == "simple" then
  84.  sbc(colors.lightGray)
  85.  stc(colors.white)
  86.  scp(1,9)
  87.  p("NextUI")
  88.  sbc(colors.gray)
  89.  scp(9,9)
  90.  p("Prosta")
  91.  sbc(colors.lightGray)
  92.  scp(16,9)
  93.  p("Wlasna")
  94.  local event, click, x, y = os.pullEvent("mouse_click")
  95.  if x>0 and x<9 and y == 9 then
  96.   fs.delete("/os/.pulpit")
  97.   fs.delete("/os/.tapus")
  98.   r("pastebin get KCNCwuj3 /os/.pulpit")
  99.   r("pastebin get DxMvUVHx /os/.tapus")
  100.   s(1)
  101.   system()
  102.  end
  103.  if x>15 and x<23 and y == 9 then cus() end
  104. end
  105. end
  106. function cmd()
  107. s(1)
  108. tc()
  109. sbc(colors.black)
  110. tc()
  111. sbc(colors.black)
  112. stc(colors.white)
  113. scp(1,1)
  114. p("MineCore Command Prompt")
  115. p("2018 Microcraft")
  116. p("Type 'help', to get list of commands")
  117. while true do
  118. w("./minecore/>")
  119. comm = read()
  120. if comm == "help" then
  121.  p("'ver' - MineCore version")
  122.  p("'next' - return to NextUI")
  123.  p("'nextver' - NextUI version")
  124.  p("'run' - run a file")
  125.  p("'log' - change password")
  126.  p("'reboot' - reboot")
  127.  p("'shutdown' - shutdown")
  128.  p("'craft' - go to CraftOS")
  129.  p("'update' - update NextUI")
  130. end
  131. if comm == "reboot" then re() end
  132. if comm == "shutdown" then su() end
  133. if comm == "update" then r("/os/.update") end
  134. if comm == "store" then sklep() end
  135. if comm == "ver" then
  136.  p("Microcraft MineCore 1.65 2020.")
  137.  p("Microcraft MineUI D 1.0 2018.")
  138. end
  139. if comm == "nextver" then
  140.  p("Microcraft NextUI 1.75 2nd UI Update 2020.")
  141. end
  142. if comm == "next" then system() end
  143. if comm == "run" then
  144.  w("Wpisz sciezke pliku: ")
  145.  plik = read()
  146.  if fs.exists(plik) then r(plik) end
  147. end
  148. if comm == "log" then
  149.  w("Wpisz nowe haslo: ")
  150.  passw = read()
  151.  r("rm /os/.log2")
  152.  local pas = fs.open("/os/.log2", "w")
  153.  pass = pas.writeLine(passw)
  154.  pas.close()
  155.  p("Uruchamianie ponownie...")
  156.  s(1)
  157.  re()
  158. end
  159. end
  160. end
  161.  
  162. function pierwszeu2()
  163. if fs.exists("/os/.log1") and fs.exists("/os/.log2") and fs.exists("/os/.tapus") then logo()
  164. else
  165. while true do
  166. tc()
  167. sbc(colors.white)
  168. tc()
  169. sbc(colors.white)
  170. stc(colors.black)
  171. scp(1,1)
  172. p("NextUI Configuration      Step 2/2")
  173. p("Welcome to NextUI!")
  174. p("Choose your desktop wallpaper.")
  175. p("NextUI | Simple")
  176. local event, click, x, y = os.pullEvent("mouse_click")
  177. if x>0 and x<8 and y == 4 then
  178.   fs.delete("/os/.pulpit")
  179.   fs.delete("/os/.tapus")
  180.   r("pastebin get KCNCwuj3 /os/.pulpit")
  181.   r("pastebin get DxMvUVHx /os/.tapus")
  182.   p("You completed NextUI configuration.")
  183.   s(1)
  184.   system()
  185. end
  186. if x>8 and x<16 and y == 5 then
  187.   fs.delete("/os/.pulpit")
  188.   fs.delete("/os/.tapus")
  189.   r("pastebin get vwG8AryW /os/.pulpit")
  190.   r("pastebin get uTedutxS /os/.tapus")
  191.   p("You completed NextUI configuration.")
  192.   s(1)
  193.   system()
  194. end
  195. end
  196. end
  197. end
  198.  
  199.  
  200. function pierwszeu()
  201. if fs.exists("/os/.log1") and fs.exists("/os/.log2") then pierwszeu2()
  202. else
  203. tc()
  204. sbc(colors.white)
  205. tc()
  206. sbc(colors.white)
  207. stc(colors.black)
  208. scp(1,1)
  209. p("NextUI Configuration      Step 1/2")
  210. p("Welcome to NextUI!")
  211. p("Enter your username:")
  212. w("")
  213. uzytkownik = read()
  214. p("Enter your password: ")
  215. w("")
  216. haslo = read()
  217. local p = fs.open("/os/.log1", "w")
  218. p.write(uzytkownik)
  219. p.close()
  220. local h = fs.open("/os/.log2", "w")
  221. h.writeLine(haslo)
  222. h.close()
  223. print("Ponowne uruchamianie....")
  224. sleep(1)
  225. pierwszeu2()
  226. end
  227. end
  228.  
  229.  
  230. function logobraz()
  231. pfb(1, 1, 51, 5, colors.blue)
  232. pfb(1, 6, 51, 14, colors.lightBlue)
  233. pfb(1, 15, 51, 19, colors.blue)
  234. pfb(15, 7, 17, 9, colors.gray)
  235. scp(1,1)
  236. p("NextUI")
  237. scp(1,2)
  238. p("Please enter your password twice.")
  239. end
  240.  
  241.  
  242. function pliki()
  243.  local u = fs.open("/os/.log1", "r")
  244.  user = u.readLine()
  245.  u.close()
  246.  local h = fs.open("/os/.log2", "r")
  247.  pass = h.readLine()
  248.  h.close()
  249. end
  250.  
  251.  
  252. function log()
  253. if pass == "" then system() else
  254. sbc(colors.lightBlue)
  255. stc(colors.white)
  256. scp(18,7)
  257. p(user)
  258. scp(18,8)
  259. w("")
  260. haslo = read()
  261. if haslo == pass then ok = 1 else scp(18,9) stc(colors.red) p("Bledne haslo") s(2) re() end
  262. end
  263. end
  264.  
  265.  
  266. function logo()
  267. logobraz()
  268. pliki()
  269. log()
  270. end
  271.  
  272.  
  273. function kolor()
  274. local col = fs.open("/os/.kol", "r")
  275. colr = col.readLine()
  276. col.close()
  277. end
  278.  
  279.  
  280. function kolorw()
  281. scp(1,5)
  282. 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
  283. p("Main OS color: ", colr)
  284. p("Choose new main OS color:")
  285. pdp(1, 7, colors.orange)
  286. pdp(2, 7, colors.lightBlue)
  287. pdp(3, 7, colors.yellow)
  288. pdp(4, 7, colors.lime)
  289. pdp(5, 7, colors.pink)
  290. pdp(6, 7, colors.gray)
  291. pdp(7, 7, colors.lightGray)
  292. pdp(8, 7, colors.purple)
  293. pdp(9, 7, colors.blue)
  294. pdp(10, 7, colors.brown)
  295. pdp(11, 7, colors.green)
  296. pdp(12, 7, colors.red)
  297. pdp(13, 7, colors.black)
  298. pdp(14, 7, colors.white)
  299. local event, click, x, y = os.pullEvent("mouse_click")
  300. 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
  301. 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
  302. 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
  303. 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
  304. 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
  305. 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
  306. 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
  307. 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
  308. 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
  309. 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
  310. 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
  311. 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
  312. 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
  313. 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
  314. end
  315.  
  316.  
  317. function getSize(path)
  318.   local size = 0
  319.   for _, file in ipairs(fs.list(path)) do
  320.     if fs.isDir(fs.combine(path, file)) then
  321.       size = size + getSize(fs.combine(path, file))
  322.     else
  323.       size = size + fs.getSize(fs.combine(path, file))
  324.     end
  325.   end
  326.   return size
  327. end
  328.  
  329.  
  330. local wer = fs.open("/os/.ver", "r")
  331. ver = wer.readLine()
  332. wer.close()
  333.  
  334. function ikony()
  335. tc()
  336. 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
  337. tc()
  338. 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
  339. stc(colors.white)
  340. pfb(1, 1, 51, 1, colors.gray)
  341. pdp(51, 1, colors.red)
  342. sbc(colors.gray)
  343. scp(1,1)
  344. p("NextUI Shortcuts Creator")
  345. scp(1,2)
  346. stc(colors.white)
  347. 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
  348. p("Welcome to the shortcuts creator. Please select icon:")
  349. if fs.exists("/os/iko/.ico1") then iko1 = "Zajete" else iko1 = "Wolne" end
  350. if fs.exists("/os/iko/.ico2") then iko2 = "Zajete" else iko2 = "Wolne" end
  351. if fs.exists("/os/iko/.ico3") then iko3 = "Zajete" else iko3 = "Wolne" end
  352. if fs.exists("/os/iko/.ico4") then iko4 = "Zajete" else iko4 = "Wolne" end
  353. if fs.exists("/os/iko/.ico5") then iko5 = "Zajete" else iko5 = "Wolne" end
  354. if fs.exists("/os/iko/.ico6") then iko6 = "Zajete" else iko6 = "Wolne" end
  355. if fs.exists("/os/iko/.ico7") then iko7 = "Zajete" else iko7 = "Wolne" end
  356. if fs.exists("/os/iko/.ico8") then iko8 = "Zajete" else iko8 = "Wolne" end
  357. if iko1 == "Wolne" then pfb(1, 7, 2, 8, colors.lime) else pfb(1, 7, 2, 8, colors.red) end
  358. if iko2 == "Wolne" then pfb(4, 7, 5, 8, colors.lime) else pfb(4, 7, 5, 8, colors.red) end
  359. if iko3 == "Wolne" then pfb(7, 7, 8, 8, colors.lime) else pfb(7, 7, 8, 8, colors.red) end
  360. if iko4 == "Wolne" then pfb(10, 7, 11, 8, colors.lime) else pfb(10, 7, 11, 8, colors.red) end
  361. if iko5 == "Wolne" then pfb(13, 7, 14, 8, colors.lime) else pfb(13, 7, 14, 8, colors.red) end
  362. if iko6 == "Wolne" then pfb(16, 7, 17, 8, colors.lime) else pfb(16, 7, 17, 8, colors.red) end
  363. if iko7 == "Wolne" then pfb(19, 7, 20, 8, colors.lime) else pfb(19, 7, 20, 8, colors.red) end
  364. if iko8 == "Wolne" then pfb(22, 7, 23, 8, colors.lime) else pfb(22, 7, 23, 8, colors.red) end
  365. local event, click, x, y = os.pullEvent("mouse_click")
  366. if x == 51 and y == 1 then system() end
  367. if x>0 and x<3 and y>6 and y<9 and iko1 == "Zajete" then
  368.  r("rm /os/iko/.ico1")
  369.  ikony()
  370. end
  371. if x>3 and x<6 and y>6 and y<9 and iko2 == "Zajete" then
  372.  r("rm /os/iko/.ico2")
  373.  ikony()
  374. end
  375. if x>6 and x<9 and y>6 and y<9 and iko3 == "Zajete" then
  376.  r("rm /os/iko/.ico3")
  377.  ikony()
  378. end
  379. if x>9 and x<12 and y>6 and y<9 and iko4 == "Zajete" then
  380.  r("rm /os/iko/.ico4")
  381.  ikony()
  382. end
  383. if x>12 and x<15 and y>6 and y<9 and iko5 == "Zajete" then
  384.  r("rm /os/iko/.ico5")
  385.  ikony()
  386. end
  387. if x>15 and x<18 and y>6 and y<9 and iko6 == "Zajete" then
  388.  r("rm /os/iko/.ico6")
  389.  ikony()
  390. end
  391. if x>18 and x<21 and y>6 and y<9 and iko7 == "Zajete" then
  392.  r("rm /os/iko/.ico7")
  393.  ikony()
  394. end
  395. if x>21 and x<24 and y>6 and y<9 and iko8 == "Zajete" then
  396.  r("rm /os/iko/.ico8")
  397.  ikony()
  398. end
  399. scp(1,10)
  400. 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
  401. w("Enter file path: ")
  402. sciezka = read()
  403. if x>0 and x<3 and y>6 and y<9 and iko1 == "Wolne" then
  404.  local ikon1 = fs.open("/os/iko/.ico1", "w")
  405.  ikon1.writeLine(sciezka)
  406.  ikon1.close()
  407. end
  408. if x>3 and x<6 and y>6 and y<9 and iko2 == "Wolne" then
  409.  local ikon2 = fs.open("/os/iko/.ico2", "w")
  410.  ikon2.writeLine(sciezka)
  411.  ikon2.close()
  412. end
  413. if x>6 and x<8 and y>6 and y<9 and iko3 == "Wolne" then
  414.  local ikon3 = fs.open("/os/iko/.ico3", "w")
  415.  ikon3.writeLine(sciezka)
  416.  ikon3.close()
  417. end
  418. if x>9 and x<12 and y>6 and y<9 and iko4 == "Wolne" then
  419.  local ikon4 = fs.open("/os/iko/.ico4", "w")
  420.  ikon4.writeLine(sciezka)
  421.  ikon4.close()
  422. end
  423. if x>12 and x<15 and y>6 and y<9 and iko5 == "Wolne" then
  424.  local ikon5 = fs.open("/os/iko/.ico5", "w")
  425.  ikon5.writeLine(sciezka)
  426.  ikon5.close()
  427. end
  428. if x>15 and x<18 and y>6 and y<9 and iko6 == "Wolne" then
  429.  local ikon6 = fs.open("/os/iko/.ico6", "w")
  430.  ikon6.writeLine(sciezka)
  431.  ikon6.close()
  432. end
  433. if x>18 and x<21 and y>6 and y<9 and iko7 == "Wolne" then
  434.  local ikon7 = fs.open("/os/iko/.ico7", "w")
  435.  ikon7.writeLine(sciezka)
  436.  ikon7.close()
  437. end
  438. if x>21 and x<24 and y>6 and y<9 and iko8 == "Wolne" then
  439.  local ikon8 = fs.open("/os/iko/.ico8", "w")
  440.  ikon8.writeLine(sciezka)
  441.  ikon8.close()
  442. end
  443. end
  444.  
  445.  
  446. function pulpit()
  447. local obraz = pul("/os/.pulpit")
  448. pud(obraz, 1, 1)
  449. kolor()
  450. pfb(1, 19, 51, 19, colors.blue)
  451. pdp(51, 19, colors.orange)
  452. pdp(50, 19, colors.red)
  453. scp(1,19)
  454. stc(colors.white)
  455. 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
  456. w("Start")
  457. 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
  458. scp(1,1)
  459. p("NextUI 1.75 2nd UI Update. Microcraft    1.8 Update")
  460. if fs.exists("/os/iko/.ico1") then
  461.  local i1 = fs.open("/os/iko/.ico1", "r")
  462.  ii1 = i1.readLine()
  463.  i1.close()
  464.  pfb(44, 2, 46, 3, colors.purple)
  465. end
  466. if fs.exists("/os/iko/.ico2") then
  467.  local i2 = fs.open("/os/iko/.ico2", "r")
  468.  ii2 = i2.readLine()
  469.  i2.close()
  470.  pfb(44, 5, 46, 6, colors.orange)
  471. end
  472. if fs.exists("/os/iko/.ico3") then
  473.  local i3 = fs.open("/os/iko/.ico3", "r")
  474.  ii3 = i3.readLine()
  475.  i3.close()
  476.  pfb(44, 8, 46, 9, colors.red)
  477. end
  478. if fs.exists("/os/iko/.ico4") then
  479.  local i4 = fs.open("/os/iko/.ico4", "r")
  480.  ii1 = i4.readLine()
  481.  i4.close()
  482.  pfb(44, 11, 46, 12, colors.yellow)
  483. end
  484. if fs.exists("/os/iko/.ico5") then
  485.  local i5 = fs.open("/os/iko/.ico5", "r")
  486.  ii5 = i5.readLine()
  487.  i5.close()
  488.  pfb(49, 2, 51, 3, colors.green)
  489. end
  490. if fs.exists("/os/iko/.ico6") then
  491.  local i6 = fs.open("/os/iko/.ico6", "r")
  492.  ii6 = i6.readLine()
  493.  i6.close()
  494.  pfb(49, 5, 51, 6, colors.lime)
  495. end
  496. if fs.exists("/os/iko/.ico7") then
  497.  local i7 = fs.open("/os/iko/.ico7", "r")
  498.  ii7 = i7.readLine()
  499.  i7.close()
  500.  pfb(49, 8, 51, 9, colors.lightBlue)
  501. end
  502. if fs.exists("/os/iko/.ico8") then
  503.  local i8 = fs.open("/os/iko/.ico8", "r")
  504.  ii8 = i8.readLine()
  505.  i8.close()
  506.  pfb(49, 11, 51, 12, colors.blue)
  507. end
  508. end
  509.  
  510.  
  511. function start()
  512. pfb(1, 11, 20, 18, colors.white)
  513. scp(1,11)
  514. stc(colors.white)
  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.white) stc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  516. p("NextUI Start        ")
  517. scp(1,12)
  518. 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
  519. p("Paint               ")
  520. p("2048                ")
  521. p("Snake               ")
  522. p("Editor              ")
  523. p("CraftOS             ")
  524. p("Settings            ")
  525. p("Shortcuts           ")
  526. local event, click, x, y = os.pullEvent("mouse_click")
  527. if x>0 and x<21 and y == 11 then dysk() end
  528. if x>0 and x<21 and y == 18 then ikony() end
  529. if x>0 and x<21 and y == 16 then error() end
  530. if x>0 and x<21 and y == 14 then sbc(colors.black) r("worm") end
  531. if x>0 and x<21 and y == 12 then r("/os/.paint") end
  532. if x>0 and x<21 and y == 17 then nust() end
  533. if x>0 and x<21 and y == 13 then r("/os/.2048") end
  534. if x>0 and x<21 and y == 15 then r("/os/.luaide") end
  535. if x == 20 and y == 10 then system() end
  536. end
  537.  
  538. function sklep()
  539. while true do
  540. sbc(colors.white)
  541. tc()
  542. sbc(colors.white)
  543. pfb(1, 1, 51, 1, colors.green)
  544. pfb(15, 1, 15, 19, colors.green)
  545. pdp(51, 1, colors.red)
  546. scp(1,1)
  547. sbc(colors.green)
  548. stc(colors.white)
  549. p("nextStore")
  550. sbc(colors.white)
  551. stc(colors.black)
  552. p("Eksplorator")
  553. p("DGStatistics")
  554. p("ReactorControl")
  555. p("TimeMashine")
  556. p("Kalkulator")
  557. p("NextUI 1.8")
  558. scp(1,18)
  559. p("Wolne miejsce:")
  560. miejsce = math.ceil(fs.getFreeSpace("/")/1024)
  561. w(fs.getFreeSpace("/")/1024, "KB")
  562. shell.exit()
  563. local event, click, x, y = os.pullEvent("mouse_click")
  564. if x>0 and x<16 and y == 2 then ep() end
  565. if x>0 and x<16 and y == 3 then dg() end
  566. if x>0 and x<16 and y == 4 then rc() end
  567. if x>0 and x<16 and y == 5 then tm() end
  568. if x>0 and x<16 and y == 6 then calc() end
  569. if x>0 and x<16 and y == 7 then next18() end
  570. if x == 51 and y == 1 then system() end
  571. end
  572. end
  573.  
  574. function mysz()
  575. local event, click, x, y = os.pullEvent("mouse_click")
  576. if x == 50 and y == 19 then su() end
  577. if x == 51 and y == 19 then re() end
  578. if x>43 and x<47 and y>1 and y<4 and fs.exists("/os/iko/.ico1") then r(ii1) end
  579. if x>43 and x<47 and y>4 and y<7 and fs.exists("/os/iko/.ico2") then r(ii2) end
  580. if x>43 and x<47 and y>7 and y<10 and fs.exists("/os/iko/.ico3") then r(ii3) end
  581. if x>43 and x<47 and y>10 and y<13 and fs.exists("/os/iko/.ico4") then r(ii4) end
  582. if x>47 and x<52 and y>1 and y<4 and fs.exists("/os/iko/.ico5") then r(ii5) end
  583. if x>43 and x<47 and y>4 and y<7 and fs.exists("/os/iko/.ico6") then r(ii6) end
  584. if x>43 and x<47 and y>7 and y<10 and fs.exists("/os/iko/.ico7") then r(ii7) end
  585. if x>43 and x<47 and y>10 and y<13 and fs.exists("/os/iko/.ico8") then r(ii8) end
  586. if x>0 and x<6 and y == 19 then start() end
  587. if x<52 and x>42 and y == 1 then r("pastebin run UCnafE8g") end
  588. end
  589.  
  590. function nust()
  591. while true do
  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.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
  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.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
  595. pfb(1, 19, 51, 19, colors.blue)
  596. scp(1,19)
  597. sbc(colors.green)
  598. stc(colors.white)
  599. w("Start")
  600. pdp(50,19, colors.red)
  601. pdp(51,19, colors.orange)
  602. pfb(1, 1, 51, 1, colors.blue)
  603. scp(1,1)
  604. p("NextUI Settings")
  605. pdp(51,1, colors.red)
  606. pfb(3, 4, 13, 6, colors.orange)
  607. scp(3,5)
  608. stc(colors.white)
  609. p("Information")
  610. pfb(27, 4, 37, 6, colors.cyan)
  611. scp(27,5)
  612. stc(colors.white)
  613. p("Desktop")
  614. pfb(15, 4, 25, 6, colors.green)
  615. scp(15,5)
  616. stc(colors.white)
  617. p("Settings")
  618. local event, click, x, y = os.pullEvent("mouse_click")
  619. if x == 51 and y == 1 then system() end
  620. if x>0 and x<6 and y == 19 then start() end
  621. if x>2 and x<14 and y>3 and y<7 then infust() end
  622. if x>14 and x<26 and y>3 and y<7 then setust() end
  623. if x>26 and x<38 and y>3 and y<7 then deskust() end
  624. end
  625. end
  626.  
  627. function infust()
  628. while true do
  629. kolor()
  630. 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
  631. tc()
  632. 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
  633. pfb(1, 1, 51, 1, colors.blue)
  634. scp(1,1)
  635. stc(colors.white)
  636. p("Ustawienia NextUI")
  637. pdp(51,1, colors.red)
  638. 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
  639. scp(1,2)
  640. p("Microcraft NextUI")
  641. p("OS version: 1.75 2nd UI Update")
  642. zajete = math.ceil(getSize("/")/1024)
  643. wolne = math.ceil(fs.getFreeSpace("/")/1024)
  644. p("Free disk space:", wolne, "KB")
  645. p("Computer name: ", os.getComputerLabel())
  646. if pass == "" then log = "no" else log = "yes" end
  647. p("Password secured: ", log)
  648. local event, click, x, y = os.pullEvent("mouse_click")
  649. if x == 51 and y == 1 then nust() end
  650. end
  651. end
  652.  
  653. function deskust()
  654. while true do
  655. kolor()
  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) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  657. tc()
  658. 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
  659. pfb(1, 1, 51, 1, colors.blue)
  660. scp(1,1)
  661. stc(colors.white)
  662. p("NextUI Settings")
  663. pdp(51,1, colors.red)
  664. 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
  665.  scp(1,2)
  666.  p("GUI style: NextUI Default")
  667.  p("No more styles are available")
  668.  p("Choose new OS main color")
  669.  scp(1,8)
  670.  p("Wallpaper settings")
  671.  local event, click, x, y = os.pullEvent("mouse_click")
  672.  if x>0 and x<25 and y == 4 then kolorw() end
  673.  if x>0 and x<25 and y == 8 then tapetaust() end
  674.  if x == 51 and y == 1 then nust() end
  675. end
  676. end
  677.  
  678. function setust()
  679. while true do
  680. kolor()
  681. 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
  682. tc()
  683. 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
  684. pfb(1, 1, 51, 1, colors.blue)
  685. scp(1,1)
  686. stc(colors.white)
  687. p("NextUI Settings")
  688. pdp(51,1, colors.red)
  689. 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
  690. p("Change computer name")
  691. p("OS update")
  692. p("Command prompt")
  693. p("Change language")
  694. local event, click, x, y = os.pullEvent("mouse_click")
  695. if x>0 and x<20 and y == 2 then
  696.  scp(1,2)
  697.   w("Enter new name: ")
  698.   nazwa = read()
  699.   os.setComputerLabel(nazwa)
  700.   setust()
  701. end
  702. if x>0 and x<20 and y == 3 then r("/os/.update") end
  703. if x>0 and x<20 and y == 4 then cmd() end
  704. if x>0 and x<20 and y == 5 then r("pastebin run yhMsgWuN") end
  705. if x == 51 and y == 1 then nust() end
  706. end
  707. end
  708. function system()
  709. while true do
  710. kolor()
  711. pulpit()
  712. mysz()
  713. end
  714. end
  715.  
  716.  
  717. pierwszeu()
  718.  
  719. logo()
  720.  
  721. system()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement