Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function s(...) return sleep(...) end
- local function aw(...) 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 w, h = term.getSize()
- tc()
- scp(1,1)
- p("Microcraft NextUI")
- if fse("/.boot") then
- scp(1,h)
- sbc(colors.black)
- stc(colors.white)
- write("Tap here to enter Microcraft Bootloader")
- end
- function startup()
- scp(1,2)
- sbc(colors.lightGray)
- stc(colors.white)
- textutils.slowPrint("Booting up MineCore Hybrid...", 20)
- s(1)
- textutils.slowPrint("Done. Loading NextUI...", 14)
- s(2)
- r("/os/.next")
- end
- function bootloader()
- if fse("/.boot") then
- local event, button, x, y = os.pullEvent("mouse_click")
- if x>0 and x<w+1 and y == h then r(".boot") end
- end
- end
- function system()
- coroutine.create(startup,bootloader)
- end
- system()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement