Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: will_brett on February 24, 2013, 05:45:25 PM

Title: [Solved]Progress bar always starts at X 150 scale
Post by: will_brett on February 24, 2013, 05:45:25 PM
Hello everyone.

I am loving NGUI it has had a massive impact on the quality of my project however I am still really new to it and have run into an issue.

Note: I am using Playmaker

My issue is that when I add the progress bar to  my GUI no matter what I try the foreground always starts at scale 150 in the X axis. I have the rest of it working... ie the add and remove health, just not the starting scale.

Looking forward to hearing your responses

All the best

WB
Title: Re: Progress bar always starts at X 150 scale
Post by: dlewis on February 24, 2013, 07:10:37 PM
Look at the 'full size' variable on the UISlider component. The X/Y variables must be the same as what the foreground scale is at 100%.

So if the foreground is (50, 3) when at 100% then the full size must be (50, 3).
Title: Re: Progress bar always starts at X 150 scale
Post by: will_brett on February 25, 2013, 04:38:50 AM
Thanks for replying.

The bar at full size is x 200 y 30 and the foreground part at fullsize is also x 200 y 30 yet it still reverts to 150 out of 200 when I start the game. It's very frustrating.

All the best

WB
Title: Re: Progress bar always starts at X 150 scale
Post by: will_brett on February 25, 2013, 05:21:28 AM
Oh I had all my actions aimed at the foreground and not the slider script. It is working now.

Thanks