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!