Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function s(...) return sleep(...) end
- local function w(...) return write(...) end
- local function p(...) return print(...) end
- local function tw(...) return term.write(...) end
- local function scp(...) return term.setCursorPos(...) end
- local function sbc(...) return term.setBackgroundColor(...) end
- local function stc(...) return term.setTextColor(...) end
- local function tc(...) return term.clear(...) end
- local function tcl(...) return term.clearLine(...) end
- local function r(...) return shell.run(...) end
- local function sp(...) return textutils.slowPrint(...) end
- local function sw(...) return textutils.slowWrite(...) end
- local function fse(...) return fs.exists(...) end
- local function pul(...) return paintutils.loadImage(...) end
- local function pud(...) return paintutils.drawImage(...) end
- local function pfb(...) return paintutils.drawFilledBox(...) end
- local function su(...) return os.shutdown(...) end
- local function re(...) return os.reboot(...) end
- local function pdp(...) return paintutils.drawPixel(...) end
- local a, b = term.getSize()
- function eng()
- tc()
- sbc(colors.blue)
- tc()
- sbc(colors.blue)
- stc(colors.white)
- scp(1,1)
- p("NextUI Setup")
- scp(1,2)
- p("Please choose install language.")
- scp(1,5)
- sbc(colors.white)
- stc(colors.black)
- p("X")
- sbc(colors.blue)
- stc(colors.white)
- scp(3,5)
- p("English")
- scp(1,7)
- sbc(colors.white)
- stc(colors.black)
- p(" ")
- sbc(colors.blue)
- stc(colors.white)
- scp(3,7)
- p("Polski")
- n = a-5
- scp(a-5,b)
- sbc(colors.white)
- stc(colors.black)
- w("Next")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>0 and x<10 and y == 7 then polski() end
- if x>n and x<a and y == b then installeng() end
- end
- function polski()
- tc()
- sbc(colors.blue)
- tc()
- sbc(colors.blue)
- stc(colors.white)
- scp(1,1)
- p("NextUI Setup")
- scp(1,2)
- p("Wybierz jezyk instalacji.")
- scp(1,5)
- sbc(colors.white)
- stc(colors.black)
- p(" ")
- sbc(colors.blue)
- stc(colors.white)
- scp(3,5)
- p("English")
- scp(1,7)
- sbc(colors.white)
- stc(colors.black)
- p("X")
- sbc(colors.blue)
- stc(colors.white)
- scp(3,7)
- p("Polski")
- n = a-5
- scp(a-5,b)
- sbc(colors.white)
- stc(colors.black)
- w("Dalej")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>0 and x<10 and y == 5 then eng() end
- if x>n and x<a and y == b then installpol() end
- end
- function installeng()
- term.clear()
- term.setCursorPos(1,1)
- print("Installing. Please wait!")
- shell.run("rm startup")
- term.setCursorPos(1,17)
- shell.run("pastebin get bCbsGEb4 startup")
- shell.run("mkdir os")
- term.setCursorPos(1,17)
- shell.run("pastebin get ckkY48iL /os/.next")
- term.setCursorPos(1,17)
- shell.run("pastebin get u0urwgNc /os/.2048")
- term.setCursorPos(1,17)
- shell.run("pastebin get pzWSRqNF /os/.paint")
- scp(1,17)
- r("pastebin get FQtPJQMp /os/.pulpit")
- term.setCursorPos(1,17)
- r("pastebin get vyAZc6tJ /os/.luaide")
- term.setCursorPos(1,17)
- r("pastebin get 0uMxiriG /os/.kol")
- term.setCursorPos(1,17)
- r("pastebin get ZV1RFXwz /os/.ver")
- term.setCursorPos(1,17)
- r("pastebin get NVzDaz4M /os/icon")
- scp(1,17)
- r("pastebin get tiegKUtg /os/.update")
- os.setComputerLabel("NextUI PC")
- tc()
- sbc(colors.blue)
- tc()
- sbc(colors.blue)
- scp(1,1)
- stc(colors.white)
- p("NextUI Setup")
- p("Setup finished installing NextUI on your computer. Rebooting in 5 seconds...")
- s(5)
- re()
- end
- function installpol()
- term.clear()
- term.setCursorPos(1,1)
- print("Instaluje....")
- scp(1,3)
- p("NextUI z SecuredBoot 1.0")
- p("Najnowsza wersja NextUI zawiera w sobie technologie SecuredBoot, ktora uniemozliwia nadpisanie partycji UEFI poprzez spreparowana dyskietke.")
- s(3)
- term.setCursorPos(20,19)
- write("/startup")
- shell.run("rm startup")
- term.setCursorPos(1,17)
- shell.run("pastebin get bCbsGEb4 startup")
- term.setCursorPos(20,19)
- write("/os/")
- shell.run("mkdir os")
- term.setCursorPos(20,19)
- write("/os/.menu")
- term.setCursorPos(1,17)
- shell.run("pastebin get xagX33Z7 /os/.next")
- term.setCursorPos(20,19)
- write("/os/.2048")
- tc()
- scp(1,3)
- p("NextUI i DynRes")
- p("NextUI wprowadza dynamiczna rozdzielczosc DynRes, czyli nie musisz sie juz martwic, czy Twoj monitor bedzie mial odpowiednie wymiary, aby byl w pelni wykorzystany przez NextUI.")
- s(3)
- term.setCursorPos(1,17)
- shell.run("pastebin get u0urwgNc /os/.2048")
- term.setCursorPos(20,19)
- write("/os/.paint")
- term.setCursorPos(1,17)
- shell.run("pastebin get pzWSRqNF /os/.paint")
- scp(1,17)
- shell.run("pastebin get FQtPJQMp /os/.pulpit")
- term.setCursorPos(20,19)
- write("/os/.luaide")
- term.setCursorPos(1,17)
- shell.run("pastebin get vyAZc6tJ /os/.luaide")
- tc()
- scp(1,3)
- p("NextUI i NextStore 2.0")
- p("Brakuje Ci jakies aplikacji? Wejdz do NextStore 2.0 i znajdz to czego potrzebujesz!")
- s(3)
- r("pastebin get hckriUmW /os/.jez")
- r("pastebin get 0uMxiriG /os/.kol")
- term.setCursorPos(1,17)
- shell.run("pastebin get ZV1RFXwz /os/.ver")
- term.clear()
- term.setCursorPos(20,19)
- write("/os/icon")
- term.setCursorPos(1,17)
- r("pastebin get NVzDaz4M /os/icon")
- r("set shell.allow_disk_startup false")
- scp(1,17)
- r("pastebin get FnE3MAD5 /os/.update")
- tc()
- sbc(colors.blue)
- tc()
- sbc(colors.blue)
- scp(1,1)
- stc(colors.white)
- tc()
- scp(1,1)
- p("NextUI Setup")
- p("Instalator NextUI zakonczyl instalacje glownych plikow systemowych. Komputer uruchomi sie ponownie za 5 sekund.")
- s(5)
- re()
- end
- while true do
- eng()
- end
Add Comment
Please, Sign In to add comment