Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("back")
- m.clear()
- function fillTable()
- button.setTable("---> Warning <---", test1, 3,27,2,4)
- button.setTable("", test2, 3,27,6,6)
- button.setTable("Remember to make your", test3, 3,27,7,7)
- button.setTable("Ender Chest or Tank", test4, 3,27,8,8)
- button.setTable("--> Private to you <--", test5, 3,27,9,9)
- button.setTable("by adding a Diamond on", test6, 3,27,10,10)
- button.setTable("the front buckle or knob", test7, 3,27,11,11)
- button.setTable("", test8, 3,27,8,9)
- button.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- function test1()
- button.flash("Test1")
- print("Test1")
- end
- function test2()
- button.toggleButton("Test2")
- print("Test2")
- end
- function test3()
- print("Test3")
- end
- function test4()
- print("Test4")
- end
- fillTable()
- -- button.heading("Demo Button Prog")
- -- button.label(1,5,"Demo!")
- while true do
- getClick()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement