so you want me to remove this?
Code:
oUF.Tags['Afterpower'] = function(unit)
local power = UnitPower(unit)
if(power > 0 and not UnitIsDeadOrGhost(unit)) then
local _, type = UnitPowerType(unit)
local colors = _COLORS.power <-----?
return ('%s%d|r'):format(Hex(colors[type] or colors['RUNES']), power)
end
end
oUF.TagEvents['Afterpower'] = oUF.TagEvents.missingpp
and this
Code:
local colors = setmetatable({
power = setmetatable({
['MANA'] = {.31,.45,.63},
['RAGE'] = {.69,.31,.31},
['FOCUS'] = {.71,.43,.27},
['ENERGY'] = {.65,.63,.35},
}, {__index = oUF.colors.power}),
}, {__index = oUF.colors})
i guess?