Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-11-14, 07:20 PM   #1
Dakini
A Defias Bandit
 
Dakini's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 2
Help getting cooldown to show on totem icons...

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
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Help getting cooldown to show on totem icons...


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