Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Oprogramowanie skladowe/instalator systemow/czesc skladowa stworzonych przez uzytkownika serwisu Discord - Wisnia#5536 --
- -- Jesli zaplaciles za to oprogramowanie zostales oszukany. --
- -- Zakazuje sie kopiowania oprogramowania bez zgody autora, czerpania korzysci materialnych, podpisywania sie pod oprogramowaniem --
- -- Dozwolone jest tworzenie modyfikacji oprogramowania badz jego czesci wylacznie wtedy, gdy widoczna jest informacja o oryginalnym autorze --
- -- Kompletna EULA dostepna jest na serwerze Discord: CRfXMXU --
- while true do
- -- Ten kod jest moj arczez, nie twoj --
- term.clear()
- if fs.exists("/os/.pulpit") then obrazek = 1 else obrazek = 0 end
- local image = paintutils.loadImage("/os/.pulpit")
- if obrazek == 1 then paintutils.drawImage(image, 1, 1) else term.setBackgroundColor(colors.black) term.clear() term.setBackgroundColor(colors.black) end
- term.setTextColor(colors.white)
- term.setCursorPos(1,19)
- write("Start")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>0 and x<6 and y == 19 then
- term.setBackgroundColor(colors.blue)
- term.setCursorPos(1,18)
- print("Exit to CraftOS ")
- term.setCursorPos(1,17)
- print("Programs & games ")
- term.setCursorPos(1,16)
- print("Settings ")
- term.setCursorPos(1,15)
- print("Run program ")
- term.setCursorPos(1,14)
- term.setBackgroundColor(colors.green)
- textutils.slowPrint("Microcraft MineUI")
- term.setBackgroundColor(colors.black)
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>0 and x<10 and y == 18 then term.clear() term.setCursorPos(1,1) error("") end
- if x>0 and x<17 and y == 15 then term.setCursorPos(1,2) print("Enter file name")
- term.setCursorPos(1,3)
- write("")
- program = read()
- if fs.exists(program) then
- shell.run(program)
- else print("Error - file", program, "doesn't exist")
- sleep(2)
- end end
- if x == 1 and y == 17 or x == 2 and y == 17 or x == 3 and y == 17 or x == 4 and y == 17 then
- x = 0
- y = 0
- term.setCursorPos(1,2)
- print("MineCore programs & games")
- print("2048")
- print("Snake")
- print("LuaIDE")
- print("Paint")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>0 and x<5 and y == 3 then shell.run("/os/.2048") end
- if x>0 and x<6 and y == 4 then shell.run("worm") end
- if x>0 and x<7 and y == 5 then
- term.setCursorPos(1,5)
- print("Enter name of the file you want to edit")
- write(".>")
- plik = read()
- shell.run("/os/.luaide", plik)
- end
- if x>0 and x<6 and y == 6 then
- term.setCursorPos(1,7)
- print("Enter name of the file you want to edit")
- write(".>")
- plik = read()
- shell.run("paint", plik)
- end
- end
- if x == 1 and y == 16 or x == 2 and y == 16 or x == 3 and y == 16 or x == 4 and y == 16 then
- term.setCursorPos(1,2)
- print("MineCore Settings")
- print("Change computer label")
- print("[Change]")
- print("Information about this PC")
- print("[Information]")
- print("Reboot from disk")
- print("[Reboot]")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>0 and x<7 and y == 4 then term.setCursorPos(1,4) write("Enter new label:") nazwa = read() os.setComputerLabel(nazwa) os.reboot() end
- if x == 1 and y == 6 or x == 2 and y == 6 or x == 3 and y == 6 or x == 4 and y == 6 then shell.run("/os/.informacje") end
- end
- if x>0 and x<25 and y == 8 then
- if fs.exists("/disk/startup") then os.reboot() else print("Disk drive error. Check if the disk is present in the drive.") end
- end
- end
- if x == 50 and y == 19 then os.reboot() end
- if x == 51 and y == 19 then os.shutdown() end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement