Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("top")
- m.clear()
- local text = 0
- function fillTable()
- button.setTable("Test", test, 10,20,3,5)
- button.setTable("Test", test, 22,32,3,5)
- button.setTable("Test", test, 10,20,8,10)
- button.setTable("Test", test, 22,32,8,10)
- button.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- function test()
- print("This is a test!")
- sleep(2)
- os.run({}, "startup")
- end
- fillTable()
- button.heading("Waslie Store")
- button.label(1,5,"Store")
- while true do
- getClick()
- end
Advertisement
Add Comment
Please, Sign In to add comment