Advertisement
Guest User

test

a guest
Jan 30th, 2015
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. os.loadAPI("button")
  2. rednet.open("top")
  3. m = peripheral.wrap("back")
  4. computerBase = 7
  5. computerDesertVillage = 9
  6. print(os.getComputerID())
  7. button = {}
  8.  
  9.  
  10. function fillTable()
  11.   button.setTable("quarry village", qv, " ", 3, 17, 1, 3)
  12.  
  13.  
  14.  
  15. end
  16.  
  17. function setTable(name, func, xmin, xmax, ymin, ymax)
  18.   button[name] = {}
  19.   button[name]["func"] = func
  20.   button[name]["active"] = false
  21.   --button[name]["param"] = param
  22.   button[name]["xmin"] = xmin
  23.   button[name]["xmax"] = xmax
  24.   button[name]["ymin"] = ymin
  25.   button[name]["ymax"] = ymax
  26. end
  27.  
  28. function checkxy(x, y)
  29.  
  30. end
  31.  
  32. function getclick()
  33.   event, side, x, y = os.pullEvent("monitor_touch")
  34.   button.checkxy(x, y)
  35. end
  36.  
  37. function qv()
  38.   rednet.send(7, "true")
  39. end
  40.  
  41. fillTable()
  42.  
  43. while true do getclick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement