|
Caldur0 Newbie
Joined: 12 Feb 2008 Posts: 5
|
Posted: Tue Feb 12, 2008 3:13 pm
[2.18] Gauge bug? |
I'm not sure if this is a bug or if I'm just doing something wrong. It's reproducible for me every time though.
Ok, I have a gauge that I either want to be full or empty depending on balance. If the variable is 2, the gauge should be full. If the variable is 1, it should be empty. So, I set the Max value to 2 and the Min value to 1. When the variable is 2, the gauge is full like it should be. However, when the variable is 1, the gauge shows it to be half-full. It's quite odd.
I also have another gauge working off the same variable. Except that gauge is full if the variable is 1, and empty if the variable is 0. That one works perfectly.
I've tried just about every combination of numbers and options I can think of. I can't get a Max: 2 Min: 1 to work properly. Suggestions? |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Tue Feb 12, 2008 4:34 pm |
In the place where you are putting the variable for the value put (@variable-1)
For max put 1 for low put 0.
For colors I put the top box blue and the bottom box red. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Feb 12, 2008 6:27 pm |
Arminas is correct...Gauges in CMUD always have a minimum value of zero. The "Low" value that you are setting is simply the threshold for changing the gauge color to it's "Low color". For example, to indicate low hitpoints.
|
|
|
|
Caldur0 Newbie
Joined: 12 Feb 2008 Posts: 5
|
Posted: Tue Feb 12, 2008 7:01 pm |
Ugh! I had that same idea yesterday and I must have just entered in one of the values incorrectly when I was testing it. I tried it just now and it works like a charm. Thanks for the quick help both of you!
|
|
|
|
|
|