Page 1 of 1

colour coding HUD stats

PostPosted: Tue Jul 01, 2008 11:44 am
by otis22
Hey,
I have set the colours for the stats that I want but they mostly still show up as white. Occassionally 1 of the stats will be the right colour seems pretty random tho. I know im prob just being a thick fooook but....

Cheers for any help

Re: colour coding HUD stats

PostPosted: Tue Jul 01, 2008 5:04 pm
by Josh
How do you have your color ranges set up exactly?

Re: colour coding HUD stats

PostPosted: Tue Jul 01, 2008 5:17 pm
by Peligroso
Make sure you have color ranges set up for all numbers. For instance if you'd set AF factor you might want something like this:

0-1.5 Green
1.5-2.5 Orange
2.5-100 Red

Or maybe something like:

0-1.5 Green
1.5-2.5 Orange
2.5-4 Red
4-5 Orange
5-100 Green

Re: colour coding HUD stats

PostPosted: Wed Jul 02, 2008 3:29 pm
by pr1mo
I can't figure out what to put in the Condition Expression box of the Configure Statistics window so I can have different colours show up in the HUD. Everything I try says "Color Condition expression is NOT valid!" or something along the lines of it needs a boolean or something like that.

I would like to setup ranges for PFR and also so my Amount Won shows up red if it's a negative number and black if they're a winning player.

Thanks!

Re: colour coding HUD stats

PostPosted: Wed Jul 02, 2008 5:09 pm
by WhiteRider
It needs to equate to a boolean value - i.e. true or false.
Something like this:
#PFR# < 5
or
#PFR# > 5 AND #PFR# < 10

The easiest way is to use the Insert link to generate the stat or column you want to compare, then add the condition and the value.

Re: colour coding HUD stats

PostPosted: Mon Dec 08, 2008 7:45 pm
by TX81Z
Here's how I configured PFR:

Image

Re: colour coding HUD stats

PostPosted: Tue Dec 09, 2008 1:31 pm
by kraada
It might not work right because you're color coding PFR based on its own value? Try coloring another stat with those exact expressions and see if it works right (it looks to me like it should).

Re: colour coding HUD stats

PostPosted: Wed Dec 10, 2008 5:53 am
by TX81Z
kraada wrote:It might not work right because you're color coding PFR based on its own value? Try coloring another stat with those exact expressions and see if it works right (it looks to me like it should).


I don't think there's another way to write that code? The color coding of PFR should be based on the PFR's value in respect to VP$IP to be meaningful. It seems to work right as it is.

Re: colour coding HUD stats

PostPosted: Wed Dec 10, 2008 9:59 am
by kraada
Oh, sorry, I thought you were saying that code wasn't working. It looked fine to me and that was the only reason I could think of for it to not work. But I'm glad it's working well for you :)