Advertisement
PolskiWisnia

MineCore 2nd March update

Mar 12th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.32 KB | None | 0 0
  1. -- Oprogramowanie skladowe/instalator systemow/czesc skladowa stworzonych przez uzytkownika serwisu Discord - Wisnia#5536 --
  2. -- Jesli zaplaciles za to oprogramowanie zostales oszukany. --
  3. -- Zakazuje sie kopiowania oprogramowania bez zgody autora, czerpania korzysci materialnych, podpisywania sie pod oprogramowaniem --
  4. -- Dozwolone jest tworzenie modyfikacji oprogramowania badz jego czesci wylacznie wtedy, gdy widoczna jest informacja o oryginalnym autorze --
  5. -- Kompletna EULA dostepna jest na serwerze Discord: CRfXMXU --
  6. while true do
  7. -- Ten kod jest moj arczez, nie twoj --
  8. term.clear()
  9. if fs.exists("/os/.pulpit") then obrazek = 1 else obrazek = 0 end
  10. local image = paintutils.loadImage("/os/.pulpit")
  11. if obrazek == 1 then paintutils.drawImage(image, 1, 1) else term.setBackgroundColor(colors.black) term.clear()
  12. term.setBackgroundColor(colors.black) end
  13. term.setBackgroundColor(colors.red)
  14. term.setTextColor(colors.white)
  15. term.setCursorPos(1,2)
  16. print("Ta wersja systemu MineCore zostala porzucona przez Microcraft. Zalecamy przejscie na NextUI.")
  17. term.setTextColor(colors.white)
  18. term.setCursorPos(1,19)
  19. write("Start")
  20. term.setCursorPos(51,1)
  21. print("M")
  22. local event, click, x, y = os.pullEvent("mouse_click")
  23. if x == 51 and y == 1 then
  24.  term.setCursorPos(x-15, 2)
  25.  term.setBackgroundColor(colors.black)
  26.  print("Komenda /run   *")
  27.  term.setCursorPos(x-15, 3)
  28.  print("Edytor pulpitu *")
  29.  local event, click, a, b = os.pullEvent("mouse_click")
  30.  if a == x and b == 2 then term.setCursorPos(1,2) print("Wpisz nazwe pliku")
  31.  term.setCursorPos(1,3)
  32.  write("")
  33.  program = read()
  34.  if fs.exists(program) then
  35.    shell.run(program)
  36.    else print("Blad")
  37.    sleep(2)
  38.  end end
  39.  if a == x and b == 3 then shell.run("paint /os/.pulpit") end
  40. end
  41. if x>0 and x<6 and y == 19  then
  42.  term.setBackgroundColor(colors.blue)
  43.  term.setCursorPos(1,18)
  44.  print("Wyjdz do CraftOS ")
  45.  term.setCursorPos(1,17)
  46.  print("Programy         ")
  47.  term.setCursorPos(1,16)
  48.  print("Ustawienia       ")
  49.  term.setCursorPos(1,15)
  50.  term.setBackgroundColor(colors.green)
  51.  textutils.slowPrint("Microcraft MineUI", 20)
  52.  term.setBackgroundColor(colors.black)
  53.  local event, click, x, y = os.pullEvent("mouse_click")
  54.  if x>0 and x<10 and y == 18 then term.clear() term.setCursorPos(1,1) error("Opuszczono MineUI. Aby wrocic do systemu MineCore wpisz cd os, a nastepnie .menu") end
  55.  if x>0 and x<10 and y == 17 then
  56.  x = 0
  57.  y = 0
  58.  term.setCursorPos(2,2)
  59.  print("Programy i gry MineCore")
  60.  term.setCursorPos(2,3)
  61.  print("2048")
  62.  term.setCursorPos(2,4)
  63.  print("Snake")
  64.  term.setCursorPos(2,5)
  65.  print("LuaIDE")
  66.  term.setCursorPos(2,6)
  67.  print("NPaintPro")
  68.  term.setCursorPos(2,7)
  69.  print("Kolko krzyzyk")
  70.  local event, click, x, y = os.pullEvent("mouse_click")
  71.  if x>0 and x<5 and y == 3 then shell.run("/os/.2048") end
  72.  if x>0 and x<6 and y == 4 then shell.run("worm") end
  73.  if x>0 and x<7 and y == 7 then shell.run("/os/.kolko") end
  74.  if x>0 and x<7 and y == 5 then
  75.  term.setCursorPos(1,5)
  76.  print("Wpisz nazwe pliku, jaki chcesz edytowac")
  77.  write(".>")
  78.  plik = read()
  79.  shell.run("/os/.luaide", plik)
  80.  end
  81.  if x>0 and x<6 and y == 6 then
  82.  term.setCursorPos(1,7)
  83.  print("Wpisz nazwe pliku, jaki chcesz edytowac")
  84.  write(".>")
  85.  plik = read()
  86.  shell.run("/os/.paint", plik)
  87.  end
  88.  end
  89.  if x>0 and x<10 and y == 16 then
  90.  term.setCursorPos(2,2)
  91.  print("Ustawienia MineCore")
  92.  term.setCursorPos(2,3)
  93.  print("Zmien nazwe komputera")
  94.  term.setCursorPos(2,4)
  95.  print("[Zmien]")
  96.  term.setCursorPos(2,5)
  97.  print("Wyswietl informacje o komputerze")
  98.  term.setCursorPos(2,6)
  99.  print("[Informacje]")
  100.  term.setCursorPos(2,7)
  101.  print("Uruchom ponownie z dyskietki")
  102.  term.setCursorPos(2,8)
  103.  print("[Uruchom ponownie]")
  104.  local event, click, x, y = os.pullEvent("mouse_click")
  105.  if x == 1 and y == 4 or x == 2 and y == 4 or x == 3 and y == 4 then term.setCursorPos(2,9) write("Wpisz nowa nazwe komputera:") nazwa = read() os.setComputerLabel(nazwa) os.reboot() end
  106.  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/.info") end  
  107.  end
  108.  if x>0 and x<25 and y == 8 then
  109.   if fs.exists("/disk/startup") then os.reboot() else print("Blad stacji. Sprawdz czy dyskietka sie w niej znajduje!") end
  110.  end
  111. end
  112. if x == 50 and y == 19 then os.reboot() end
  113. if x == 51 and y == 19 then os.shutdown() end
  114. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement