Thread Tools Display Modes
05-14-16, 07:39 AM   #1
Wiggyboy
Guest
Posts: n/a
Hiding SecureActionButtonTemplate

Hello,

I'm working in WeakAuras 2 making custom triggers and icons etc... Some of these icons I have made buttons for, using "SecureActionButtonTemplate" to cast/use spells/items. Problem is, I have put them to only load out of combat, but they still load inside of combat.

After doing my research and homework I figure here's the reason: Once entering combat WeakAuras hides the frames, but is unable to due to the "SecureActionButtonTemplate" not being able to toggle show/hide state during combat.

I don't want the button to be able to show/hide during combat, I want it only to be visibly outside of combat. Meaning, whenever in combat, it should always be hidden. Is this possible somehow? Is there an event that trigger just before entering combat that I could use to hide the button?

I googled some, the only resources on this I could find is a Armory post:
http://us.battle.net/wow/en/forum/topic/6607331807
But I tried this, and either it didn't work or it just gave loads of errors.

Any help is appreciated!
  Reply With Quote
05-14-16, 09:44 AM   #2
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
PLAYER_REGEN_DISABLED fires upon entering combat, before the UI is locked down. You can use that.
__________________
Grab your sword and fight the Horde!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Hiding SecureActionButtonTemplate


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off