Quote:
Originally Posted by twistedkilla
Ok lets say I want to set my max to 50 how would I do it
|
Try this:
Code:
<Progressbar Location="10,10" Name="DistBar" ScrollExtent="120,12" Size="120,12" Style="/SpecialElements.GreyscaleVitalBar.data.bar.bar_style" />
<Text DynamicData="/GameData.Target.Distance" Name="Dist_" OnTextChanged="Left=Text" OnMove="
Parent.DistBar.Progress=(Left / 50)
COND=(Left > 0)
 Parent.DistBar.Color=COND ? #FF0000 : Parent.DistBar.Color
COND=(Left > 10)
Parent.DistBar.Color=COND ? #FF5500 : Parent.DistBar.Color
COND=(Left > 20)
Parent.DistBar.Color=COND ? #FFAA00 : Parent.DistBar.Color
COND=(Left > 30)
Parent.DistBar.Color=COND ? #FFFF00 : Parent.DistBar.Color
COND=(Left > 40)
Parent.DistBar.Color=COND ? #00FF44 : Parent.DistBar.Color" />