Author Topic: [Solved]Progress bar always starts at X 150 scale  (Read 4484 times)

will_brett

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 40
    • View Profile
[Solved]Progress bar always starts at X 150 scale
« 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
« Last Edit: February 25, 2013, 05:21:47 AM by will_brett »

dlewis

  • Guest
Re: Progress bar always starts at X 150 scale
« Reply #1 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).

will_brett

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 40
    • View Profile
Re: Progress bar always starts at X 150 scale
« Reply #2 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

will_brett

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 40
    • View Profile
Re: Progress bar always starts at X 150 scale
« Reply #3 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