Quantcast
Totem Tag - help needed - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-11-13, 01:01 PM   #1
Pyrates
A Cliff Giant
 
Pyrates's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 77
Totem Tag - help needed

Hi all!

Can someone tell me what's wrong with the following tag?

Code:
oUF.Tags.Methods["shrooms"] = function(u)
	local count = 0
	for i=1,3 do
		local _,_,_,dur = GetTotemInfo(i)
		if dur > 0 then
			count = count + 1
		end
	end

	local color = cfg.colors.power.CP[2*count-1]

	if count == 0 then
		return("")
	else
		return ("|cFF%.2x%.2x%.2x%s|r"):format(color[1] * 255, color[2] * 255, color[3] * 255, count)
	end
end
oUF.Tags.Events['shrooms'] = 'PLAYER_TOTEM_UPDATE'
oUF.Tags.SharedEvents["PLAYER_TOTEM_UPDATE"] = true
I've confirmed the the fontstring it's tagged on is there and shows up if I set a text, the event fires properly... I'm at a loss. Thanks for any help!
__________________
" ... and the Vogon will do things to you that you wish you'd never been born, or, if you're a clearer minded thinker, that the Vogon had never been born."
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Totem Tag - help needed

Thread Tools
Display Modes

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