PolskiWisnia

English Setup

Aug 8th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.57 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. while true do
  21.  pfb(1, 1, 51, 3, colors.cyan)
  22.  pfb(1, 2, 51, 19, colors.lightBlue)
  23.  pfb(48, 19, 51, 19, colors.yellow)
  24.  scp(1,1)
  25.  stc(colors.white)
  26.  sbc(colors.cyan)
  27.  p("NextUI Setup")
  28.  scp(48,19)
  29.  sbc(colors.yellow)
  30.  w("Next")
  31.  scp(1,2)
  32.  sbc(colors.lightBlue)
  33.  p("Welcome to the NextUI Setup. If you want to proceed please press 'Next'. You can still abort setup by pressing CTRL and T.")
  34.  local event, click, x, y = os.pullEvent("mouse_click")
  35.  if x>45 and x<52 and y == 19 then  
  36.    term.clear()
  37.    term.setCursorPos(1,1)
  38.    print("Installing. Please wait!")
  39.    shell.run("rm startup")
  40.    term.setCursorPos(1,17)
  41.    shell.run("pastebin get bCbsGEb4 startup")
  42.    shell.run("mkdir os")
  43.    term.setCursorPos(1,17)
  44.    shell.run("pastebin get CvTWL3sz /os/.next")
  45.    term.setCursorPos(1,17)
  46.    shell.run("pastebin get u0urwgNc /os/.2048")
  47.    term.setCursorPos(1,17)
  48.    shell.run("pastebin get pzWSRqNF /os/.paint")
  49.    scp(1,17)
  50.    r("pastebin get KCNCwuj3 /os/.pulpit")
  51.    term.setCursorPos(1,17)
  52.    r("pastebin get vyAZc6tJ /os/.luaide")
  53.    term.setCursorPos(1,17)
  54.    r("pastebin get kj4daSAJ /os/.kol")
  55.    term.setCursorPos(1,17)
  56.    r("pastebin get ZV1RFXwz /os/.ver")
  57.    term.setCursorPos(1,17)
  58.    r("pastebin get NVzDaz4M /os/icon")
  59.    scp(1,17)
  60.    r("pastebin get iqNnH1vT /os/.update")
  61.    os.setComputerLabel("NextUI PC")
  62.    s(2)
  63.    tc()
  64.    sbc(colors.lightBlue)
  65.    tc()
  66.    sbc(colors.lightBlue)  
  67.    scp(1,1)
  68.    p("NextUI was succesfuly installed on your PC. Your computer will reboot in 5 seconds.")
  69.    s(5)
  70.    re()
  71. end
  72. end
Add Comment
Please, Sign In to add comment