Advertisement
PolskiWisnia

NextUI 2.0 Icons

Oct 19th, 2020
1,980
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.49 KB | None | 0 0
  1. function ikony()
  2. while true do
  3. tc()
  4. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.green) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.white) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  5. tc()
  6. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.green) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.white) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  7. stc(colors.white)
  8. pfb(1, 1, w, 1, colors.gray)
  9. pdp(w, 1, colors.red)
  10. sbc(colors.gray)
  11. scp(1,1)
  12. p("Tworzenie ikon NextUI 2.0 Beta")
  13. scp(1,2)
  14. stc(colors.white)
  15. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  16. p("Witamy w kreatorze ikon. Wybierz miejsce na ikone:")
  17. if fs.exists("/os/iko/.ico1") then iko1 = "Zajete" else iko1 = "Wolne" end
  18. if fs.exists("/os/iko/.ico2") then iko2 = "Zajete" else iko2 = "Wolne" end
  19. if fs.exists("/os/iko/.ico3") then iko3 = "Zajete" else iko3 = "Wolne" end
  20. scp(1,6)
  21. p("Ikona 1: ", iko1)
  22. p("Ikona 2: ", iko2)
  23. p("Ikona 3: ", iko3)
  24. local event, click, x, y = os.pullEvent("mouse_click")
  25. if x == w and y == 1 then system() end
  26.  
  27. if x>0 and x<20 and y == 6 and iko1 == "Wolne" then
  28.  scp(1,10)
  29.  p("Wpisz sciezke skrotu: ")
  30.  write(".>")
  31.  sciezka = read()
  32.  p("Wpisz nazwe skrotu: ")
  33.  nazwa = read()
  34.  local iko1s = fs.open("/os/iko/.ico1", "w")
  35.  iko1s.writeLine(sciezka)
  36.  iko1s.close()
  37.  local iko1n = fs.open("/os/iko/.ico1n", "w")
  38.  iko1n.writeLine(nazwa)
  39.  iko1n.close()
  40. end
  41. if x>0 and x<20 and y == 8 and iko3 == "Wolne" then
  42.  scp(1,10)
  43.  p("Wpisz sciezke skrotu: ")
  44.  write(".>")
  45.  sciezka = read()
  46.  p("Wpisz nazwe skrotu: ")
  47.  nazwa = read()
  48.  local ikon3 = fs.open("/os/iko/.ico3", "w")
  49.  ikon3.writeLine(sciezka)
  50.  ikon3.close()
  51.  local ikon3n = fs.open("/os/iko/.ico3n", "w")
  52.  ikon3n.writeLine(nazwa)
  53.  ikon3n.close()
  54. end
  55. if x>0 and x<20 and y == 7 and iko2 == "Wolne" then
  56.  scp(1,10)
  57.  p("Wpisz sciezke skrotu: ")
  58.  write(".>")
  59.  sciezka = read()
  60.  p("Wpisz nazwe skrotu: ")
  61.  nazwa = read()
  62.  local ikon2 = fs.open("/os/iko/.ico2", "w")
  63.  ikon2.writeLine(sciezka)
  64.  ikon2.close()
  65.  local ikon2n = fs.open("/os/iko/.ico2n", "w")
  66.  ikon2n.writeLine(nazwa)
  67.  ikon2n.close()
  68. end
  69. if x>0 and x<20 and y == 6 and iko1 == "Zajete" then
  70.  fs.delete("/os/iko/.ico1")
  71.  fs.delete("/os/iko/.ico1n")
  72. end
  73. if x>0 and x<20 and y == 7 and iko2 == "Zajete" then
  74.  fs.delete("/os/iko/.ico2")
  75.  fs.delete("/os/iko/.ico2n")
  76. end
  77. if x>0 and x<20 and y == 8 and iko3 == "Zajete" then
  78.  fs.delete("/os/iko/.ico3")
  79.  fs.delete("/os/iko/.ico3n")
  80. end
  81. end
  82. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement