EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 09-16-2014, 08:07 PM
Darqwood's Avatar
Darqwood Darqwood is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Aug 2005
Posts: 965
Default

Quote:
Originally Posted by twistedkilla View Post

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 &gt; 0)&#xD;&#xA; Parent.DistBar.Color=COND ? #FF0000 : Parent.DistBar.Color
			COND=(Left &gt; 10)&#xD;&#xA;Parent.DistBar.Color=COND ? #FF5500 : Parent.DistBar.Color
			COND=(Left &gt; 20)&#xD;&#xA;Parent.DistBar.Color=COND ? #FFAA00 : Parent.DistBar.Color
			COND=(Left &gt; 30)&#xD;&#xA;Parent.DistBar.Color=COND ? #FFFF00 : Parent.DistBar.Color
			COND=(Left &gt; 40)&#xD;&#xA;Parent.DistBar.Color=COND ? #00FF44 : Parent.DistBar.Color" />
Reply With Quote
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:20 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI