summaryrefslogtreecommitdiff
path: root/doc/classes/MethodTweener.xml
blob: 3badeb164b581ca50b859e89d996f0f56ee8e6f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="UTF-8" ?>
<class name="MethodTweener" inherits="Tweener" version="4.0">
	<brief_description>
		Interpolates an abstract value and supplies it to a method called over time.
	</brief_description>
	<description>
		[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.
		[b]Note:[/b] [method Tween.tween_method] is the only correct way to create [MethodTweener]. Any [MethodTweener] created manually will not function correctly.
	</description>
	<tutorials>
	</tutorials>
	<methods>
		<method name="set_delay">
			<return type="MethodTweener">
			</return>
			<argument index="0" name="delay" type="float">
			</argument>
			<description>
				Sets the time in seconds after which the [MethodTweener] will start interpolating. By default there's no delay.
			</description>
		</method>
		<method name="set_ease">
			<return type="MethodTweener">
			</return>
			<argument index="0" name="ease" type="int" enum="Tween.EaseType">
			</argument>
			<description>
				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.
			</description>
		</method>
		<method name="set_trans">
			<return type="MethodTweener">
			</return>
			<argument index="0" name="trans" type="int" enum="Tween.TransitionType">
			</argument>
			<description>
				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.
			</description>
		</method>
	</methods>
	<constants>
	</constants>
</class>