Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- mon = button.wrapmon("top")
- mon.clear()
- function fillTable()
- button.setTable("1", type1, 4, 8, 4, 6)
- button.setTable("4", type1, 4, 8, 7, 9)
- button.screen(mon)
- end
- function getClick()
- event, side, x, y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- function type1()
- button.flash("1",mon)
- print("trol")
- end
- fillTable()
- while true do
- getClick()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement