Advertisement
PolskiWisnia

Untitled

Mar 7th, 2020
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.66 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. tc()
  22. scp(1,1)
  23. p("Microcraft NextUI")
  24. if fse("/.boot") then
  25. scp(1,h)
  26. sbc(colors.black)
  27. stc(colors.white)
  28. write("Tap here to enter Microcraft Bootloader")
  29. end
  30. function startup()
  31. scp(1,2)
  32. sbc(colors.lightGray)
  33. stc(colors.white)
  34. textutils.slowPrint("Booting up MineCore Hybrid...", 20)
  35. s(1)
  36. textutils.slowPrint("Done. Loading NextUI...", 14)
  37. s(2)
  38. r("/os/.next")
  39. end
  40.  
  41. function bootloader()
  42. if fse("/.boot") then
  43.  local event, button, x, y = os.pullEvent("mouse_click")
  44. if x>0 and x<w+1 and y == h then r(".boot") end
  45. end
  46. end
  47.  
  48. function system()
  49. coroutine.create(startup,bootloader)
  50. end
  51. system()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement