Thread: .visibleAuras
View Single Post
07-23-10, 04:42 PM   #7
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
Originally Posted by Saiket View Post
You and p3lim were thinking of .numBuffs and .numDebuffs. .visibleAuras/Buffs/Debuffs changes to reflect the actual number of aura buttons shown.
That's what I got from the oUF code too, since .visibleAuras (...) it's a sum of .visibleBuffs and .visibleDebuffs.

This is what I have to create my Auras (and it's working):

Code:
-- Auras
        local createAuras = function(self)
        
                local Auras = CreateFrame("Frame", nil, self)
                self.Auras = Auras
                Auras:SetPoint("BOTTOMLEFT", self, "BOTTOMLEFT", -2, 100)
                Auras.initialAnchor = "TOPLEFT"
                Auras["growth-y"] = "TOP"
                Auras.size = 24
                Auras:SetHeight(24)
                Auras:SetWidth(24)
                Auras.num = 7
                Auras.spacing = 2
                
                Auras.PostCreateIcon = myPostCreateAura
                Auras.PostUpdateIcon = myPostUpdateAura
        end
And then I have a Custom PostUpdateIcon function (I have another one only for the normal Buffs/Debuffs and this one for the .Auras).

When I return Auras.visibleDebuffs to a local variable and try to access it it says gives the error I've displayed above.

When I get back home, I'll put my latest revision code in googlecode so I can show it here.

It should be simple, I just don't get it why It doesn't work.

I want to know how many auras I've up so I can do a cycle to go through all the auras that are active.
__________________
My oUF Layout: oUF Lumen
  Reply With Quote