Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------
- rednet.open("back")
- print("Zadaj kod")
- kod = read("*")
- term.setBackgroundColor(colors.lightBlue)
- term.clear()
- term.setBackgroundColor(colors.gray)
- term.setCursorPos(3,3)
- print(">")
- term.setCursorPos(3,5)
- print(">")
- term.setCursorPos(3,7)
- print(">")
- term.setCursorPos(1,1)
- print(" Mordapan System 3 ")
- term.setBackgroundColor(colors.lightBlue)
- term.setTextColor(colors.black)
- term.setCursorPos(5,3)
- print("Prebyt")
- term.setCursorPos(5,5)
- print("Vystrelit")
- term.setCursorPos(5,7)
- print("Ukoncit program")
- ----------
- while true do
- local event, button, xpos, ypos = os.pullEvent("mouse_click")
- if xpos==3 and ypos==3 then
- rednet.broadcast(1*kod)
- elseif xpos==3 and ypos==5 then
- rednet.broadcast(2*kod)
- elseif xpos==3 and ypos==7 then
- os.exit()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement