Originally Posted by p3lim
You have a problem with a tag, yet you didn't post the code for the tag *shrugs*
|
Sorry I'm still learning...here is the tag part
Lua Code:
oUF.Tags.Methods['freeb:pp'] = function(u)
local power, powermax = UnitPower(u), UnitPowerMax(u)
if power > 0 then
local _, str, r, g, b = UnitPowerType(u)
local t = oUF.colors.power[str]
if t then
r, g, b = t[1], t[2], t[3]
end
local perc = floor((power/powermax)*100+.5)
perc = powermax > 150 and " | "..perc.."%|r" or ""
return hex(r, g, b)..siValue(power)..perc.."|r"
end
end
oUF.Tags.Events['freeb:pp'] = 'UNIT_POWER'