View Single Post
03-02-09, 08:27 AM   #835
Ailae
A Rage Talon Dragon Guard
 
Ailae's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 318
Just started dabbling with creating an oUF layout, using p3lims as a base (thanks p3lim).

I color my healthbar in my PostUpdateHealth-function, with slightly different coloring depending on for example what unit it is and if the unit is hostile and so on. However, I noticed that oUF_Banzai doesn't color any other bars than for the player.

Could this be because I'm coloring the bar continually in the updatehealth-function and thus overriding the Banzai-coloring?

Also, I realize I'm setting the color of the bar probably more than needed (only need to do this once really - when the target/targettarget changes), can I do it another way to only set it once? I tried looking at other layouts but it seems I'm applying more 'rules' to my coloring than most so not really getting any ideas from that.

Guess it's more of a logic-problem for me than code.