Advertisement
Guest User

button

a guest
Jun 28th, 2017
61
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("right")
  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. function setTable(name, func, xmin, ymin, yma
  12.    button[name] = {}
  13.    button[name]["func"] = func
  14.    button[name]["active"] = false
  15.    button[name]["xmin"] = xmin
  16.    button[name]["ymin"] = ymin
  17.    button[name]["xmax"] = xmax
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement