View Single Post
Old 07-27-2002, 07:27 PM   #3
Demorgoth
A Gray Wolf
 
Join Date: Jul 2002
Posts: 8
Default

OK, so let's see if I understand this.

We have, in effect, a size changing rectangle.

GaugeOffsetX, GaugeOffsetY = Top left corner (x,y) position. Fixed.

<X>3</X> = Width of the bar.

<Y>-25</Y> = Length of the bar? or adjustment from 'norm'?. Will have to experiment here

As the value of the guage (ie hps or whatever) changes, the <Y> value grows or shrinks accordingly, giving a longer or shorter bar. Left side is static (as determined by the GuageOffset values) but the right edge moves the length of the bar left/right. Reguardless of the size, the bar moves from 100% to 0%, so a guage value of 50% will always be represented by a half length bar?


In short:

To make the bar wider/fatter: Increase <x>
To make the bar longer: decrease <y>
To move the bar: adjust GuageOffset

Would that be about right?
Demorgoth is offline   Reply With Quote