View Single Post
  #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