View Single Post
08-13-10, 01:49 PM   #95
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
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?
  Reply With Quote