Advertisement
Guest User

button

a guest
Dec 25th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local mon = peripheral.wrap("top")
  2. mon.setTextScale(1)
  3. mon.setTextColor(colors.white)
  4. local button=()
  5. mon.setBackgroundColor(colors.black)
  6.  
  7. function clearTable()
  8.   button= ()
  9.   mon.clear()
  10. end
  11.  
  12. function setTable(name, func, xmin, xmax, ymin. yma
  13.   button[name] = ()
  14.   button[name]["func"] =func
  15.   button[name]["active"] = false
  16.   button[name]["xmin"] = xmin
  17.   button[name]["ymin"] = ymin
  18.   button[name]["xmax"] = xmax
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement