tommyroyall

Untitled

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