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
  #2  
Unread 03-17-2010, 09:42 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

You'd first have to filter out the dynamic data for color that automatically gets sent down from the server:

Code:
DynamicDataFilter="FBFF"
(I believe that's correct)

Then you could probably setup a check for every time the text changes to do a number evaluation.

Code:
OnTextChanged="iPct=int(LocalText)
COND=(iPct > 99)
Color=(COND ? '#FF0000' : '#00FF00')"
Line 1: changes percentage into integer and removes decimal point
Line 2: check to see if integer is greater than 99
Line 3: if it is... set color to red, else set to green

Fairly sure this would work just fine. The color values are open for tweaking, they're just straight red/green.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
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 10:02 PM.


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