View Single Post
06-25-21, 03:05 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
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.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote