There are multiple ways to achieve this. It all depends on how you change the size of the statusbar control.
If you use SetMinMax() and SetValue() to change the bar then the direction can be changed with the following:
Code:
control:SetBarAlignment( barAlignment )
barAlignment can be one of the following:
- BAR_ALIGNMENT_CENTER
- BAR_ALIGNMENT_NORMAL
- BAR_ALIGNMENT_REVERSE
Alternatively if you set the width (or height if the bar is vertical) of the bar manually like this:
Code:
local valuePercent = newValue / valueMax --divide new value from max to get percentage decimal
control:SetWidth( valuePercent * 200 ) -- set bar width to percent value multiplied by max bar width
It is simply a matter of how the bar is anchored. The bar will decrease toward the anchor point if done this way.
Personally, I use the second method and I believe FTC does as well. With this you can use any control type as a statusbar, giving way more options.
Hope that helps