Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Mistborn on July 08, 2015, 06:55:44 AM

Title: TypewriterEffect Bug?
Post by: Mistborn on July 08, 2015, 06:55:44 AM
In NGUI 3.8.0, the way I determine whether the typing is finished or not is by checking TypewriterEffect.isActive. But in NGUI 3.9.0b, it never returns true. Is it a bug or not?
Title: Re: TypewriterEffect Bug?
Post by: ArenMook on July 08, 2015, 08:13:43 PM
Check the statement on line 211. It needs to be this:
  1.                 // Alpha-based fading
  2.                 if (mCurrentOffset >= mFullText.Length)
  3.                 {
  4.                         mLabel.text = mFullText;
  5.                         current = this;
  6.                         EventDelegate.Execute(onFinished);
  7.                         current = null;
  8.                         mActive = false;
  9.                 }
  10.                 else if (mFade.size != 0)
Title: Re: TypewriterEffect Bug?
Post by: Mistborn on July 08, 2015, 08:33:09 PM
Thank you. This workaround does fix it!  :)