Quantcast
WoWInterface - View Single Post - Help oUF Simple change the mana color
View Single Post
10-13-17, 11:54 AM   #3
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,703
Originally Posted by thomasjohnshannon View Post
Something like this at the top of your main code should work.

local oUF = ns.oUF or oUF
oUF.colors.power['MANA'] = {0, 0.55, 1}

Just replace the values with your desired color.

You can thank lightspark and Phanx for that bit since it is the same code that gave me when I asked.
If you're using oUF unembedded, that code will change the colors for all layouts you might have installed.
A better way of overriding colors is by doing it inside your style function, that way it will only apply to your layout.

Lua Code:
  1. local function myStyleFunc(self, unit)
  2.     self.colors.power.MANA = {0, 0.55, 1}
  3.  
  4.     ...
  5. end
  Reply With Quote