Basically I setup a totem module today, but I can't get cooldown spirals to show, even tho I am following the guide.
Here's my totem code:
Code:
local function addTotemBar(self)
local Totems = {}
for i = 1, MAX_TOTEMS do
local Totem = CreateFrame("Button", nil, self)
Totem:SetSize(20, 20)
Totem:SetBackdrop(backdrop)
Totem:SetBackdropColor(0, 0, 0)
local Icon = Totem:CreateTexture(nil, "OVERLAY")
Icon:SetAllPoints()
Icon:SetTexCoord(.1, .9, .1, .9)
local Cooldown = CreateFrame("Cooldown", nil, Totem)
Cooldown:SetAllPoints()
if i == 1 then
Totem:SetPoint("TOPLEFT", self.Health, "BOTTOMLEFT", 0, -8)
else
Totem:SetPoint("LEFT", Totems[i-1], "RIGHT", 5, 0)
end
Totem.Icon = Icon
Totem.Cooldown = Cooldown
Totems[i] = Totem
end
self.Totems = Totems
end