View Single Post
11-22-20, 06:36 AM   #3
Lybrial
A Flamescale Wyrmkin
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 120
Originally Posted by Xrystal View Post
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.
Hi,

no, my goal was to make them usable while in combat. But it does not seem that it is possible.

Still would be interesting why `CharacterMicroButton:Click()` does nothing.
  Reply With Quote