tommyroyall

Untitled

Oct 29th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. print("Option Selector:")
  2. print("O - Print A")
  3. print("O - Print B")
  4. print("O - Print C")
  5.  
  6. while true do
  7. local event, button, X, Y = os.pullEvent("mouse_click")
  8. XY = X..","..Y
  9. if XY == "1,2" then
  10. -- Do stuff for Option 1
  11. print("A")
  12. end
  13. if XY == "1,3" then
  14. -- Do stuff for Option 2
  15. print("B")
  16. end
  17. if XY == "1,4" then
  18. -- Do stuff for Option 3
  19. print("C")
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment