Author Topic: Stopping TweenColor  (Read 5551 times)

Alessaint

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 67
    • View Profile
Stopping TweenColor
« on: May 21, 2012, 02:42:39 AM »
Hi, I was wondering if there was a way of stopping the TweenColor after it begins.

( I have system message label that I show and after some time tween to Color.clear. If a new message arrives before this is done I want the label to stop fading, be fully visible and then fade it out again)

Thanks

Alessaint

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 67
    • View Profile
Re: Stopping TweenColor
« Reply #1 on: May 21, 2012, 04:24:09 AM »
I've tried using UITweener::Reset() but it (as the name suggests) just resets the color tween to it's original values but the tweening toward the target color continues...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Stopping TweenColor
« Reply #2 on: May 21, 2012, 07:22:00 AM »
Just disable the tween component.