Originally Posted by MoonWitch
Ok, I've been constantly trying... I've tried with XML, without, with SecureAuraHeader, with SecureActionButton .. quite frankly - my "solution" worked fine for Seerah she told me, but somehow - it doesn't work for me >.<
I can only disable first most left and most right buff. So could someone be kind and help me understand a bit more?
Code is at https://github.com/moonwitch/Furbish/tree/experimental
|
As far as I understand SecureAuraHeaderTemplate the following is wrong:
- When you use :SetScript("OnEvent", ...) on "addon", you overite the SecureAuraHeader Event-Handler, so removing its functionallity. Rather use :HookScript().
- You don't need to register "UNIT_AURA" on "addon", since Blizzard does that for you.
- It's not "addon" that needs :EnableMouse() and :SetScript("OnEnter/OnLeave") you need to do this for every buff frame
- (I'm not sure on this) It seems like you want to use the default Blizzard Buff Frames, I don't know if thats possible, rather create your own (You already have in your .xml but you don't use them).
- You miss a bunch of :SetAttribute() calls. As far as i remember there are atleast 3 or so needed to display any buffs in any way. You can get all the attribute names at http://wow.go-hero.net/framexml/1311...oupHeaders.lua line 614.
- Once your BuffCount and DebuffCount reach BUFF_MAX_DISPLAY/DEBUFF_MAX_DISPLAY you unregister UNIT_AURA resulting in that Buffs are no longer updated
If you have any problems I recommend taking a look into nivBuffs it's very clean code and it's working.