Author Topic: Animated Labels  (Read 4154 times)

vidjogamer

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 48
    • View Profile
Animated Labels
« on: April 13, 2014, 06:25:24 AM »
Is it possible to animated individual letters in a label?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Animated Labels
« Reply #1 on: April 13, 2014, 06:37:00 AM »
If you derive from UILabel and change its OnFill function you can do whatever you want.

vidjogamer

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 48
    • View Profile
Re: Animated Labels
« Reply #2 on: April 13, 2014, 09:40:36 AM »
Thank you Aren. Does OnFill get called every frame?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Animated Labels
« Reply #3 on: April 14, 2014, 02:52:43 AM »
Nope, it gets called when the widget needs to rebuild its geometry, which happens when the draw call needs to change. UIWidget.MarkAsChanged() will mark the widget as needing to be rebuilt.