|
@@ -2255,6 +2255,7 @@
|
|
<return type="String">
|
|
<return type="String">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
|
|
+ Return the name of the current animation set to the node.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_frame" qualifiers="const">
|
|
<method name="get_frame" qualifiers="const">
|
|
@@ -2310,18 +2311,21 @@
|
|
<return type="bool">
|
|
<return type="bool">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
|
|
+ Return true if an animation if currently being played.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="play">
|
|
<method name="play">
|
|
<argument index="0" name="anim" type="String" default="""">
|
|
<argument index="0" name="anim" type="String" default="""">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
|
|
+ Play the animation set in parameter. If no parameter is provided, the current animation is played.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="set_animation">
|
|
<method name="set_animation">
|
|
<argument index="0" name="animation" type="String">
|
|
<argument index="0" name="animation" type="String">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
|
|
+ Set the current animation of the node and reinits the frame counter of the animation.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="set_centered">
|
|
<method name="set_centered">
|
|
@@ -2375,13 +2379,14 @@
|
|
</method>
|
|
</method>
|
|
<method name="stop">
|
|
<method name="stop">
|
|
<description>
|
|
<description>
|
|
|
|
+ Stop the current animation (does not reset the frame counter).
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
</methods>
|
|
</methods>
|
|
<signals>
|
|
<signals>
|
|
<signal name="frame_changed">
|
|
<signal name="frame_changed">
|
|
<description>
|
|
<description>
|
|
- Emmited when frame is changed.
|
|
|
|
|
|
+ Emitted when frame is changed.
|
|
</description>
|
|
</description>
|
|
</signal>
|
|
</signal>
|
|
</signals>
|
|
</signals>
|
|
@@ -2398,58 +2403,68 @@
|
|
<return type="String">
|
|
<return type="String">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
|
|
+ Return the name of the current animation set to the node.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_frame" qualifiers="const">
|
|
<method name="get_frame" qualifiers="const">
|
|
<return type="int">
|
|
<return type="int">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
|
|
+ Return the visible frame index.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_sprite_frames" qualifiers="const">
|
|
<method name="get_sprite_frames" qualifiers="const">
|
|
<return type="SpriteFrames">
|
|
<return type="SpriteFrames">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
|
|
+ Get the [SpriteFrames] resource, which contains all frames.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="is_playing" qualifiers="const">
|
|
<method name="is_playing" qualifiers="const">
|
|
<return type="bool">
|
|
<return type="bool">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
|
|
+ Return true if an animation if currently being played.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="play">
|
|
<method name="play">
|
|
<argument index="0" name="anim" type="String" default="""">
|
|
<argument index="0" name="anim" type="String" default="""">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
|
|
+ Play the animation set in parameter. If no parameter is provided, the current animation is played.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="set_animation">
|
|
<method name="set_animation">
|
|
<argument index="0" name="animation" type="String">
|
|
<argument index="0" name="animation" type="String">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
|
|
+ Set the current animation of the node and reinits the frame counter of the animation.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="set_frame">
|
|
<method name="set_frame">
|
|
<argument index="0" name="frame" type="int">
|
|
<argument index="0" name="frame" type="int">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
|
|
+ Set the visible sprite frame index (from the list of frames inside the [SpriteFrames] resource).
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="set_sprite_frames">
|
|
<method name="set_sprite_frames">
|
|
<argument index="0" name="sprite_frames" type="SpriteFrames">
|
|
<argument index="0" name="sprite_frames" type="SpriteFrames">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
|
|
+ Set the [SpriteFrames] resource, which contains all frames.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="stop">
|
|
<method name="stop">
|
|
<description>
|
|
<description>
|
|
|
|
+ Stop the current animation (does not reset the frame counter).
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
</methods>
|
|
</methods>
|
|
<signals>
|
|
<signals>
|
|
<signal name="frame_changed">
|
|
<signal name="frame_changed">
|
|
<description>
|
|
<description>
|
|
|
|
+ Emitted when frame is changed.
|
|
</description>
|
|
</description>
|
|
</signal>
|
|
</signal>
|
|
</signals>
|
|
</signals>
|
|
@@ -2487,6 +2502,7 @@
|
|
<argument index="0" name="path" type="NodePath">
|
|
<argument index="0" name="path" type="NodePath">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
|
|
+ Return the index of the specified track. If the track is not found, return -1.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_length" qualifiers="const">
|
|
<method name="get_length" qualifiers="const">
|
|
@@ -2500,6 +2516,7 @@
|
|
<return type="float">
|
|
<return type="float">
|
|
</return>
|
|
</return>
|
|
<description>
|
|
<description>
|
|
|
|
+ Get the animation step value.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="get_track_count" qualifiers="const">
|
|
<method name="get_track_count" qualifiers="const">
|
|
@@ -2576,6 +2593,7 @@
|
|
<argument index="0" name="size_sec" type="float">
|
|
<argument index="0" name="size_sec" type="float">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
|
|
+ Set the animation step value.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="track_find_key" qualifiers="const">
|
|
<method name="track_find_key" qualifiers="const">
|
|
@@ -2677,6 +2695,7 @@
|
|
<argument index="0" name="idx" type="int">
|
|
<argument index="0" name="idx" type="int">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
|
|
+ Return true if the given track is imported. Else, return false.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="track_move_down">
|
|
<method name="track_move_down">
|
|
@@ -2717,6 +2736,7 @@
|
|
<argument index="1" name="imported" type="bool">
|
|
<argument index="1" name="imported" type="bool">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
|
|
+ Set the given track as imported or not.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="track_set_interpolation_type">
|
|
<method name="track_set_interpolation_type">
|