Author Topic: UISpriteAnimation implement pingpong, reverse... or make it extensible  (Read 5652 times)

bdominguez

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 38
    • View Profile
Can you implement that? Or at least make "protected" and "virtual" so we can implement that ourselves.

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
The UISpriteAnimation is just an example script. It's meant to be looked at, then extended by the end user to suit the desired outcome.

bdominguez

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 38
    • View Profile
The UISpriteAnimation is just an example script. It's meant to be looked at, then extended by the end user to suit the desired outcome.

I understand.

But in order to be extendable you need to mark protected and virtual many fields and methods...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
No, not extended. Example is just that -- use as an example to make your own. That's why it's bare-bone simple.

bdominguez

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 38
    • View Profile
No, not extended. Example is just that -- use as an example to make your own. That's why it's bare-bone simple.

I don't understand...

1 - Your script it's not in the "Examples" folder so all your users understand that it's part of the NGUI core/framework.

2 - It doesn't have any sense to have to duplicate your script "to make my own". Your script works well, the only problem is that it lacks of some functionality.

3 - So it's why I asked to make it extendable. You only have to change the visibility (protected and virtual) of some parts of your script. 5 minutes max.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Although not in the examples folder, that script was written as an example. It's quite specific (expects you to have a prefix for clips). That said, if you want to make things protected and derive from it, you are welcome to do it. I can make them protected for you in the next release as well. I just don't recommend using it like that, but you can if you like.