wasliebob

Showcase

Aug 14th, 2013
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1.  
  2.  
  3. os.loadAPI("button")
  4. m = peripheral.wrap("top")
  5. m.clear()
  6.  
  7. local text = 0
  8.  
  9. function fillTable()
  10. button.setTable("Test", test, 10,20,3,5)
  11. button.setTable("Test", test, 22,32,3,5)
  12. button.setTable("Test", test, 10,20,8,10)
  13. button.setTable("Test", test, 22,32,8,10)
  14. button.screen()
  15. end
  16.  
  17. function getClick()
  18. event,side,x,y = os.pullEvent("monitor_touch")
  19. button.checkxy(x,y)
  20. end
  21.  
  22. function test()
  23. print("This is a test!")
  24. sleep(2)
  25. os.run({}, "startup")
  26. end
  27.  
  28.  
  29. fillTable()
  30. button.heading("Waslie Store")
  31. button.label(1,5,"Store")
  32.  
  33. while true do
  34. getClick()
  35. end
Advertisement
Add Comment
Please, Sign In to add comment