Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("top")
- os.loadAPI("button")
- rednet.open("bottom")
- function red1()
- rednet.send(1, "Start")
- rednet.send(3, "Start")
- end
- function red2()
- rednet.send(2, "Start")
- rednet.send(3, "Start")
- end
- function red4()
- rednet.send(4, "Start")
- rednet.send(3, "Start")
- end
- function red5()
- rednet.send(5, "Start")
- rednet.send(3, "Start")
- end
- local w,h = m.getSize()
- print("Width: "..w.." Height: "..h)
- button.setMon("top")
- button.add("Abutton", "Maskin rum ", "flash", 3, 2, 16, 4, colors.gray, colors.lime, colors.white, red1)
- button.setState("Abutton", false)
- button.add("Bbutton", "Mine ", "flash", 3, 6, 16, 8, colors.gray, colors.lime, colors.white, red2)
- button.setState("Bbutton", false)
- button.add("Cbutton", "Farm ", "flash", 3, 10, 16, 12, colors.gray, colors.lime, colors.white, red4)
- button.setState("Cbutton", false)
- button.add("Dbutton", "Test ", "flash", 3, 10, 16, 12, colors.gray, colors.lime, colors.white, red5)
- button.setState("Dbutton", false)
- button.draw()
- while true do
- button.check()
- end
Advertisement
Add Comment
Please, Sign In to add comment