EQ2Interface.com
Search Downloads


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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 09-01-2005, 01:03 PM
chylder chylder is offline
A Young Mystail Rat
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 7
Default progress bar question

having issues creating a progress bar of a data type that isn't rounded off to even numbers, or at least, that's the only difference i can figure.. most percentile variables in the game are round, ie: 0-100 percent.. however, there's at least 2 that carry a tenths place.. ie: 0.0-100.0 percent.. and that seems to make a difference in that i can't seem to get the bar to update, anyone have any clues on how to get /GameData.Stats.Defense_MitigationPercent to update correctly in a bar?

Edit: anyone know if there's a data filter that would round off the decimal? basically making the result into an integer?

Last edited by chylder : 09-01-2005 at 02:11 PM.
Reply With Quote
  #2  
Unread 09-01-2005, 02:59 PM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

The displayed text % (45.6%) and the Progress value used by the bars (0.456) are actually seperate data filters. Text is 0x0002, Progress is 0x0040.

My guess is that Progress isn't sent for Defense_MitigationPercent, which is why you can't get a progress bar working for it. If that is the case, there's nothing we can do. We can't use a script to convert from Text to Progress if the text already has a % sign, and even if we could, you'd have use an OnEvent like hovering over the bar to get it to update.
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #3  
Unread 09-01-2005, 03:17 PM
chylder chylder is offline
A Young Mystail Rat
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 7
Default

the text doesn't carry a %, but how would you go about scripting a change like that, even with an OnEvent?
Reply With Quote
  #4  
Unread 09-01-2005, 03:30 PM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

If it even would work, you would have do somthing like this.

<Text Name='ValueHolder'... DynamicDatat='what erver dada u want'>.456</Text>
<What_ever OnHoverIn='(line 1 convert math) Progress_bar.Position=ValueHolder.LocalText' />

Somthing along those lines is what your looking for but as Deathbane said it's porb not going to fly.
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #5  
Unread 09-01-2005, 03:45 PM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Text doesn't carry a %? Excellent.

Here's the script you'll want for the bar:

OnHoverIn="Progress=((Parent.DefenseMitigationTextObject.Localtext)/100)"
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #6  
Unread 09-01-2005, 03:54 PM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

Hmm in that case, I would add the dynamic data to a slidbar and use the onchange event to update the progressbar, no hover event needed then. That is if the slidebar will take that sort of data.
__________________
Landiin's EQ2MAP Updater Discussion Download
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 11:51 PM.


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