Author Topic: UISpriteAnimation number of frames  (Read 2636 times)

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
UISpriteAnimation number of frames
« on: July 08, 2012, 11:17:26 AM »
Hi !

Could you add a public property to retrieve the number of frames from an animation ?
You already have a List<string> mSpriteNames, could you make something like :
  1. public int frameCount
  2. {
  3.      get { return mSpriteNames.Count; }
  4. }

Thanks :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISpriteAnimation number of frames
« Reply #1 on: July 08, 2012, 06:11:55 PM »
Sure. I've added it.

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: UISpriteAnimation number of frames
« Reply #2 on: July 09, 2012, 03:06:55 AM »
Great ! Thanks :)

And, what if someone (maybe me), make a more elaborated UISpriteAnimation script, with loop, pause, resume etc... would you take a look at it and maybe integrate it ?
Or is it useless because you're planning to do so ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISpriteAnimation number of frames
« Reply #3 on: July 09, 2012, 10:03:58 AM »
It's actually on the list of things to do here, but if you do it before us, sure!