Advertisement
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
- function cus()
- scp(1,10)
- fs.delete("/os/.tapus")
- r("pastebin get 3KBhKn53 /os/.tapus")
- r("paint /os/.pulpit")
- system()
- end
- function tapetaust()
- local tapust = fs.open("/os/.tapus", "r")
- tapust1 = tapust.readLine()
- tapust.close()
- if tapust1 == "default" then
- sbc(colors.gray)
- stc(colors.white)
- scp(1,9)
- p("NextUI")
- scp(9,9)
- sbc(colors.lightGray)
- p("Prosta")
- scp(16,9)
- p("Wlasna")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>8 and x<15 and y == 9 then
- fs.delete("/os/.pulpit")
- fs.delete("/os/.tapus")
- r("pastebin get vwG8AryW /os/.pulpit")
- r("pastebin get uTedutxS /os/.tapus")
- s(1)
- system()
- end
- if x>15 and x<23 and y == 9 then cus() end
- end
- if tapust1 == "custom" then
- stc(colors.white)
- sbc(colors.lightGray)
- scp(1,9)
- p("NextUI")
- scp(9,9)
- p("Prosta")
- sbc(colors.gray)
- scp(16,9)
- p("Wlasna")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>8 and x<15 and y == 9 then
- fs.delete("/os/.pulpit")
- fs.delete("/os/.tapus")
- r("pastebin get vwG8AryW /os/.pulpit")
- r("pastebin get uTedutxS /os/.tapus")
- s(1)
- system()
- end
- if x>0 and x<9 and y == 9 then
- fs.delete("/os/.pulpit")
- fs.delete("/os/.tapus")
- r("pastebin get KCNCwuj3 /os/.pulpit")
- r("pastebin get DxMvUVHx /os/.tapus")
- s(1)
- system()
- end
- end
- if tapust1 == "simple" then
- sbc(colors.lightGray)
- stc(colors.white)
- scp(1,9)
- p("NextUI")
- sbc(colors.gray)
- scp(9,9)
- p("Prosta")
- sbc(colors.lightGray)
- scp(16,9)
- p("Wlasna")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>0 and x<9 and y == 9 then
- fs.delete("/os/.pulpit")
- fs.delete("/os/.tapus")
- r("pastebin get KCNCwuj3 /os/.pulpit")
- r("pastebin get DxMvUVHx /os/.tapus")
- s(1)
- system()
- end
- if x>15 and x<23 and y == 9 then cus() end
- end
- end
- function cmd()
- s(1)
- tc()
- sbc(colors.black)
- tc()
- sbc(colors.black)
- stc(colors.white)
- scp(1,1)
- p("MineCore Command Prompt")
- p("2018 Microcraft")
- p("Type 'help', to get list of commands")
- while true do
- w("./minecore/>")
- comm = read()
- if comm == "help" then
- p("'ver' - MineCore version")
- p("'next' - return to NextUI")
- p("'nextver' - NextUI version")
- p("'run' - run a file")
- p("'log' - change password")
- p("'reboot' - reboot")
- p("'shutdown' - shutdown")
- p("'craft' - go to CraftOS")
- p("'update' - update NextUI")
- end
- if comm == "reboot" then re() end
- if comm == "shutdown" then su() end
- if comm == "update" then r("/os/.update") end
- if comm == "store" then sklep() end
- if comm == "ver" then
- p("Microcraft MineCore 1.65 2020.")
- p("Microcraft MineUI D 1.0 2018.")
- end
- if comm == "nextver" then
- p("Microcraft NextUI 1.75 2nd UI Update 2020.")
- end
- if comm == "next" then system() end
- if comm == "run" then
- w("Wpisz sciezke pliku: ")
- plik = read()
- if fs.exists(plik) then r(plik) end
- end
- if comm == "log" then
- w("Wpisz nowe haslo: ")
- passw = read()
- r("rm /os/.log2")
- local pas = fs.open("/os/.log2", "w")
- pass = pas.writeLine(passw)
- pas.close()
- p("Uruchamianie ponownie...")
- s(1)
- re()
- end
- end
- end
- function pierwszeu2()
- if fs.exists("/os/.log1") and fs.exists("/os/.log2") and fs.exists("/os/.tapus") then logo()
- else
- while true do
- tc()
- sbc(colors.white)
- tc()
- sbc(colors.white)
- stc(colors.black)
- scp(1,1)
- p("NextUI Configuration Step 2/2")
- p("Welcome to NextUI!")
- p("Choose your desktop wallpaper.")
- p("NextUI | Simple")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>0 and x<8 and y == 4 then
- fs.delete("/os/.pulpit")
- fs.delete("/os/.tapus")
- r("pastebin get KCNCwuj3 /os/.pulpit")
- r("pastebin get DxMvUVHx /os/.tapus")
- p("You completed NextUI configuration.")
- s(1)
- system()
- end
- if x>8 and x<16 and y == 5 then
- fs.delete("/os/.pulpit")
- fs.delete("/os/.tapus")
- r("pastebin get vwG8AryW /os/.pulpit")
- r("pastebin get uTedutxS /os/.tapus")
- p("You completed NextUI configuration.")
- s(1)
- system()
- end
- end
- end
- end
- function pierwszeu()
- if fs.exists("/os/.log1") and fs.exists("/os/.log2") then pierwszeu2()
- else
- tc()
- sbc(colors.white)
- tc()
- sbc(colors.white)
- stc(colors.black)
- scp(1,1)
- p("NextUI Configuration Step 1/2")
- p("Welcome to NextUI!")
- p("Enter your username:")
- w("")
- uzytkownik = read()
- p("Enter your password: ")
- w("")
- haslo = read()
- local p = fs.open("/os/.log1", "w")
- p.write(uzytkownik)
- p.close()
- local h = fs.open("/os/.log2", "w")
- h.writeLine(haslo)
- h.close()
- print("Ponowne uruchamianie....")
- sleep(1)
- pierwszeu2()
- end
- end
- function logobraz()
- pfb(1, 1, 51, 5, colors.blue)
- pfb(1, 6, 51, 14, colors.lightBlue)
- pfb(1, 15, 51, 19, colors.blue)
- pfb(15, 7, 17, 9, colors.gray)
- scp(1,1)
- p("NextUI")
- scp(1,2)
- p("Please enter your password twice.")
- end
- function pliki()
- local u = fs.open("/os/.log1", "r")
- user = u.readLine()
- u.close()
- local h = fs.open("/os/.log2", "r")
- pass = h.readLine()
- h.close()
- end
- function log()
- if pass == "" then system() else
- sbc(colors.lightBlue)
- stc(colors.white)
- scp(18,7)
- p(user)
- scp(18,8)
- w("")
- haslo = read()
- if haslo == pass then ok = 1 else scp(18,9) stc(colors.red) p("Bledne haslo") s(2) re() end
- end
- end
- function logo()
- logobraz()
- pliki()
- log()
- end
- function kolor()
- local col = fs.open("/os/.kol", "r")
- colr = col.readLine()
- col.close()
- end
- function kolorw()
- scp(1,5)
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- p("Main OS color: ", colr)
- p("Choose new main OS color:")
- pdp(1, 7, colors.orange)
- pdp(2, 7, colors.lightBlue)
- pdp(3, 7, colors.yellow)
- pdp(4, 7, colors.lime)
- pdp(5, 7, colors.pink)
- pdp(6, 7, colors.gray)
- pdp(7, 7, colors.lightGray)
- pdp(8, 7, colors.purple)
- pdp(9, 7, colors.blue)
- pdp(10, 7, colors.brown)
- pdp(11, 7, colors.green)
- pdp(12, 7, colors.red)
- pdp(13, 7, colors.black)
- pdp(14, 7, colors.white)
- local event, click, x, y = os.pullEvent("mouse_click")
- if x == 1 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.orange") colw.close() end
- if x == 2 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.lightBlue") colw.close() end
- if x == 3 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.yellow") colw.close() end
- if x == 4 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.lime") colw.close() end
- if x == 5 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.pink") colw.close() end
- if x == 6 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.gray") colw.close() end
- if x == 7 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.lightGray") colw.close() end
- if x == 8 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.purple") colw.close() end
- if x == 9 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.blue") colw.close() end
- if x == 10 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.brown") colw.close() end
- if x == 11 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.green") colw.close() end
- if x == 12 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.red") colw.close() end
- if x == 13 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.black") colw.close() end
- if x == 14 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.white") colw.close() end
- end
- function getSize(path)
- local size = 0
- for _, file in ipairs(fs.list(path)) do
- if fs.isDir(fs.combine(path, file)) then
- size = size + getSize(fs.combine(path, file))
- else
- size = size + fs.getSize(fs.combine(path, file))
- end
- end
- return size
- end
- local wer = fs.open("/os/.ver", "r")
- ver = wer.readLine()
- wer.close()
- function ikony()
- tc()
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.green) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.white) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- tc()
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.green) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.white) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- stc(colors.white)
- pfb(1, 1, 51, 1, colors.gray)
- pdp(51, 1, colors.red)
- sbc(colors.gray)
- scp(1,1)
- p("NextUI Shortcuts Creator")
- scp(1,2)
- stc(colors.white)
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- p("Welcome to the shortcuts creator. Please select icon:")
- if fs.exists("/os/iko/.ico1") then iko1 = "Zajete" else iko1 = "Wolne" end
- if fs.exists("/os/iko/.ico2") then iko2 = "Zajete" else iko2 = "Wolne" end
- if fs.exists("/os/iko/.ico3") then iko3 = "Zajete" else iko3 = "Wolne" end
- if fs.exists("/os/iko/.ico4") then iko4 = "Zajete" else iko4 = "Wolne" end
- if fs.exists("/os/iko/.ico5") then iko5 = "Zajete" else iko5 = "Wolne" end
- if fs.exists("/os/iko/.ico6") then iko6 = "Zajete" else iko6 = "Wolne" end
- if fs.exists("/os/iko/.ico7") then iko7 = "Zajete" else iko7 = "Wolne" end
- if fs.exists("/os/iko/.ico8") then iko8 = "Zajete" else iko8 = "Wolne" end
- if iko1 == "Wolne" then pfb(1, 7, 2, 8, colors.lime) else pfb(1, 7, 2, 8, colors.red) end
- if iko2 == "Wolne" then pfb(4, 7, 5, 8, colors.lime) else pfb(4, 7, 5, 8, colors.red) end
- if iko3 == "Wolne" then pfb(7, 7, 8, 8, colors.lime) else pfb(7, 7, 8, 8, colors.red) end
- if iko4 == "Wolne" then pfb(10, 7, 11, 8, colors.lime) else pfb(10, 7, 11, 8, colors.red) end
- if iko5 == "Wolne" then pfb(13, 7, 14, 8, colors.lime) else pfb(13, 7, 14, 8, colors.red) end
- if iko6 == "Wolne" then pfb(16, 7, 17, 8, colors.lime) else pfb(16, 7, 17, 8, colors.red) end
- if iko7 == "Wolne" then pfb(19, 7, 20, 8, colors.lime) else pfb(19, 7, 20, 8, colors.red) end
- if iko8 == "Wolne" then pfb(22, 7, 23, 8, colors.lime) else pfb(22, 7, 23, 8, colors.red) end
- local event, click, x, y = os.pullEvent("mouse_click")
- if x == 51 and y == 1 then system() end
- if x>0 and x<3 and y>6 and y<9 and iko1 == "Zajete" then
- r("rm /os/iko/.ico1")
- ikony()
- end
- if x>3 and x<6 and y>6 and y<9 and iko2 == "Zajete" then
- r("rm /os/iko/.ico2")
- ikony()
- end
- if x>6 and x<9 and y>6 and y<9 and iko3 == "Zajete" then
- r("rm /os/iko/.ico3")
- ikony()
- end
- if x>9 and x<12 and y>6 and y<9 and iko4 == "Zajete" then
- r("rm /os/iko/.ico4")
- ikony()
- end
- if x>12 and x<15 and y>6 and y<9 and iko5 == "Zajete" then
- r("rm /os/iko/.ico5")
- ikony()
- end
- if x>15 and x<18 and y>6 and y<9 and iko6 == "Zajete" then
- r("rm /os/iko/.ico6")
- ikony()
- end
- if x>18 and x<21 and y>6 and y<9 and iko7 == "Zajete" then
- r("rm /os/iko/.ico7")
- ikony()
- end
- if x>21 and x<24 and y>6 and y<9 and iko8 == "Zajete" then
- r("rm /os/iko/.ico8")
- ikony()
- end
- scp(1,10)
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- w("Enter file path: ")
- sciezka = read()
- if x>0 and x<3 and y>6 and y<9 and iko1 == "Wolne" then
- local ikon1 = fs.open("/os/iko/.ico1", "w")
- ikon1.writeLine(sciezka)
- ikon1.close()
- end
- if x>3 and x<6 and y>6 and y<9 and iko2 == "Wolne" then
- local ikon2 = fs.open("/os/iko/.ico2", "w")
- ikon2.writeLine(sciezka)
- ikon2.close()
- end
- if x>6 and x<8 and y>6 and y<9 and iko3 == "Wolne" then
- local ikon3 = fs.open("/os/iko/.ico3", "w")
- ikon3.writeLine(sciezka)
- ikon3.close()
- end
- if x>9 and x<12 and y>6 and y<9 and iko4 == "Wolne" then
- local ikon4 = fs.open("/os/iko/.ico4", "w")
- ikon4.writeLine(sciezka)
- ikon4.close()
- end
- if x>12 and x<15 and y>6 and y<9 and iko5 == "Wolne" then
- local ikon5 = fs.open("/os/iko/.ico5", "w")
- ikon5.writeLine(sciezka)
- ikon5.close()
- end
- if x>15 and x<18 and y>6 and y<9 and iko6 == "Wolne" then
- local ikon6 = fs.open("/os/iko/.ico6", "w")
- ikon6.writeLine(sciezka)
- ikon6.close()
- end
- if x>18 and x<21 and y>6 and y<9 and iko7 == "Wolne" then
- local ikon7 = fs.open("/os/iko/.ico7", "w")
- ikon7.writeLine(sciezka)
- ikon7.close()
- end
- if x>21 and x<24 and y>6 and y<9 and iko8 == "Wolne" then
- local ikon8 = fs.open("/os/iko/.ico8", "w")
- ikon8.writeLine(sciezka)
- ikon8.close()
- end
- end
- function pulpit()
- local obraz = pul("/os/.pulpit")
- pud(obraz, 1, 1)
- kolor()
- pfb(1, 19, 51, 19, colors.blue)
- pdp(51, 19, colors.orange)
- pdp(50, 19, colors.red)
- scp(1,19)
- stc(colors.white)
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- w("Start")
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- scp(1,1)
- p("NextUI 1.75 2nd UI Update. Microcraft 1.8 Update")
- if fs.exists("/os/iko/.ico1") then
- local i1 = fs.open("/os/iko/.ico1", "r")
- ii1 = i1.readLine()
- i1.close()
- pfb(44, 2, 46, 3, colors.purple)
- end
- if fs.exists("/os/iko/.ico2") then
- local i2 = fs.open("/os/iko/.ico2", "r")
- ii2 = i2.readLine()
- i2.close()
- pfb(44, 5, 46, 6, colors.orange)
- end
- if fs.exists("/os/iko/.ico3") then
- local i3 = fs.open("/os/iko/.ico3", "r")
- ii3 = i3.readLine()
- i3.close()
- pfb(44, 8, 46, 9, colors.red)
- end
- if fs.exists("/os/iko/.ico4") then
- local i4 = fs.open("/os/iko/.ico4", "r")
- ii1 = i4.readLine()
- i4.close()
- pfb(44, 11, 46, 12, colors.yellow)
- end
- if fs.exists("/os/iko/.ico5") then
- local i5 = fs.open("/os/iko/.ico5", "r")
- ii5 = i5.readLine()
- i5.close()
- pfb(49, 2, 51, 3, colors.green)
- end
- if fs.exists("/os/iko/.ico6") then
- local i6 = fs.open("/os/iko/.ico6", "r")
- ii6 = i6.readLine()
- i6.close()
- pfb(49, 5, 51, 6, colors.lime)
- end
- if fs.exists("/os/iko/.ico7") then
- local i7 = fs.open("/os/iko/.ico7", "r")
- ii7 = i7.readLine()
- i7.close()
- pfb(49, 8, 51, 9, colors.lightBlue)
- end
- if fs.exists("/os/iko/.ico8") then
- local i8 = fs.open("/os/iko/.ico8", "r")
- ii8 = i8.readLine()
- i8.close()
- pfb(49, 11, 51, 12, colors.blue)
- end
- end
- function start()
- pfb(1, 11, 20, 18, colors.white)
- scp(1,11)
- stc(colors.white)
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.white) stc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- p("NextUI Start ")
- scp(1,12)
- if colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.black) stc(colors.white) else sbc(colors.white) stc(colors.black) end
- p("Paint ")
- p("2048 ")
- p("Snake ")
- p("Editor ")
- p("CraftOS ")
- p("Settings ")
- p("Shortcuts ")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>0 and x<21 and y == 11 then dysk() end
- if x>0 and x<21 and y == 18 then ikony() end
- if x>0 and x<21 and y == 16 then error() end
- if x>0 and x<21 and y == 14 then sbc(colors.black) r("worm") end
- if x>0 and x<21 and y == 12 then r("/os/.paint") end
- if x>0 and x<21 and y == 17 then nust() end
- if x>0 and x<21 and y == 13 then r("/os/.2048") end
- if x>0 and x<21 and y == 15 then r("/os/.luaide") end
- if x == 20 and y == 10 then system() end
- end
- function sklep()
- while true do
- sbc(colors.white)
- tc()
- sbc(colors.white)
- pfb(1, 1, 51, 1, colors.green)
- pfb(15, 1, 15, 19, colors.green)
- pdp(51, 1, colors.red)
- scp(1,1)
- sbc(colors.green)
- stc(colors.white)
- p("nextStore")
- sbc(colors.white)
- stc(colors.black)
- p("Eksplorator")
- p("DGStatistics")
- p("ReactorControl")
- p("TimeMashine")
- p("Kalkulator")
- p("NextUI 1.8")
- scp(1,18)
- p("Wolne miejsce:")
- miejsce = math.ceil(fs.getFreeSpace("/")/1024)
- w(fs.getFreeSpace("/")/1024, "KB")
- shell.exit()
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>0 and x<16 and y == 2 then ep() end
- if x>0 and x<16 and y == 3 then dg() end
- if x>0 and x<16 and y == 4 then rc() end
- if x>0 and x<16 and y == 5 then tm() end
- if x>0 and x<16 and y == 6 then calc() end
- if x>0 and x<16 and y == 7 then next18() end
- if x == 51 and y == 1 then system() end
- end
- end
- function mysz()
- local event, click, x, y = os.pullEvent("mouse_click")
- if x == 50 and y == 19 then su() end
- if x == 51 and y == 19 then re() end
- if x>43 and x<47 and y>1 and y<4 and fs.exists("/os/iko/.ico1") then r(ii1) end
- if x>43 and x<47 and y>4 and y<7 and fs.exists("/os/iko/.ico2") then r(ii2) end
- if x>43 and x<47 and y>7 and y<10 and fs.exists("/os/iko/.ico3") then r(ii3) end
- if x>43 and x<47 and y>10 and y<13 and fs.exists("/os/iko/.ico4") then r(ii4) end
- if x>47 and x<52 and y>1 and y<4 and fs.exists("/os/iko/.ico5") then r(ii5) end
- if x>43 and x<47 and y>4 and y<7 and fs.exists("/os/iko/.ico6") then r(ii6) end
- if x>43 and x<47 and y>7 and y<10 and fs.exists("/os/iko/.ico7") then r(ii7) end
- if x>43 and x<47 and y>10 and y<13 and fs.exists("/os/iko/.ico8") then r(ii8) end
- if x>0 and x<6 and y == 19 then start() end
- if x<52 and x>42 and y == 1 then r("pastebin run UCnafE8g") end
- end
- function nust()
- while true do
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- tc()
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- pfb(1, 19, 51, 19, colors.blue)
- scp(1,19)
- sbc(colors.green)
- stc(colors.white)
- w("Start")
- pdp(50,19, colors.red)
- pdp(51,19, colors.orange)
- pfb(1, 1, 51, 1, colors.blue)
- scp(1,1)
- p("NextUI Settings")
- pdp(51,1, colors.red)
- pfb(3, 4, 13, 6, colors.orange)
- scp(3,5)
- stc(colors.white)
- p("Information")
- pfb(27, 4, 37, 6, colors.cyan)
- scp(27,5)
- stc(colors.white)
- p("Desktop")
- pfb(15, 4, 25, 6, colors.green)
- scp(15,5)
- stc(colors.white)
- p("Settings")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x == 51 and y == 1 then system() end
- if x>0 and x<6 and y == 19 then start() end
- if x>2 and x<14 and y>3 and y<7 then infust() end
- if x>14 and x<26 and y>3 and y<7 then setust() end
- if x>26 and x<38 and y>3 and y<7 then deskust() end
- end
- end
- function infust()
- while true do
- kolor()
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- tc()
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- pfb(1, 1, 51, 1, colors.blue)
- scp(1,1)
- stc(colors.white)
- p("Ustawienia NextUI")
- pdp(51,1, colors.red)
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- scp(1,2)
- p("Microcraft NextUI")
- p("OS version: 1.75 2nd UI Update")
- zajete = math.ceil(getSize("/")/1024)
- wolne = math.ceil(fs.getFreeSpace("/")/1024)
- p("Free disk space:", wolne, "KB")
- p("Computer name: ", os.getComputerLabel())
- if pass == "" then log = "no" else log = "yes" end
- p("Password secured: ", log)
- local event, click, x, y = os.pullEvent("mouse_click")
- if x == 51 and y == 1 then nust() end
- end
- end
- function deskust()
- while true do
- kolor()
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- tc()
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- pfb(1, 1, 51, 1, colors.blue)
- scp(1,1)
- stc(colors.white)
- p("NextUI Settings")
- pdp(51,1, colors.red)
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- scp(1,2)
- p("GUI style: NextUI Default")
- p("No more styles are available")
- p("Choose new OS main color")
- scp(1,8)
- p("Wallpaper settings")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>0 and x<25 and y == 4 then kolorw() end
- if x>0 and x<25 and y == 8 then tapetaust() end
- if x == 51 and y == 1 then nust() end
- end
- end
- function setust()
- while true do
- kolor()
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- tc()
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- pfb(1, 1, 51, 1, colors.blue)
- scp(1,1)
- stc(colors.white)
- p("NextUI Settings")
- pdp(51,1, colors.red)
- if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
- p("Change computer name")
- p("OS update")
- p("Command prompt")
- p("Change language")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>0 and x<20 and y == 2 then
- scp(1,2)
- w("Enter new name: ")
- nazwa = read()
- os.setComputerLabel(nazwa)
- setust()
- end
- if x>0 and x<20 and y == 3 then r("/os/.update") end
- if x>0 and x<20 and y == 4 then cmd() end
- if x>0 and x<20 and y == 5 then r("pastebin run yhMsgWuN") end
- if x == 51 and y == 1 then nust() end
- end
- end
- function system()
- while true do
- kolor()
- pulpit()
- mysz()
- end
- end
- pierwszeu()
- logo()
- system()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement