EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > General Discussion > UI User Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 12-14-2004, 05:57 PM
silvrwolf silvrwolf is offline
A Brown Bear
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 10
Default Question about XML Topics + UI Displays

Are there ways to use generic math inside an XML document to display a number?

If so, mathematically speaking, there's a few (theoretical) ways to display XP% in a xx.y% fashion without having to use ideas like backgrounds in combination with overlaping.

The "easiest" way I can think of is as follows. In reference to algebra:

Yellow perentage = Yy (capitalization important. Y = y1, y = y2 specifically)
Blue percentage = Bb (same as above)

What we're wanting to actually SEE is Yy.b% and this is a problem because y = B under all circumstances.

Here's how I see it

(((Yy / 10) round down forcibly) * 10) + (Bb / 10)

So that, for example for 48.4 (48% and 84%)

48 / 10 = 4.8
Round down = 4.0
*10 = 40
PLUS
(84 / 10) = 8.4

40 + 8.4 = 48.4 %

This kind of math solution would work in all cases and would provide a Yy.b display easily, in theory.

An absolute round down function will work, but that's a fairly intricate type of math, strictly speaking from a programming point of view.

What I don't know is how many "math" functions the XML parser in the UI will handle properly.

There are a few other options, but I guess what I'm really asking is this:

Does anyone know what kind of XML parser the EQUI is using? Will it accept more than simple data?

Oh, for those interested, the generic function of this is as follows

((floor(Yy / 10)) * 10) + (Bb / 10)

Or, in relation to my guesstimate of EQUI

(((floor(GameData.Self.ExperienceCurrent / 10))*10) + (GameData.Self.ExperienceBubble / 10))

Last edited by silvrwolf : 12-14-2004 at 06:06 PM.
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 05:31 AM.


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