Author Topic: Fill bug (what seems to be)  (Read 4272 times)

matt1

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 28
    • View Profile
Fill bug (what seems to be)
« on: July 14, 2013, 11:45:03 AM »
Hi there,

After finally getting my fill amount to adjust during run-time I've ran into another problem.

As you can see in this first picture, the Icon is about .6 filled:



When i play, it's fine and stays as is: (Ignore the image on the right)

However, when I change the amount, lets say I decrease the fill, down to .4 then it will move in the correct direction, but then if I try to move it back down to .6 again it will not do anything

Example 1:
Example 2:

My only thought of why this stops working is because of the procedure where everything is combined for 1 Drawcall?

Thanks



ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fill bug (what seems to be)
« Reply #1 on: July 14, 2013, 07:25:13 PM »
Eh?

matt1

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Fill bug (what seems to be)
« Reply #2 on: July 16, 2013, 11:14:14 AM »
It's hard to explain, but basically the fill amount slider can only work 1 way whilst playing, if I start at 0 fill, then move it up to 1 then the animation effect will happen, but if i then try to go back from 1 to 0 then the animation won't happen, and regardless of the value it will act like the value is still 1.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fill bug (what seems to be)
« Reply #3 on: July 17, 2013, 03:41:42 AM »
What animation? How are you animating it? If you're animating some private value like "MRawValue" then you're doing the wrong thing. It has to go through a property -- fillAmount -- in order for it to work correctly.