Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- rednet.open("top")
- m = peripheral.wrap("back")
- computerBase = 7
- computerDesertVillage = 9
- print(os.getComputerID())
- button = {}
- function fillTable()
- button.setTable("quarry village", qv, " ", 3, 17, 1, 3)
- end
- function setTable(name, func, xmin, xmax, ymin, ymax)
- button[name] = {}
- button[name]["func"] = func
- button[name]["active"] = false
- --button[name]["param"] = param
- button[name]["xmin"] = xmin
- button[name]["xmax"] = xmax
- button[name]["ymin"] = ymin
- button[name]["ymax"] = ymax
- end
- function checkxy(x, y)
- end
- function getclick()
- event, side, x, y = os.pullEvent("monitor_touch")
- button.checkxy(x, y)
- end
- function qv()
- rednet.send(7, "true")
- end
- fillTable()
- while true do getclick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement