Advertisement
PolskiWisnia

April Update

Mar 8th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.02 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. if fs.exists("/os/.pulpit") then obrazek = 1 else obrazek = 0 end
  9. local image = paintutils.loadImage("/os/.pulpit")
  10. if obrazek == 1 then paintutils.drawImage(image, 1, 1) else term.setBackgroundColor(colors.black) term.clear() term.setBackgroundColor(colors.black) end
  11. term.setBackgroundColor(colors.red)
  12. term.setTextColor(colors.white)
  13. term.setCursorPos(1,6)
  14. print("System MineCore April Update stracil juz wsparcie techniczne. Zalecamy przejscie na MineCore NextUI.")
  15. term.setBackgroundColor(colors.green)
  16. term.setCursorPos(1,19)
  17. write("Start")
  18. local event, click, x, y = os.pullEvent("mouse_click")
  19. if x>0 and x<6 and y == 19  then
  20.  term.setBackgroundColor(colors.blue)
  21.  term.setCursorPos(1,18)
  22.  print("Wyjdz do CraftOS ")
  23.  term.setCursorPos(1,17)
  24.  print("Programy         ")
  25.  term.setCursorPos(1,16)
  26.  print("Ustawienia       ")
  27.  term.setCursorPos(1,15)
  28.  print("Komenda /run     ")
  29.  term.setCursorPos(1,14)
  30.  print("Zasilanie        ")
  31.  term.setCursorPos(1,13)
  32.  term.setBackgroundColor(colors.green)
  33.  textutils.slowPrint("Microcraft MineUI")
  34.  term.setBackgroundColor(colors.black)
  35.  local event, click, x, y = os.pullEvent("mouse_click")
  36.  if x>0 and x<10 and y == 14 then
  37.  term.setBackgroundColor(colors.white)
  38.  term.setTextColor(colors.black)
  39.  term.setCursorPos(2,6)
  40.  print("Wylacz komputer ")
  41.  term.setCursorPos(2,7)
  42.  print("Uruchom ponownie")
  43.  local event, click, x, y = os.pullEvent("mouse_click")
  44.  if x>2 and x<15 and y == 2 then os.shutdown() end
  45.  if x>2 and x<15 and y == 3 then os.reboot() end
  46. end
  47.  if x>0 and x<10 and y == 18 then term.clear() term.setCursorPos(1,1) error("") end
  48.  if x>0 and x<17 and y == 15 then term.setCursorPos(1,2) print("Wpisz nazwe pliku")
  49.  term.setCursorPos(1,3)
  50.  write("")
  51.  program = read()
  52.  if fs.exists(program) then
  53.    shell.run(program)
  54.    else print("Blad")
  55.    sleep(2)
  56.  end end
  57.  if x>0 and x<10 and y == 17 then
  58.   local image2 = paintutils.loadImage("/os/.programy")
  59.   paintutils.drawImage(image2, 1, 1)
  60.   term.setTextColor(colors.white)
  61.   term.setCursorPos(1,1)
  62.   print("Programy")
  63.   term.setTextColor(colors.black)
  64.   term.setBackgroundColor(colors.white)
  65.   term.setCursorPos(3,7)
  66.   print("LuaIDE")
  67.   term.setCursorPos(10,7)
  68.   print("Paint")
  69.   term.setCursorPos(17,8)
  70.   print("2048")
  71.   local event, click, x, y = os.pullEvent("mouse_click")
  72.   if x>2 and x<7 and y>2 and y<7 then term.setCursorPos(1,9) write("Wpisz nazwe pliku: ") plik = read() shell.run("/os/.luaide", plik)  end
  73.   if x>9 and x<16 and y>2 and y<7 then term.setCursorPos(1,9) write("Wpisz nazwe pliku: ") paint = read() shell.run("paint", paint)  end
  74.   if x>16 and x<24 and y>2 and y<7 then shell.run("/os/.2048") end
  75.  end
  76.  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
  77.  term.setBackgroundColor(colors.white)
  78.  term.setTextColor(colors.black)
  79.  term.setCursorPos(1,1)
  80.  print("Ustawienia")
  81.  term.setCursorPos(3,6)
  82.  print("Zmien nazwe komputera")
  83.  term.setCursorPos(3,8)
  84.  print("Uruchom ponownie z dyskietki")
  85.  term.setCursorPos(3,10)
  86.  print("Informacje o komputerze")
  87.  local event, click, x, y = os.pullEvent("mouse_click")
  88.  if x>2 and x<20 and y == 6 then term.setCursorPos(3,6) write("Wpisz nowa nazwe: ") nazwa = read() os.setComputerLabel(nazwa) end
  89.  if x>2 and x<20 and y == 8 then if fs.exists("/disk/startup") then os.reboot() else print("Blad stacji, badz plik /disk/startup nie istnieje.") end end
  90.  if x>2 and x<20 and y == 10 then shell.run("/os/.info") end
  91. end
  92. end
  93. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement