Author Topic: Replay typewriter effect each time text is updated  (Read 3192 times)

will_brett

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 40
    • View Profile
Replay typewriter effect each time text is updated
« on: May 29, 2014, 09:23:53 AM »
Hi everyone,

How would I go about getting the typewriter effect to replay when the UILabel is updated?

THanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Replay typewriter effect each time text is updated
« Reply #1 on: May 30, 2014, 01:57:28 PM »
Just disable it then re-enable it, or add this function to it:
  1.         /// <summary>
  2.         /// Reset the typewriter effect to the beginning of the label.
  3.         /// </summary>
  4.  
  5.         public void ResetToBeginning () { mReset = true; }

will_brett

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 40
    • View Profile
Re: Replay typewriter effect each time text is updated
« Reply #2 on: May 30, 2014, 03:31:27 PM »
cheers Aren this works perfectly
« Last Edit: May 30, 2014, 04:44:33 PM by will_brett »