Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- rednet.open("top")
- m = peripheral.wrap("back")
- m.clear()
- function button1() button.toggleButton("-1")
- rednet.broadcast("-1")
- button.toggleButton("-1")
- end
- end
- function button2() button.toggleButton("-2")
- rednet.broadcast("-2")
- button.toggleButton("-2")
- end
- end
- function button3() button.toggleButton("-3")
- rednet.broadcast("-3")
- button.toggleButton("-3")
- end
- end
- function ecran()
- button.setTable("-1",button1,8,25,3,3)
- button.setTable("-2",button2,8,25,6,6)
- button.setTable("-3",button2,8,25,9,9)
- button.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- ecran()
- while true do getClick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement