Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ikony()
- while true do
- tc()
- 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
- tc()
- 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
- stc(colors.white)
- pfb(1, 1, w, 1, colors.gray)
- pdp(w, 1, colors.red)
- sbc(colors.gray)
- scp(1,1)
- p("Tworzenie ikon NextUI 2.0 Beta")
- scp(1,2)
- stc(colors.white)
- 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
- p("Witamy w kreatorze ikon. Wybierz miejsce na ikone:")
- if fs.exists("/os/iko/.ico1") then iko1 = "Zajete" else iko1 = "Wolne" end
- if fs.exists("/os/iko/.ico2") then iko2 = "Zajete" else iko2 = "Wolne" end
- if fs.exists("/os/iko/.ico3") then iko3 = "Zajete" else iko3 = "Wolne" end
- scp(1,6)
- p("Ikona 1: ", iko1)
- p("Ikona 2: ", iko2)
- p("Ikona 3: ", iko3)
- local event, click, x, y = os.pullEvent("mouse_click")
- if x == w and y == 1 then system() end
- if x>0 and x<20 and y == 6 and iko1 == "Wolne" then
- scp(1,10)
- p("Wpisz sciezke skrotu: ")
- write(".>")
- sciezka = read()
- p("Wpisz nazwe skrotu: ")
- nazwa = read()
- local iko1s = fs.open("/os/iko/.ico1", "w")
- iko1s.writeLine(sciezka)
- iko1s.close()
- local iko1n = fs.open("/os/iko/.ico1n", "w")
- iko1n.writeLine(nazwa)
- iko1n.close()
- end
- if x>0 and x<20 and y == 8 and iko3 == "Wolne" then
- scp(1,10)
- p("Wpisz sciezke skrotu: ")
- write(".>")
- sciezka = read()
- p("Wpisz nazwe skrotu: ")
- nazwa = read()
- local ikon3 = fs.open("/os/iko/.ico3", "w")
- ikon3.writeLine(sciezka)
- ikon3.close()
- local ikon3n = fs.open("/os/iko/.ico3n", "w")
- ikon3n.writeLine(nazwa)
- ikon3n.close()
- end
- if x>0 and x<20 and y == 7 and iko2 == "Wolne" then
- scp(1,10)
- p("Wpisz sciezke skrotu: ")
- write(".>")
- sciezka = read()
- p("Wpisz nazwe skrotu: ")
- nazwa = read()
- local ikon2 = fs.open("/os/iko/.ico2", "w")
- ikon2.writeLine(sciezka)
- ikon2.close()
- local ikon2n = fs.open("/os/iko/.ico2n", "w")
- ikon2n.writeLine(nazwa)
- ikon2n.close()
- end
- if x>0 and x<20 and y == 6 and iko1 == "Zajete" then
- fs.delete("/os/iko/.ico1")
- fs.delete("/os/iko/.ico1n")
- end
- if x>0 and x<20 and y == 7 and iko2 == "Zajete" then
- fs.delete("/os/iko/.ico2")
- fs.delete("/os/iko/.ico2n")
- end
- if x>0 and x<20 and y == 8 and iko3 == "Zajete" then
- fs.delete("/os/iko/.ico3")
- fs.delete("/os/iko/.ico3n")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement