View Single Post
11-22-20, 04:43 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,925
If your goal was to hide and show the buttons dependant on whether in combat or not you could use the Events that monitor regeneration as that happens just before and just after combat and can be used to make any frame changes.

I use it to disable clickable buttons or hide frames that contain items that are only usable out of combat.

PLAYER_REGEN_DISABLED
- Fired whenever you enter combat, as normal regen rates are disabled during combat. This means that either you are in the hate list of a NPC or that you've been taking part in a pvp action (either as attacker or victim).

PLAYER_REGEN_ENABLED
Fired after ending combat, as regen rates return to normal. Useful for determining when a player has left combat. This occurs when you are not on the hate list of any NPC, or a few seconds after the latest pvp attack that you were involved with.


If this wasn't what you were hoping to do with the frames maybe you could clarify what your ideas were.
__________________


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