EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 



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 01:54 AM.


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