View Single Post
04-03-09, 02:17 AM   #7
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Dawn View Post
Will this work on all bars, or can this be set to work for just those bars I want it to work?
Considering that you must use :SetValue in either an OverrideUpdate* or a PostUpdate* function, unless you for some reason use the same function to update all of the bars in your layout, it can only be applied on a per-bar basis.

Originally Posted by Dawn View Post
Is you oUf layout available somewhere, to get an idea of how the health update functions are done in this case?
It's not, but the only difference between it and any other layout's health function relevant to the bar's apparent fill direction is what I posted in my last post. Where your layout does bar:SetValue(blah) change it to :SetValue(max - blah). If it doesn't do it at all, add it. Just try things. If it doesn't work, try something else. If you get stuck, post the code you're having trouble with.
  Reply With Quote