View Single Post
  #12  
Unread 06-08-2009, 02:18 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Quote:
Originally Posted by oleega View Post
Yay! I have gotten the power bar to work!
I have yet to get the health bar to work. Here is the current code snippet:
Code:
<Page DynamicData="/GameData.Self.Health" DynamicDataFilter="0001" Location="5,5" Name="HealthBar" PackSize="absolute,fixed" ScrollExtent="200,30" Size="200,30" Visible="true">
        <Image AbsorbsInput="false" Name="Bkg" ScrollExtent="50,30" Size="50,30" SourceRect="317,275,366,296" SourceResource="/images/window_elements_hr.dds" />
        <Image AbsorbsInput="false" Location="50,0" Name="ProgressBkg" PackSize="absolute,fixed" ScrollExtent="150,30" Size="150,30" SourceRect="395,276,487,300" SourceResource="/images/window_elements_hr.dds" />
        <Progressbar AbsorbsInput="false" Color="#8A2BE2" DynamicDataFilter="FBFF" BackgroundColor="#000000" DynamicData="/GameData.Self.Health" Location="54,3" Name="Bar" PackSize="absolute,fixed" Progress="0.500" ScrollExtent="141,24" Size="141,24" Style="progressBar" />
        <Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="54,2" Name="Frame" PackSize="absolute,fixed" ScrollExtent="141,26" Size="141,26" />
		<Text DynamicData="/GameData.Self.Health" Name="Percent" DynamicDataFilter="0001" OnTextChanged="
		ProgColor=#FF0000
		GreenColor=#00FF00
		OrangeColor=#D2691E
		isGreater=Parent.Bar.Progress > 0.52
		ProgColor=isGreater ? OrangeColor : ProgColor
		isGreater=Parent.Bar.Progress > 0.55
		ProgColor=isGreater ? GreenColor : ProgColor
		isGreater=Parent.Bar.Progress > 0.85
		ProgColor=isGreater ? OrangeColor : ProgColor
		Parent.Bar.Color=ProgColor
		Parent.Parent.Health.Color=ProgColor" />
    </Page>
Where would I change the name of the progress bar?
colored it red for you

PS: Isn't that a renamed bar already? I don't remember it being called "Bar" in the default. Also just briefly looking at this shouldn't it be Parent.Parent.Bar ? Also this line "Parent.Parent.Health.Color=ProgColor" is referencing a non-existant object.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.

Last edited by gm9 : 06-08-2009 at 02:21 PM.
Reply With Quote