I handle user interaction using the pre and post combat events.
PLAYER_REGEN_DISABLED
PLAYER_REGEN_ENABLED
When the event DISABLED is triggered this means you are about to initiate combat so do what you need to stop people from using your frames during this time. Either disable buttons or hide the frame etc.
When the event ENABLED is triggered combat is finished and you can now allow them to interact with the frames. Enable buttons or show the frame etc.
|