UIElement:Gauge woes...

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
tinyromeotwenty1
GamingTools Subscriber
Posts: 1
Joined: Tue Dec 28, 2010 8:01 pm

UIElement:Gauge woes...

Post by tinyromeotwenty1 » Mon Jan 30, 2012 10:39 am

I am trying to get a gauge to.. well fill...
so far I have successfully textured a slider, it isn't what I want, but I figured I the syntax would be similar, thusly it is not...

So far I am doing...

This for my UI, the slider I textured is first then my unworking gauge

Code: Select all

<slider Name='eSlider'>
	<X>10</X>
	<Y>300</Y>
	<Border>1</Border>
	<Width>20</Width>
	<Height>50</Height>
	<Range>100</Range>
	<Vertical></Vertical>
	<Texture Filename='Green.png'></Texture>
	<AutoTooltip>Zoom level</AutoTooltip>
</slider>

<gauge Name='eGauge'>
	<X>50</X>
	<Y>300</Y>
	<Border>1</Border>
	<Width>20</Width>
	<Height>50</Height>
	<Range>100</Range>
	<Value>0</Value>
	<Vertical></Vertical>
	<Texture filename='Red.png'></Texture>
	<Filler>
		<Texture filename="Green.png"></Texture>
	</Filler>
	
	<AutoTooltip>Zoom level</AutoTooltip>
</gauge>	

And I am doing this in my code (which I know the slider is working, cause it moves... and also the text updates correctly as well so hmmm...)

Code: Select all

while 1
&#123;
wait 2
i&#58;Inc
UIElement[eSlider@eMainTab@eTabControl@eui]&#58;SetValue[$&#123;i&#125;]
UIElement[eBotState@eMainTab@eTabControl@eui]&#58;SetText[$&#123;i&#125;]
UIElement[eGauge@eMainTab@eTabControl@eui]&#58;SetValue[$&#123;i&#125;]
&#125;

The slider works dandy, the text counts along, but the gauge doesn't fill... any thoughts?

Post Reply