Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: yuewah on May 28, 2012, 12:42:16 AM

Title: Example 3, OnClick can be triggered more than 1 time.
Post by: yuewah on May 28, 2012, 12:42:16 AM
Example 3, OnClick can be triggered more than 1 time during the Panel Transition if the option button is double clicked.

Can it limited to Single Click only ?
Title: Re: Example 3, OnClick can be triggered more than 1 time.
Post by: ArenMook on May 28, 2012, 01:17:19 AM
Each click results in the OnClick message. There is also OnDoubleClick. If you only want to react to the first one, there is also OnSelect you can use.
Title: Re: Example 3, OnClick can be triggered more than 1 time.
Post by: yuewah on May 28, 2012, 01:48:12 AM
I cannot find OnSelect or OnDoubleClick in AnimationOrTween.Trigger
Title: Re: Example 3, OnClick can be triggered more than 1 time.
Post by: ArenMook on May 28, 2012, 02:42:06 AM
Ah, no, it's not in the animationortween. You can always disable the script or the collider once it starts animating though.
Title: Re: Example 3, OnClick can be triggered more than 1 time.
Post by: yuewah on May 28, 2012, 04:22:51 AM
Why UIButtonPlayAnimation.trigger does not contain all the Triggers ?
Title: Re: Example 3, OnClick can be triggered more than 1 time.
Post by: ArenMook on May 28, 2012, 11:35:02 AM
Mainly because no one has asked for them. :)

I've added them on my end, and you will see them in the next update.