View Single Post
11-24-10, 10:05 PM   #3
Lyelu
A Cyclonian
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 44
Thanks, haste.

I edited the colors as little as possible, but made it so the power bars are not the same color as class-colored health bars.

My solution, in case anyone's looking:

Code:
oUF.colors.power['RUNIC_POWER'] = {.5, .1, .7}
oUF.colors.power['MANA'] = {.48, .9, 1}
oUF.colors.power['ENERGY'] = {1, 1, .5}
oUF.colors.power['FOCUS'] = {.72, .95, .72}
if not (IsAddOnLoaded'!ClassColors') then
	oUF.colors.class['SHAMAN'] = {0, .3, .53}
	oUF.colors.class['ROGUE'] = {.52, .52, 0}
	oUF.colors.class['MAGE'] = {0, .52, .65}
	oUF.colors.class['HUNTER'] = {0, .6, .1}
end
I think that should be safe, just to check if it's loaded or not before loading my colors. Works just fine. This way I don't overwrite that addon if someone has it on.

The code that I posted first is a little different, but says the same thing, right? Both ways ok?
  Reply With Quote