Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- peripheral.wrap("right")
- m = peripheral.wrap("montior_1")
- m.clear()
- function fillTable()
- button.setTable("Test 1", test1, 10, 30, 3, 5)
- button.setTable("Test 2", test2, 32, 52, 3, 5)
- button.setTable("Test 3", test3, 10, 30, 8, 10)
- button.setTable("Test 4", test4, 32, 52, 8, 10)
- button.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- function test1()
- button.toggleButton("Test 1")
- terminate()
- outTime(760)
- dialStored(0)
- end
- function test2()
- button.toggleButton("Test 2")
- terminate()
- outTime(760)
- dialStored(1)
- end
- function test3()
- button.toggleButton("Test 3")
- terminate()
- outTime(760)
- dialStored(2)
- end
- function test4()
- button.toggleButton("Test 4")
- terminate()
- outTime(760)
- dialStored(3)
- end
- fillTable()
- button.heading("Stargate Dialing Computer")
- while true do
- getClick()
- end
Advertisement
Add Comment
Please, Sign In to add comment