EQ2Interface.com
Search Downloads


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

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 04-20-2007, 11:44 AM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default Bug with DynamicData /GameData.Stats.PowerRange?

I put together a player window for Auroz in this thread:
http://www.eq2interface.com/forums/s...0&postcount=12
but I was never able to fix this one thing.

I used DynamicData="/GameData.Stats.PowerRange" which gives you your power in the form current/maxpower and filtered it with DynamicDataFilter="0002" to only show the text information. The text color is set to a bluish purple shade. It works ok except that when you camp from one character to another the color changes to a dark green color and stays that way until you restart the game. If you don't use a DynamicDataFilter the color is green. Just to check, I tried the current Fetish UI and his player window does the same thing. Has anyone else tried to figure this out?

Here's the actual line from the player window:
<Text AbsorbsInput="false" DynamicData="/GameData.Stats.PowerRange" DynamicDataFilter="0002" Font="/TextStyles.Normal.NormalStyle" LocalText="99,999 / 99,999" Location="0,19" Margin="1,0,1,0" Name="ManaValue" PackLocation="Left" ScrollExtent="80,16" ShadowStyle="/ShadowStyles.Outline.BlackOutline1" Size="80,16" TextColor="#9999FF">99,999 / 99,999</Text>

If I can't get it to work I could maybe use /GameData.Group.Group_0.CurrentPower then a "/" then /GameData.Group.Group_0.MaxPower.
Reply With Quote
  #2  
Unread 04-20-2007, 12:54 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

That bug has been around since ... always. Also happens with health data.

You cannot do calculations with DynamicData. You can assign it to an element and read the value (LocalText, Progress, etc.) back to make the calculation. I can't think of a way to make it update in realtime right away. If the power bar auto-shows when the DynamicData changes (at least in the target window the bars or the page they are in does that) you can make an OnShow event that triggers calculation and then sets the bar to "visible=false". Next time it is updated it will hopefully show again, triggering your event.

Of course, if you manage to get the real-time events, you may also be able to just reset the color of your current text field.
__________________
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.
Reply With Quote
  #3  
Unread 04-20-2007, 01:35 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

Ok, it's an old bug then.

I don't really need to do any calculations though... were you reading another post or something?
Reply With Quote
  #4  
Unread 04-20-2007, 07:52 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 Othesus View Post
If I can't get it to work I could maybe use /GameData.Group.Group_0.CurrentPower then a "/" then /GameData.Group.Group_0.MaxPower.
I thought you were wanting to calculate this. Never mind.
__________________
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.
Reply With Quote
Reply



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 12:42 AM.


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