Author Topic: UIProgressBar Foreground Value  (Read 2608 times)

Breadstix

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
UIProgressBar Foreground Value
« on: April 08, 2014, 08:00:55 AM »
For some reason when the foreground value of a progress bar is set to zero, it still shows a value. I have noticed that others have/had the same problem by searching the forums here but I have not been able to find a solution to the problem. I am not sure if this is a bug or not, but any help on how to resolve this would be great.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIProgressBar Foreground Value
« Reply #1 on: April 09, 2014, 02:46:55 AM »
You can't shrink the sliced sprite below the dimensions of its border. If you use a simple sprite, filled sprite, or filed sprite, then you will be able to shrink it down to nothing.

Breadstix

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: UIProgressBar Foreground Value
« Reply #2 on: April 09, 2014, 08:51:53 PM »
With the default image used (Button) using anything but a sliced sprite creates some weird results like the image not filling the entire area, etc. I am at my wits end trying to use this particular widget and have thrown my hands up in the air.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIProgressBar Foreground Value
« Reply #3 on: April 10, 2014, 06:48:52 AM »
Why not simply disable the foreground sprite when the value is low? You can easily subscribe a custom function to the On Change event, and if the value is low -- disable the sprite.