diff options
Diffstat (limited to 'doc/classes/AnimatedSprite2D.xml')
-rw-r--r-- | doc/classes/AnimatedSprite2D.xml | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/doc/classes/AnimatedSprite2D.xml b/doc/classes/AnimatedSprite2D.xml index 969e9cc85b..14e19b4c9a 100644 --- a/doc/classes/AnimatedSprite2D.xml +++ b/doc/classes/AnimatedSprite2D.xml @@ -13,33 +13,28 @@ </tutorials> <methods> <method name="is_playing" qualifiers="const"> - <return type="bool"> - </return> + <return type="bool" /> <description> Returns [code]true[/code] if an animation is currently being played. </description> </method> <method name="play"> - <return type="void"> - </return> - <argument index="0" name="anim" type="StringName" default="@"""> - </argument> - <argument index="1" name="backwards" type="bool" default="false"> - </argument> + <return type="void" /> + <argument index="0" name="anim" type="StringName" default="&""" /> + <argument index="1" name="backwards" type="bool" default="false" /> <description> Plays the animation named [code]anim[/code]. If no [code]anim[/code] is provided, the current animation is played. If [code]backwards[/code] is [code]true[/code], the animation will be played in reverse. </description> </method> <method name="stop"> - <return type="void"> - </return> + <return type="void" /> <description> Stops the current animation (does not reset the frame counter). </description> </method> </methods> <members> - <member name="animation" type="StringName" setter="set_animation" getter="get_animation" default="@"default""> + <member name="animation" type="StringName" setter="set_animation" getter="get_animation" default="&"default""> The current animation from the [code]frames[/code] resource. If this value changes, the [code]frame[/code] counter is reset. </member> <member name="centered" type="bool" setter="set_centered" getter="is_centered" default="true"> @@ -57,7 +52,7 @@ <member name="frames" type="SpriteFrames" setter="set_sprite_frames" getter="get_sprite_frames"> The [SpriteFrames] resource containing the animation(s). </member> - <member name="offset" type="Vector2" setter="set_offset" getter="get_offset" default="Vector2( 0, 0 )"> + <member name="offset" type="Vector2" setter="set_offset" getter="get_offset" default="Vector2(0, 0)"> The texture's drawing offset. </member> <member name="playing" type="bool" setter="_set_playing" getter="_is_playing" default="false"> |