Advertisement
PolskiWisnia

MineCore Pocket 2.0 menu

Feb 1st, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.24 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. if fs.exists("boot/pocket") then print("OK!")
  8. else
  9. term.clear()
  10. term.setCursorPos(1,1)
  11. print("KRYTYCZNY BLAD")
  12. print("Brakuje pliku bazowego")
  13. print("/boot/.pocket")
  14. print("Wymagana naprawa systemu")
  15. print("Uzyj MineCore Flasher")
  16. sleep(10)
  17. os.shutdown()
  18. end
  19. local image = paintutils.loadImage("/boot/pocket")
  20. paintutils.drawImage(image, 1, 1)
  21. term.setCursorPos(1,1)
  22. term.setBackgroundColor(colors.red)
  23. print("mineOS 1.0 [Info]")
  24. term.setBackgroundColor(colors.blue)
  25. term.setCursorPos(1,20)
  26. if fs.exists("/boot/ver/.11") then write("[1] Powiadomienie") else
  27. write("Brak nowych powiadomien")
  28. end
  29. term.setCursorPos(2,7)
  30. term.setTextColor(colors.black)
  31. term.setBackgroundColor(colors.white)
  32. print("MSURF")
  33. term.setCursorPos(2,12)
  34. print("TETRIS")
  35. term.setCursorPos(9,12)
  36. print("2048")
  37. local event, click, x, y = os.pullEvent("mouse_click")
  38. if x>1 and x<7 and y>2 and y<6 then
  39.  term.clear()
  40.  term.setCursorPos(1,1)
  41.  print("MineCore Mint Setup")
  42.  local event, click, x, y = os.pullEvent("mouse_click")
  43.  if x>0 and x<28 and y == 1 then shell.run("pastebin get nRZ97PMn mint_setup") print("Plik pobrano jako") print("mint_setup") sleep(2) end
  44. end
  45. if x>6 and x<12 and y>6 and y<13 then shell.run("/boot/.2048") end
  46. if x>1 and x<7 and y>6 and y<13 then shell.run("falling") end
  47. if x>0 and x<28 and y == 1 then
  48.  term.setBackgroundColor(colors.white)
  49.  term.clear()
  50.  term.setTextColor(colors.white)
  51.  term.setBackgroundColor(colors.orange)
  52.  term.setCursorPos(1,2)
  53.  print("Wyjdz do CraftOS")
  54.  print("Aktualizuj urzadzenie")
  55.  print("Restartuj urzadzenie")
  56.  print("Wylacz urzadzenie")
  57.  term.setBackgroundColor(colors.cyan)
  58.  print("To urzadzenie:")
  59.  print("System:")
  60.  print("mineOS  'Gekko'")
  61.  print("MineCore powered")
  62.  print("Ekran: 27x20")
  63.  print("Jadro OS: MineCore1")
  64.  print("Procesor CPU:")
  65.  print("ComputerCraft-class")
  66.  print("Wolne miejsce:")
  67.  print(fs.getFreeSpace("/")/1024, "kB")
  68.  print("Autorem systemu jest Wisnia#5536")
  69.  local event, click, x, y = os.pullEvent("mouse_click")
  70.  if x>0 and x<28 and y == 2 then break end
  71.  if x>0 and x<28 and y == 5 then os.shutdown() end
  72.  if x>0 and x<28 and y == 4 then os.reboot() end
  73.  if x>0 and x<28 and y == 3 then term.setCursorPos(1,17) shell.run("rm /boot/.update") shell.run("pastebin get xnimHwHU /boot/.update") shell.run("/boot/.update") end
  74. end
  75. if x>0 and x<28 and y == 19 then
  76.  term.setBackgroundColor(colors.blue)
  77.  term.clear()
  78.  term.setBackgroundColor(colors.blue)
  79.  term.setTextColor(colors.white)
  80.  term.setCursorPos(1,1)
  81.  if fs.exists("/boot/ver/.11") then print("Dostepna aktualizacja") else
  82.  print("Brak powiadomien")
  83.  end
  84.  local event, click, x, y = os.pullEvent("mouse_click")
  85.  if x>0 and x<28 then shell.run("/os/.10") end
  86.  end
  87. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement