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
- while true do
- pfb(1, 1, 51, 3, colors.cyan)
- pfb(1, 2, 51, 19, colors.lightBlue)
- pfb(48, 19, 51, 19, colors.yellow)
- scp(1,1)
- stc(colors.white)
- sbc(colors.cyan)
- p("NextUI Setup")
- scp(48,19)
- sbc(colors.yellow)
- w("Next")
- scp(1,2)
- sbc(colors.lightBlue)
- p("Welcome to the NextUI Setup. If you want to proceed please press 'Next'. You can still abort setup by pressing CTRL and T.")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>45 and x<52 and y == 19 then
- 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 CvTWL3sz /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 KCNCwuj3 /os/.pulpit")
- term.setCursorPos(1,17)
- r("pastebin get vyAZc6tJ /os/.luaide")
- term.setCursorPos(1,17)
- r("pastebin get kj4daSAJ /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 iqNnH1vT /os/.update")
- os.setComputerLabel("NextUI PC")
- s(2)
- tc()
- sbc(colors.lightBlue)
- tc()
- sbc(colors.lightBlue)
- scp(1,1)
- p("NextUI was succesfuly installed on your PC. Your computer will reboot in 5 seconds.")
- s(5)
- re()
- end
- end
Add Comment
Please, Sign In to add comment