0.2.0-dev Download ZIP
36 lines ·1.8 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="MethodTweener" inherits="Tweener" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Interpolates an abstract value and supplies it to a method called over time. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | [MethodTweener] is similar to a combination of [CallbackTweener] and [PropertyTweener]. It calls a method providing an interpolated value as a parameter. See [method Tween.tween_method] for more usage information. |
| 8 | The tweener will finish automatically if the callback's target object is freed. |
| 9 | [b]Note:[/b] [method Tween.tween_method] is the only correct way to create [MethodTweener]. Any [MethodTweener] created manually will not function correctly. |
| 10 | </description> |
| 11 | <tutorials> |
| 12 | </tutorials> |
| 13 | <methods> |
| 14 | <method name="set_delay"> |
| 15 | <return type="MethodTweener" /> |
| 16 | <param index="0" name="delay" type="float" /> |
| 17 | <description> |
| 18 | Sets the time in seconds after which the [MethodTweener] will start interpolating. By default there's no delay. |
| 19 | </description> |
| 20 | </method> |
| 21 | <method name="set_ease"> |
| 22 | <return type="MethodTweener" /> |
| 23 | <param index="0" name="ease" type="int" enum="Tween.EaseType" /> |
| 24 | <description> |
| 25 | Sets the type of used easing from [enum Tween.EaseType]. If not set, the default easing is used from the [Tween] that contains this Tweener. |
| 26 | </description> |
| 27 | </method> |
| 28 | <method name="set_trans"> |
| 29 | <return type="MethodTweener" /> |
| 30 | <param index="0" name="trans" type="int" enum="Tween.TransitionType" /> |
| 31 | <description> |
| 32 | Sets the type of used transition from [enum Tween.TransitionType]. If not set, the default transition is used from the [Tween] that contains this Tweener. |
| 33 | </description> |
| 34 | </method> |
| 35 | </methods> |
| 36 | </class> |