Advertisement
PolskiWisnia

March [ENG]

Mar 7th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.46 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() term.setBackgroundColor(colors.black) end
  12. term.setTextColor(colors.white)
  13. term.setCursorPos(1,19)
  14. write("Start")
  15. local event, click, x, y = os.pullEvent("mouse_click")
  16. if x>0 and x<6 and y == 19  then
  17.  term.setBackgroundColor(colors.blue)
  18.  term.setCursorPos(1,18)
  19.  print("Exit to CraftOS  ")
  20.  term.setCursorPos(1,17)
  21.  print("Programs & games ")
  22.  term.setCursorPos(1,16)
  23.  print("Settings         ")
  24.  term.setCursorPos(1,15)
  25.  print("Run program      ")
  26.  term.setCursorPos(1,14)
  27.  term.setBackgroundColor(colors.green)
  28.  textutils.slowPrint("Microcraft MineUI")
  29.  term.setBackgroundColor(colors.black)
  30.  local event, click, x, y = os.pullEvent("mouse_click")
  31.  if x>0 and x<10 and y == 18 then term.clear() term.setCursorPos(1,1) error("") end
  32.  if x>0 and x<17 and y == 15 then term.setCursorPos(1,2) print("Enter file name")
  33.  term.setCursorPos(1,3)
  34.  write("")
  35.  program = read()
  36.  if fs.exists(program) then
  37.    shell.run(program)
  38.    else print("Error - file", program, "doesn't exist")
  39.    sleep(2)
  40.  end end
  41.  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
  42.  x = 0
  43.  y = 0
  44.  term.setCursorPos(1,2)
  45.  print("MineCore programs & games")
  46.  print("2048")
  47.  print("Snake")
  48.  print("LuaIDE")
  49.  print("Paint")
  50.  local event, click, x, y = os.pullEvent("mouse_click")
  51.  if x>0 and x<5 and y == 3 then shell.run("/os/.2048") end
  52.  if x>0 and x<6 and y == 4 then shell.run("worm") end
  53.  if x>0 and x<7 and y == 5 then
  54.  term.setCursorPos(1,5)
  55.  print("Enter name of the file you want to edit")
  56.  write(".>")
  57.  plik = read()
  58.  shell.run("/os/.luaide", plik)
  59.  end
  60.  if x>0 and x<6 and y == 6 then
  61.  term.setCursorPos(1,7)
  62.  print("Enter name of the file you want to edit")
  63.  write(".>")
  64.  plik = read()
  65.  shell.run("paint", plik)
  66.  end
  67.  end
  68.  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
  69.  term.setCursorPos(1,2)
  70.  print("MineCore Settings")
  71.  print("Change computer label")
  72.  print("[Change]")
  73.  print("Information about this PC")
  74.  print("[Information]")
  75.  print("Reboot from disk")
  76.  print("[Reboot]")
  77.  local event, click, x, y = os.pullEvent("mouse_click")
  78.  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
  79.  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  
  80.  end
  81.  if x>0 and x<25 and y == 8 then
  82.   if fs.exists("/disk/startup") then os.reboot() else print("Disk drive error. Check if the disk is present in the drive.") end
  83.  end
  84. end
  85. if x == 50 and y == 19 then os.reboot() end
  86. if x == 51 and y == 19 then os.shutdown() end
  87. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement