Advertisement
PolskiWisnia

NextUI 1.7 to 1.8 Upgrade

Feb 1st, 2020
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.64 KB | None | 0 0
  1. local function s(...) return sleep(...) end
  2. local function aw(...) return write(...) end
  3. local function p(...) return print(...) end
  4. local function tw(...) return term.write(...) end
  5. local function scp(...) return term.setCursorPos(...) end
  6. local function sbc(...) return term.setBackgroundColor(...) end
  7. local function stc(...) return term.setTextColor(...) end
  8. local function tc(...) return term.clear(...) end
  9. local function tcl(...) return term.clearLine(...) end
  10. local function r(...) return shell.run(...) end
  11. local function sp(...) return textutils.slowPrint(...) end
  12. local function sw(...) return textutils.slowWrite(...) end
  13. local function fse(...) return fs.exists(...) end
  14. local function pul(...) return paintutils.loadImage(...) end
  15. local function pud(...) return paintutils.drawImage(...) end
  16. local function pfb(...) return paintutils.drawFilledBox(...) end
  17. local function su(...) return os.shutdown(...) end
  18. local function re(...) return os.reboot(...) end
  19. local function pdp(...) return paintutils.drawPixel(...) end
  20. local w, h = term.getSize()
  21. while true do
  22. tc()
  23. pfb(1,1,w,h,colors.white)
  24. stc(colors.black)
  25. scp(1,1)
  26. p("NextUI 1.8 Setup")
  27. p("Witamy w instalatorze NextUI 1.8 Developers Update. Wcisnij ENTER aby kontynuowac.")
  28. local event, key = os.pullEvent("key")
  29. if key == 28 and fse("/os/.next") then
  30. fs.delete("/os/.next")
  31. fs.delete("startup")
  32. fs.delete("/os/.pulpit")
  33. fs.delete("/os/.update")
  34. r("pastebin get FQtPJQMp /os/.pulpit")
  35. r("pastebin get xagX33Z7 /os/.next")
  36. r("pastebin get bCbsGEb4 startup")
  37. r("pastebin get FnE3MAD5 /os/.update")
  38. r("set shell.allow_disk_startup false")
  39. s(1)
  40. p("Gotowe!")
  41. s(1)
  42. re()
  43. end
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement