Guest User

main

a guest
Aug 17th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. local mon = peripheral.wrap("top")
  2.  
  3. local t = {
  4.           {text = "help", ymin = 3, ymax = 6, xmin = 8, xmax = 16, txCol = colours.black, bgCol = colours.lime}
  5. }    
  6.  
  7. function writeButton(_table)
  8.   for i,v in pairs(_table) do
  9.     mon.setCursorpos(v.xmax, v.ymin)
  10.     mon.write(v.text)
  11.     mon.setTextcolour(txCol)
  12.     mon.setBackgroundcolour(bgCol)
  13.   end
  14. end
  15.  
  16. while true do
  17.   writeButton(t)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment