classref: Sync with current source
This commit is contained in:
parent
c734a508c3
commit
77573a76d1
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<doc version="2.0.2.stable.official" name="Engine Types">
|
<doc version="2.0.2.stable.custom_build" name="Engine Types">
|
||||||
<class name="@GDScript" category="Core">
|
<class name="@GDScript" category="Core">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
Built-in GDScript functions.
|
Built-in GDScript functions.
|
||||||
|
@ -2678,6 +2678,22 @@
|
||||||
Get the list of names of the animations stored in the player.
|
Get the list of names of the animations stored in the player.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="animation_set_next">
|
||||||
|
<argument index="0" name="anim_from" type="String">
|
||||||
|
</argument>
|
||||||
|
<argument index="1" name="anim_to" type="String">
|
||||||
|
</argument>
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
|
<method name="animation_get_next" qualifiers="const">
|
||||||
|
<return type="String">
|
||||||
|
</return>
|
||||||
|
<argument index="0" name="anim_from" type="String">
|
||||||
|
</argument>
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="set_blend_time">
|
<method name="set_blend_time">
|
||||||
<argument index="0" name="anim_from" type="String">
|
<argument index="0" name="anim_from" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
|
@ -2733,14 +2749,14 @@
|
||||||
<argument index="1" name="custom_blend" type="float" default="-1">
|
<argument index="1" name="custom_blend" type="float" default="-1">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Play a given animation by the animation name in reverse.
|
Play a given animation by the animation name in reverse.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="stop">
|
<method name="stop">
|
||||||
<argument index="0" name="reset" type="bool" default="true">
|
<argument index="0" name="reset" type="bool" default="true">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Stop the currently playing animation.
|
Stop the currently playing animation.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="stop_all">
|
<method name="stop_all">
|
||||||
|
@ -2900,7 +2916,7 @@
|
||||||
<argument index="0" name="delta" type="float">
|
<argument index="0" name="delta" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Used to skip ahead or skip back in an animation. Delta is the time in seconds to skip.
|
Used to skip ahead or skip back in an animation. Delta is the time in seconds to skip.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
@ -6531,9 +6547,9 @@
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="1" name="colors" type="ColorArray">
|
<argument index="1" name="colors" type="ColorArray">
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="2" name="uvs" type="Vector2Array" default="Array()">
|
<argument index="2" name="uvs" type="Vector2Array">
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="3" name="texture" type="Texture" default="Object()">
|
<argument index="3" name="texture" type="Texture" default="NULL">
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="4" name="width" type="float" default="1">
|
<argument index="4" name="width" type="float" default="1">
|
||||||
</argument>
|
</argument>
|
||||||
|
@ -6546,9 +6562,9 @@
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="1" name="colors" type="ColorArray">
|
<argument index="1" name="colors" type="ColorArray">
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="2" name="uvs" type="Vector2Array" default="Array()">
|
<argument index="2" name="uvs" type="Vector2Array" default="Vector2Array()">
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="3" name="texture" type="Texture" default="Object()">
|
<argument index="3" name="texture" type="Texture" default="NULL">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Draw a polygon of any amount of points, convex or concave.
|
Draw a polygon of any amount of points, convex or concave.
|
||||||
|
@ -6559,9 +6575,9 @@
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="1" name="color" type="Color">
|
<argument index="1" name="color" type="Color">
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="2" name="uvs" type="Vector2Array" default="Array()">
|
<argument index="2" name="uvs" type="Vector2Array" default="Vector2Array()">
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="3" name="texture" type="Texture" default="Object()">
|
<argument index="3" name="texture" type="Texture" default="NULL">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Draw a colored polygon of any amount of points, convex or concave.
|
Draw a colored polygon of any amount of points, convex or concave.
|
||||||
|
@ -6883,7 +6899,7 @@
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_rotation">
|
<method name="set_rotation">
|
||||||
<argument index="0" name="rotation" type="float">
|
<argument index="0" name="radians" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Set the base rotation for this layer (helper).
|
Set the base rotation for this layer (helper).
|
||||||
|
@ -6896,6 +6912,18 @@
|
||||||
Return the base rotation for this layer (helper).
|
Return the base rotation for this layer (helper).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="set_rotationd">
|
||||||
|
<argument index="0" name="degrees" type="float">
|
||||||
|
</argument>
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
|
<method name="get_rotationd" qualifiers="const">
|
||||||
|
<return type="float">
|
||||||
|
</return>
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="set_scale">
|
<method name="set_scale">
|
||||||
<argument index="0" name="scale" type="Vector2">
|
<argument index="0" name="scale" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
|
@ -6911,7 +6939,7 @@
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_world_2d" qualifiers="const">
|
<method name="get_world_2d" qualifiers="const">
|
||||||
<return type="Canvas">
|
<return type="World2D">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Return the [World2D] used by this layer.
|
Return the [World2D] used by this layer.
|
||||||
|
@ -8057,10 +8085,10 @@
|
||||||
</class>
|
</class>
|
||||||
<class name="ColorRamp" inherits="Resource" category="Core">
|
<class name="ColorRamp" inherits="Resource" category="Core">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
Color interpolator node
|
Color interpolator node
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
Given a set of colors, this node will interpolate them in order, meaning, that if you have color 1, color 2 and color3, the ramp will interpolate (generate the colors between two colors) from color 1 to color 2 and from color 2 to color 3. Initially the ramp will have 2 colors (black and white), one (black) at ramp lower offset offset 0 and the other (white) at the ramp higher offset 1.
|
Given a set of colors, this node will interpolate them in order, meaning, that if you have color 1, color 2 and color3, the ramp will interpolate (generate the colors between two colors) from color 1 to color 2 and from color 2 to color 3. Initially the ramp will have 2 colors (black and white), one (black) at ramp lower offset offset 0 and the other (white) at the ramp higher offset 1.
|
||||||
</description>
|
</description>
|
||||||
<methods>
|
<methods>
|
||||||
<method name="add_point">
|
<method name="add_point">
|
||||||
|
@ -8069,14 +8097,14 @@
|
||||||
<argument index="1" name="color" type="Color">
|
<argument index="1" name="color" type="Color">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Adds the specified color to the end of the ramp, with the specified offset
|
Adds the specified color to the end of the ramp, with the specified offset
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="remove_point">
|
<method name="remove_point">
|
||||||
<argument index="0" name="offset" type="int">
|
<argument index="0" name="offset" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Removes the color at the index [i]offset[/i]
|
Removes the color at the index [i]offset[/i]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_offset">
|
<method name="set_offset">
|
||||||
|
@ -8085,7 +8113,7 @@
|
||||||
<argument index="1" name="offset" type="float">
|
<argument index="1" name="offset" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the offset for the ramp color at index [i]point[/i]
|
Sets the offset for the ramp color at index [i]point[/i]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_offset" qualifiers="const">
|
<method name="get_offset" qualifiers="const">
|
||||||
|
@ -8094,7 +8122,7 @@
|
||||||
<argument index="0" name="point" type="int">
|
<argument index="0" name="point" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Returns the offset of the ramp color at index [i]point[/i]
|
Returns the offset of the ramp color at index [i]point[/i]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_color">
|
<method name="set_color">
|
||||||
|
@ -8103,7 +8131,7 @@
|
||||||
<argument index="1" name="color" type="Color">
|
<argument index="1" name="color" type="Color">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the color of the ramp color at index [i]point[/i]
|
Sets the color of the ramp color at index [i]point[/i]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_color" qualifiers="const">
|
<method name="get_color" qualifiers="const">
|
||||||
|
@ -8112,7 +8140,7 @@
|
||||||
<argument index="0" name="point" type="int">
|
<argument index="0" name="point" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Returns the color of the ramp color at index [i]point[/i]
|
Returns the color of the ramp color at index [i]point[/i]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="interpolate">
|
<method name="interpolate">
|
||||||
|
@ -8121,42 +8149,42 @@
|
||||||
<argument index="0" name="offset" type="float">
|
<argument index="0" name="offset" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Returns the interpolated color specified by [i]offset[/i]
|
Returns the interpolated color specified by [i]offset[/i]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_point_count" qualifiers="const">
|
<method name="get_point_count" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the number of colors in the ramp
|
Returns the number of colors in the ramp
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_offsets">
|
<method name="set_offsets">
|
||||||
<argument index="0" name="offsets" type="RealArray">
|
<argument index="0" name="offsets" type="RealArray">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the offset for the specified amount of elements. Calling this function with a different number of elements than previously defined causes the ramp to resize its colors and offsets array to accomodate the new elements, all new colors will be black by default.
|
Sets the offset for the specified amount of elements. Calling this function with a different number of elements than previously defined causes the ramp to resize its colors and offsets array to accomodate the new elements, all new colors will be black by default.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_offsets" qualifiers="const">
|
<method name="get_offsets" qualifiers="const">
|
||||||
<return type="RealArray">
|
<return type="RealArray">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the offsets for the colors in this ramp
|
Returns the offsets for the colors in this ramp
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_colors">
|
<method name="set_colors">
|
||||||
<argument index="0" name="colors" type="ColorArray">
|
<argument index="0" name="colors" type="ColorArray">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the colors for the specified amount of elements. Calling this function with a different number of elements than previously defined causes the ramp to resize its colors and offsets array to accomodate the new elements.
|
Sets the colors for the specified amount of elements. Calling this function with a different number of elements than previously defined causes the ramp to resize its colors and offsets array to accomodate the new elements.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_colors" qualifiers="const">
|
<method name="get_colors" qualifiers="const">
|
||||||
<return type="ColorArray">
|
<return type="ColorArray">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the colors in the ramp
|
Returns the colors in the ramp
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
@ -8566,7 +8594,13 @@
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_rotation">
|
<method name="set_rotation">
|
||||||
<argument index="0" name="rotation" type="float">
|
<argument index="0" name="radians" type="float">
|
||||||
|
</argument>
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
|
<method name="set_rotation_deg">
|
||||||
|
<argument index="0" name="degrees" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
|
@ -8619,6 +8653,12 @@
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="get_rotation_deg" qualifiers="const">
|
||||||
|
<return type="float">
|
||||||
|
</return>
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="get_scale" qualifiers="const">
|
<method name="get_scale" qualifiers="const">
|
||||||
<return type="Vector2">
|
<return type="Vector2">
|
||||||
</return>
|
</return>
|
||||||
|
@ -13734,6 +13774,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="fix_alpha_edges">
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="get_data">
|
<method name="get_data">
|
||||||
<return type="RawArray">
|
<return type="RawArray">
|
||||||
</return>
|
</return>
|
||||||
|
@ -14254,13 +14298,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
</signals>
|
</signals>
|
||||||
<constants>
|
<constants>
|
||||||
<constant name="MOUSE_MODE_VISIBLE" value="0">
|
<constant name="MOUSE_MODE_VISIBLE" value="0">
|
||||||
Makes the mouse cursor visible if it is hidden.
|
Makes the mouse cursor visible if it is hidden.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="MOUSE_MODE_HIDDEN" value="1">
|
<constant name="MOUSE_MODE_HIDDEN" value="1">
|
||||||
Makes the mouse cursor hidden if it is visible.
|
Makes the mouse cursor hidden if it is visible.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="MOUSE_MODE_CAPTURED" value="2">
|
<constant name="MOUSE_MODE_CAPTURED" value="2">
|
||||||
Captures the mouse. The mouse will be hidden and unable to leave the game window. But it will still register movement and mouse button presses.
|
Captures the mouse. The mouse will be hidden and unable to leave the game window. But it will still register movement and mouse button presses.
|
||||||
</constant>
|
</constant>
|
||||||
</constants>
|
</constants>
|
||||||
</class>
|
</class>
|
||||||
|
@ -15353,7 +15397,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<method name="add_item">
|
<method name="add_item">
|
||||||
<argument index="0" name="text" type="String">
|
<argument index="0" name="text" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="1" name="icon" type="Texture" default="Object()">
|
<argument index="1" name="icon" type="Texture" default="NULL">
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="2" name="selectable" type="bool" default="true">
|
<argument index="2" name="selectable" type="bool" default="true">
|
||||||
</argument>
|
</argument>
|
||||||
|
@ -19132,7 +19176,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_parent" qualifiers="const">
|
<method name="get_parent" qualifiers="const">
|
||||||
<return type="Parent">
|
<return type="Node">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Return the parent [Node] of the current [Node], or an empty Object if the node lacks a parent.
|
Return the parent [Node] of the current [Node], or an empty Object if the node lacks a parent.
|
||||||
|
@ -19525,12 +19569,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_rot">
|
<method name="set_rot">
|
||||||
<argument index="0" name="rot" type="float">
|
<argument index="0" name="radians" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Set the rotation of the 2D node.
|
Set the rotation of the 2D node.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="set_rotd">
|
||||||
|
<argument index="0" name="degrees" type="float">
|
||||||
|
</argument>
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="set_scale">
|
<method name="set_scale">
|
||||||
<argument index="0" name="scale" type="Vector2">
|
<argument index="0" name="scale" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
|
@ -19552,6 +19602,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
Return the rotation of the 2D node.
|
Return the rotation of the 2D node.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="get_rotd" qualifiers="const">
|
||||||
|
<return type="float">
|
||||||
|
</return>
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="get_scale" qualifiers="const">
|
<method name="get_scale" qualifiers="const">
|
||||||
<return type="Vector2">
|
<return type="Vector2">
|
||||||
</return>
|
</return>
|
||||||
|
@ -19915,7 +19971,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="size" type="Vector2">
|
<argument index="0" name="size" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the window size to the specified size.
|
Sets the window size to the specified size.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_window_fullscreen">
|
<method name="set_window_fullscreen">
|
||||||
|
@ -19981,7 +20037,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the current screen orientation, the return value will be one of the SCREEN_ORIENTATION constants in this class.
|
Returns the current screen orientation, the return value will be one of the SCREEN_ORIENTATION constants in this class.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_keep_screen_on">
|
<method name="set_keep_screen_on">
|
||||||
|
@ -21939,66 +21995,66 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
</class>
|
</class>
|
||||||
<class name="Particles2D" inherits="Node2D" category="Core">
|
<class name="Particles2D" inherits="Node2D" category="Core">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
2D Particle emitter
|
2D Particle emitter
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
Particles2D is a particle system 2D [Node] that is used to simulate several types of particle effects, such as explosions, rain, snow, fireflies, or other magical-like shinny sparkles. Particles are drawn using impostors, and given their dynamic behavior, the user must provide a visibility AABB (although helpers to create one automatically exist).
|
Particles2D is a particle system 2D [Node] that is used to simulate several types of particle effects, such as explosions, rain, snow, fireflies, or other magical-like shinny sparkles. Particles are drawn using impostors, and given their dynamic behavior, the user must provide a visibility AABB (although helpers to create one automatically exist).
|
||||||
</description>
|
</description>
|
||||||
<methods>
|
<methods>
|
||||||
<method name="set_emitting">
|
<method name="set_emitting">
|
||||||
<argument index="0" name="active" type="bool">
|
<argument index="0" name="active" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
If this is set to true then the particle emitter will emit particles, if its false it will not.
|
If this is set to true then the particle emitter will emit particles, if its false it will not.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_emitting" qualifiers="const">
|
<method name="is_emitting" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns whether this emitter is currently emitting or not
|
Returns whether this emitter is currently emitting or not
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_amount">
|
<method name="set_amount">
|
||||||
<argument index="0" name="amount" type="int">
|
<argument index="0" name="amount" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the amount of particles spawned at each emission
|
Sets the amount of particles spawned at each emission
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_amount" qualifiers="const">
|
<method name="get_amount" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the amount of particles spawned at each emission
|
Returns the amount of particles spawned at each emission
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_lifetime">
|
<method name="set_lifetime">
|
||||||
<argument index="0" name="lifetime" type="float">
|
<argument index="0" name="lifetime" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the amount of seconds that each particle will be visible.
|
Sets the amount of seconds that each particle will be visible.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_lifetime" qualifiers="const">
|
<method name="get_lifetime" qualifiers="const">
|
||||||
<return type="float">
|
<return type="float">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Gets the amount of seconds that each particle will be visible.
|
Gets the amount of seconds that each particle will be visible.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_time_scale">
|
<method name="set_time_scale">
|
||||||
<argument index="0" name="time_scale" type="float">
|
<argument index="0" name="time_scale" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the increment or decrement for the particle lifetime. for example: if the time scale is set to 2, the particles will die and move twice as fast.
|
Sets the increment or decrement for the particle lifetime. for example: if the time scale is set to 2, the particles will die and move twice as fast.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_time_scale" qualifiers="const">
|
<method name="get_time_scale" qualifiers="const">
|
||||||
<return type="float">
|
<return type="float">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the emitter time scale
|
Returns the emitter time scale
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_pre_process_time">
|
<method name="set_pre_process_time">
|
||||||
|
@ -22017,14 +22073,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="value" type="float">
|
<argument index="0" name="value" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the amount of seconds during which the emitter will spawn particles, after the specified seconds the emitter state will be set to non emitting, so calling [method is_emitting] will return false. If the timeout is 0 the emitter will spawn forever.
|
Sets the amount of seconds during which the emitter will spawn particles, after the specified seconds the emitter state will be set to non emitting, so calling [method is_emitting] will return false. If the timeout is 0 the emitter will spawn forever.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_emit_timeout" qualifiers="const">
|
<method name="get_emit_timeout" qualifiers="const">
|
||||||
<return type="float">
|
<return type="float">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the amount of seconds during which the emitter will spawn particles
|
Returns the amount of seconds during which the emitter will spawn particles
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_param">
|
<method name="set_param">
|
||||||
|
@ -22033,7 +22089,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="1" name="value" type="float">
|
<argument index="1" name="value" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the value of the specified emitter parameter (see the constants secction for the list of parameters)
|
Sets the value of the specified emitter parameter (see the constants secction for the list of parameters)
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_param" qualifiers="const">
|
<method name="get_param" qualifiers="const">
|
||||||
|
@ -22042,7 +22098,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="param" type="int">
|
<argument index="0" name="param" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Returns the value of the specified emitter parameter
|
Returns the value of the specified emitter parameter
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_randomness">
|
<method name="set_randomness">
|
||||||
|
@ -22051,7 +22107,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="1" name="value" type="float">
|
<argument index="1" name="value" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the randomness value of the specified emitter parameter (see the constants secction for the list of parameters), 0 means no randomness, so every particle will have the parameters specified, 1 means that the parameter will be choosen at random, the closer the randomness value gets to 0 the more conservative the variation of the parameter will be.
|
Sets the randomness value of the specified emitter parameter (see the constants secction for the list of parameters), 0 means no randomness, so every particle will have the parameters specified, 1 means that the parameter will be choosen at random, the closer the randomness value gets to 0 the more conservative the variation of the parameter will be.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_randomness" qualifiers="const">
|
<method name="get_randomness" qualifiers="const">
|
||||||
|
@ -22060,7 +22116,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="param" type="int">
|
<argument index="0" name="param" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Returns the randomness value of the specified emitter parameter
|
Returns the randomness value of the specified emitter parameter
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_texture">
|
<method name="set_texture">
|
||||||
|
@ -22069,28 +22125,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="texture" type="Object">
|
<argument index="0" name="texture" type="Object">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the texture for each particle
|
Sets the texture for each particle
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_texture" qualifiers="const">
|
<method name="get_texture" qualifiers="const">
|
||||||
<return type="Texture">
|
<return type="Texture">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the texture for emitted particles
|
Returns the texture for emitted particles
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_color">
|
<method name="set_color">
|
||||||
<argument index="0" name="color" type="Color">
|
<argument index="0" name="color" type="Color">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Set the tint color for each particle.
|
Set the tint color for each particle.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_color" qualifiers="const">
|
<method name="get_color" qualifiers="const">
|
||||||
<return type="Color">
|
<return type="Color">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the tint color for each particle.
|
Returns the tint color for each particle.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_color_ramp">
|
<method name="set_color_ramp">
|
||||||
|
@ -22099,28 +22155,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="color_ramp" type="Object">
|
<argument index="0" name="color_ramp" type="Object">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the [ColorRamp] used to tint each particle. Particle will be tinted according to their lifetimes.
|
Sets the [ColorRamp] used to tint each particle. Particle will be tinted according to their lifetimes.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_color_ramp" qualifiers="const">
|
<method name="get_color_ramp" qualifiers="const">
|
||||||
<return type="ColorRamp">
|
<return type="ColorRamp">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the [ColorRamp] used to tint each particle
|
Returns the [ColorRamp] used to tint each particle
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_emissor_offset">
|
<method name="set_emissor_offset">
|
||||||
<argument index="0" name="offset" type="Vector2">
|
<argument index="0" name="offset" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the particle spawn origin position relative to the emitter center. for example if this value is set to (50, 50), the particle will spawn 50 units to the right and 50 units to the bottom of the emitter center.
|
Sets the particle spawn origin position relative to the emitter center. for example if this value is set to (50, 50), the particle will spawn 50 units to the right and 50 units to the bottom of the emitter center.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_emissor_offset" qualifiers="const">
|
<method name="get_emissor_offset" qualifiers="const">
|
||||||
<return type="Vector2">
|
<return type="Vector2">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the particle spawn origin position relative to the emitter.
|
Returns the particle spawn origin position relative to the emitter.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_flip_h">
|
<method name="set_flip_h">
|
||||||
|
@ -22175,14 +22231,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="extents" type="Vector2">
|
<argument index="0" name="extents" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the half extents of the emission box, particles will be spawned at random inside this box.
|
Sets the half extents of the emission box, particles will be spawned at random inside this box.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_emission_half_extents" qualifiers="const">
|
<method name="get_emission_half_extents" qualifiers="const">
|
||||||
<return type="Vector2">
|
<return type="Vector2">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the half extents of the emission box.
|
Returns the half extents of the emission box.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_color_phases">
|
<method name="set_color_phases">
|
||||||
|
@ -22290,7 +22346,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
</methods>
|
</methods>
|
||||||
<constants>
|
<constants>
|
||||||
<constant name="PARAM_DIRECTION" value="0">
|
<constant name="PARAM_DIRECTION" value="0">
|
||||||
Direction in degrees at which the particles will be launched, Notice that when the direction is set to 0 the particles will be launched to the negative
|
Direction in degrees at which the particles will be launched, Notice that when the direction is set to 0 the particles will be launched to the negative
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="PARAM_SPREAD" value="1">
|
<constant name="PARAM_SPREAD" value="1">
|
||||||
</constant>
|
</constant>
|
||||||
|
@ -23864,7 +23920,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="1" name="param" type="int">
|
<argument index="1" name="param" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="2" name="value" type="float" default="RID()">
|
<argument index="2" name="value" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
|
@ -32451,7 +32507,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_rotation">
|
<method name="set_rotation">
|
||||||
<argument index="0" name="rotation" type="Vector3">
|
<argument index="0" name="rotation_rad" type="Vector3">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
|
@ -32462,6 +32518,18 @@ This method controls whether the position between two cached points is interpola
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="set_rotation_deg">
|
||||||
|
<argument index="0" name="rotation_deg" type="Vector3">
|
||||||
|
</argument>
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
|
<method name="get_rotation_deg" qualifiers="const">
|
||||||
|
<return type="Vector3">
|
||||||
|
</return>
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="set_scale">
|
<method name="set_scale">
|
||||||
<argument index="0" name="scale" type="Vector3">
|
<argument index="0" name="scale" type="Vector3">
|
||||||
</argument>
|
</argument>
|
||||||
|
@ -32837,13 +32905,13 @@ This method controls whether the position between two cached points is interpola
|
||||||
</description>
|
</description>
|
||||||
<methods>
|
<methods>
|
||||||
<method name="set_stream">
|
<method name="set_stream">
|
||||||
<argument index="0" name="stream" type="Stream">
|
<argument index="0" name="stream" type="AudioStream">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_stream" qualifiers="const">
|
<method name="get_stream" qualifiers="const">
|
||||||
<return type="Stream">
|
<return type="AudioStream">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
|
@ -34630,8 +34698,11 @@ This method controls whether the position between two cached points is interpola
|
||||||
<method name="strip_edges">
|
<method name="strip_edges">
|
||||||
<return type="String">
|
<return type="String">
|
||||||
</return>
|
</return>
|
||||||
|
<argument index="0" name="left" type="bool" default="True">
|
||||||
|
</argument>
|
||||||
|
<argument index="1" name="right" type="bool" default="True">
|
||||||
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Return a copy of the string stripped of any non-printable character at the beginning and the end.
|
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="substr">
|
<method name="substr">
|
||||||
|
@ -35143,7 +35214,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
<method name="commit">
|
<method name="commit">
|
||||||
<return type="Mesh">
|
<return type="Mesh">
|
||||||
</return>
|
</return>
|
||||||
<argument index="0" name="existing" type="Mesh" default="Object()">
|
<argument index="0" name="existing" type="Mesh" default="NULL">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
|
@ -35625,7 +35696,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="cursor_get_blink_enabled" qualifiers="const">
|
<method name="cursor_get_blink_enabled" qualifiers="const">
|
||||||
<return type="float">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Gets whether the text editor caret is blinking.
|
Gets whether the text editor caret is blinking.
|
||||||
|
@ -37767,7 +37838,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
<method name="create_item">
|
<method name="create_item">
|
||||||
<return type="TreeItem">
|
<return type="TreeItem">
|
||||||
</return>
|
</return>
|
||||||
<argument index="0" name="parent" type="TreeItem" default="Object()">
|
<argument index="0" name="parent" type="TreeItem" default="NULL">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
|
@ -38438,11 +38509,9 @@ This method controls whether the position between two cached points is interpola
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="CELL_MODE_RANGE" value="2">
|
<constant name="CELL_MODE_RANGE" value="2">
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="CELL_MODE_RANGE_EXPRESSION" value="3">
|
<constant name="CELL_MODE_ICON" value="3">
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="CELL_MODE_ICON" value="4">
|
<constant name="CELL_MODE_CUSTOM" value="4">
|
||||||
</constant>
|
|
||||||
<constant name="CELL_MODE_CUSTOM" value="5">
|
|
||||||
</constant>
|
</constant>
|
||||||
</constants>
|
</constants>
|
||||||
</class>
|
</class>
|
||||||
|
@ -39866,13 +39935,13 @@ This method controls whether the position between two cached points is interpola
|
||||||
</description>
|
</description>
|
||||||
<methods>
|
<methods>
|
||||||
<method name="set_stream">
|
<method name="set_stream">
|
||||||
<argument index="0" name="stream" type="Stream">
|
<argument index="0" name="stream" type="VideoStream">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_stream" qualifiers="const">
|
<method name="get_stream" qualifiers="const">
|
||||||
<return type="Stream">
|
<return type="VideoStream">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
|
@ -40689,6 +40758,12 @@ This method controls whether the position between two cached points is interpola
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="texture_set_shrink_all_x2_on_set_data">
|
||||||
|
<argument index="0" name="shrink" type="bool">
|
||||||
|
</argument>
|
||||||
|
<description>
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="shader_create">
|
<method name="shader_create">
|
||||||
<return type="RID">
|
<return type="RID">
|
||||||
</return>
|
</return>
|
||||||
|
@ -42579,24 +42654,24 @@ This method controls whether the position between two cached points is interpola
|
||||||
</class>
|
</class>
|
||||||
<class name="YSort" inherits="Node2D" category="Core">
|
<class name="YSort" inherits="Node2D" category="Core">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
Sort all child nodes based on their Y positions.
|
Sort all child nodes based on their Y positions.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
Sort all child nodes based on their Y positions. The child node must inherit from [CanvasItem] for it to be sorted. Nodes that have a higher Y position will be drawn later, so they will appear on top of nodes that have a lower Y position.
|
Sort all child nodes based on their Y positions. The child node must inherit from [CanvasItem] for it to be sorted. Nodes that have a higher Y position will be drawn later, so they will appear on top of nodes that have a lower Y position.
|
||||||
</description>
|
</description>
|
||||||
<methods>
|
<methods>
|
||||||
<method name="set_sort_enabled">
|
<method name="set_sort_enabled">
|
||||||
<argument index="0" name="enabled" type="bool">
|
<argument index="0" name="enabled" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Set whether the children nodes are sorted or not. (default true)
|
Set whether the children nodes are sorted or not. (default true)
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_sort_enabled" qualifiers="const">
|
<method name="is_sort_enabled" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns true if the children nodes are being sorted.
|
Returns true if the children nodes are being sorted.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
@ -42617,7 +42692,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
<argument index="0" name="from" type="int">
|
<argument index="0" name="from" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Cast an [int] value to a boolean value, this method will return true if called with an integer value different to 0 and false in other case.
|
Cast an [int] value to a boolean value, this method will return true if called with an integer value different to 0 and false in other case.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="bool">
|
<method name="bool">
|
||||||
|
@ -42626,7 +42701,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
<argument index="0" name="from" type="float">
|
<argument index="0" name="from" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Cast a [float] value to a boolean value, this method will return true if called with a floating point value different to 0 and false in other case.
|
Cast a [float] value to a boolean value, this method will return true if called with a floating point value different to 0 and false in other case.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="bool">
|
<method name="bool">
|
||||||
|
@ -42635,7 +42710,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
<argument index="0" name="from" type="String">
|
<argument index="0" name="from" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Cast a [String] value to a boolean value, this method will return true if called with a non empty string and false in other case. Examples: [code]bool('False')[/code] returns true, [code]bool('')[/code]. returns false
|
Cast a [String] value to a boolean value, this method will return true if called with a non empty string and false in other case. Examples: [code]bool('False')[/code] returns true, [code]bool('')[/code]. returns false
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
@ -42644,10 +42719,10 @@ This method controls whether the position between two cached points is interpola
|
||||||
</class>
|
</class>
|
||||||
<class name="float" category="Built-In Types">
|
<class name="float" category="Built-In Types">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
Float built-in type
|
Float built-in type
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
Float built-in type.
|
Float built-in type.
|
||||||
</description>
|
</description>
|
||||||
<methods>
|
<methods>
|
||||||
<method name="float">
|
<method name="float">
|
||||||
|
@ -42656,7 +42731,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
<argument index="0" name="from" type="bool">
|
<argument index="0" name="from" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Cast a [bool] value to a floating point value, [code]float(true)[/code] will be equals to 1.0 and [code]float(false)[/code] will be equals to 0.0.
|
Cast a [bool] value to a floating point value, [code]float(true)[/code] will be equals to 1.0 and [code]float(false)[/code] will be equals to 0.0.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="float">
|
<method name="float">
|
||||||
|
@ -42665,7 +42740,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
<argument index="0" name="from" type="int">
|
<argument index="0" name="from" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Cast an [int] value to a floating point value, [code]float(1)[/code] will be equals to 1.0.
|
Cast an [int] value to a floating point value, [code]float(1)[/code] will be equals to 1.0.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="float">
|
<method name="float">
|
||||||
|
@ -42674,7 +42749,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
<argument index="0" name="from" type="String">
|
<argument index="0" name="from" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Cast a [String] value to a floating point value. This method accepts float value strings like [code] '1.23' [/code] and exponential notation strings for its parameter so calling [code] float('1e3') [/code] will return 1000.0 and calling [code] float('1e-3') [/code] will return -0.001.
|
Cast a [String] value to a floating point value. This method accepts float value strings like [code] '1.23' [/code] and exponential notation strings for its parameter so calling [code] float('1e3') [/code] will return 1000.0 and calling [code] float('1e-3') [/code] will return -0.001.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
@ -42695,7 +42770,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
<argument index="0" name="from" type="bool">
|
<argument index="0" name="from" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Cast a [bool] value to an integer value, [code]int(true)[/code] will be equals to 1 and [code]int(false)[/code] will be equals to 0.
|
Cast a [bool] value to an integer value, [code]int(true)[/code] will be equals to 1 and [code]int(false)[/code] will be equals to 0.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="int">
|
<method name="int">
|
||||||
|
@ -42704,7 +42779,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
<argument index="0" name="from" type="float">
|
<argument index="0" name="from" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Cast a float value to an integer value, this method simply removes the number fractions, so for example [code]int(2.7)[/code] will be equals to 2, [code]int(.1)[/code] will be equals to 0 and [code]int(-2.7)[/code] will be equals to -2.
|
Cast a float value to an integer value, this method simply removes the number fractions, so for example [code]int(2.7)[/code] will be equals to 2, [code]int(.1)[/code] will be equals to 0 and [code]int(-2.7)[/code] will be equals to -2.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="int">
|
<method name="int">
|
||||||
|
@ -42713,7 +42788,7 @@ This method controls whether the position between two cached points is interpola
|
||||||
<argument index="0" name="from" type="String">
|
<argument index="0" name="from" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Cast a [String] value to an integer value, this method is an integer parser from a string, so calling this method with an invalid integer string will return 0, a valid string will be something like [code]'1.7'[/code]. This method will ignore all non-number characters, so calling [code]int('1e3')[/code] will return 13.
|
Cast a [String] value to an integer value, this method is an integer parser from a string, so calling this method with an invalid integer string will return 0, a valid string will be something like [code]'1.7'[/code]. This method will ignore all non-number characters, so calling [code]int('1e3')[/code] will return 13.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
|
Loading…
Reference in New Issue