parent
11aa0d1405
commit
d183a5361f
|
@ -19363,21 +19363,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="pos" type="Vector2">
|
<argument index="0" name="pos" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Set the position of the 2d node.
|
Set the position of the 2D node.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_rot">
|
<method name="set_rot">
|
||||||
<argument index="0" name="rot" type="float">
|
<argument index="0" name="rot" 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_scale">
|
<method name="set_scale">
|
||||||
<argument index="0" name="scale" type="Vector2">
|
<argument index="0" name="scale" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Set the scale of the 2d node.
|
Set the scale of the 2D node.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_pos" qualifiers="const">
|
<method name="get_pos" qualifiers="const">
|
||||||
|
@ -19405,6 +19405,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="radians" type="float">
|
<argument index="0" name="radians" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Apply a 'radians' rotation to the 2D node, starting from its current rotation.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="move_local_x">
|
<method name="move_local_x">
|
||||||
|
@ -19413,6 +19414,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="1" name="scaled" type="bool" default="false">
|
<argument index="1" name="scaled" type="bool" default="false">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Apply a local translation on X axis to the 2D node according to the 'delta' of the process. If 'scaled' is false, the movement is normalized.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="move_local_y">
|
<method name="move_local_y">
|
||||||
|
@ -19421,30 +19423,35 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="1" name="scaled" type="bool" default="false">
|
<argument index="1" name="scaled" type="bool" default="false">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Apply a local translation on Y axis to the 2D node according to the 'delta' of the process. If 'scaled' is false, the movement is normalized.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="translate">
|
<method name="translate">
|
||||||
<argument index="0" name="offset" type="Vector2">
|
<argument index="0" name="offset" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Apply a local translation of 'offset' to the 2D node, starting from its current local position.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="global_translate">
|
<method name="global_translate">
|
||||||
<argument index="0" name="offset" type="Vector2">
|
<argument index="0" name="offset" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Apply a global translation of 'offset' to the 2D node, starting from its current global position.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="scale">
|
<method name="scale">
|
||||||
<argument index="0" name="ratio" type="Vector2">
|
<argument index="0" name="ratio" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Apply the 'ratio' scale to the 2D node, according to its current scale value.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_global_pos">
|
<method name="set_global_pos">
|
||||||
<argument index="0" name="pos" type="Vector2">
|
<argument index="0" name="pos" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the global position of the 2D node to 'pos'.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_global_pos" qualifiers="const">
|
<method name="get_global_pos" qualifiers="const">
|
||||||
|
@ -19458,18 +19465,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="xform" type="Matrix32">
|
<argument index="0" name="xform" type="Matrix32">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the local transform [Matrix32] of the 2D node.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_global_transform">
|
<method name="set_global_transform">
|
||||||
<argument index="0" name="xform" type="Matrix32">
|
<argument index="0" name="xform" type="Matrix32">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the global transform [Matrix32] of the 2D node.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="look_at">
|
<method name="look_at">
|
||||||
<argument index="0" name="point" type="Vector2">
|
<argument index="0" name="point" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Rotate the 2d node so it points at 'point' position.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_angle_to" qualifiers="const">
|
<method name="get_angle_to" qualifiers="const">
|
||||||
|
@ -19478,36 +19488,42 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="point" type="Vector2">
|
<argument index="0" name="point" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Return the rotation angle needed for the 2d node to point at 'point' position.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_z">
|
<method name="set_z">
|
||||||
<argument index="0" name="z" type="int">
|
<argument index="0" name="z" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the Z-index value of the 2D node.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_z" qualifiers="const">
|
<method name="get_z" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Return the Z-index of the 2D node.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_z_as_relative">
|
<method name="set_z_as_relative">
|
||||||
<argument index="0" name="enable" type="bool">
|
<argument index="0" name="enable" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the Z-index value as relative to the parent node of this 2D node. Thus, if this 2D node's Z-index value is 2 and its parent's effective Z-index is 3, then the effective Z-index value of this 2D node would be 3 + 2 = 5.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_z_relative" qualifiers="const">
|
<method name="is_z_relative" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Return true if the Z-index value of this 2D node is relative to its parent's. Else, return false.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="edit_set_pivot">
|
<method name="edit_set_pivot">
|
||||||
<argument index="0" name="pivot" type="Vector2">
|
<argument index="0" name="pivot" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the pivot position of the 2D node to 'pivot' value. This method is implemented only in some nodes that inherit Node2D.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_relative_transform_to_parent" qualifiers="const">
|
<method name="get_relative_transform_to_parent" qualifiers="const">
|
||||||
|
@ -19516,6 +19532,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="parent" type="Object">
|
<argument index="0" name="parent" type="Object">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Return the transform [Matrix32] calculated relatively to the parent of this 2D node.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
|
Loading…
Reference in New Issue