Rename Control rotation to rotation_degrees
This commit is contained in:
parent
8ad0ff8ae5
commit
b832003c6b
2 changed files with 6 additions and 18 deletions
|
@ -454,13 +454,6 @@
|
|||
Returns the position and size of the control relative to the top-left corner of the parent Control. See [member rect_position] and [member rect_size].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_rotation" qualifiers="const">
|
||||
<return type="float">
|
||||
</return>
|
||||
<description>
|
||||
Returns the rotation (in radians).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_theme_color" qualifiers="const">
|
||||
<return type="Color">
|
||||
</return>
|
||||
|
@ -981,15 +974,6 @@
|
|||
If [code]keep_margins[/code] is [code]true[/code], control's anchors will be updated instead of margins.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_rotation">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="radians" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the rotation (in radians).
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_size">
|
||||
<return type="void">
|
||||
</return>
|
||||
|
@ -1117,7 +1101,10 @@
|
|||
<member name="rect_position" type="Vector2" setter="_set_position" getter="get_position" default="Vector2( 0, 0 )">
|
||||
The node's position, relative to its parent. It corresponds to the rectangle's top-left corner. The property is not affected by [member rect_pivot_offset].
|
||||
</member>
|
||||
<member name="rect_rotation" type="float" setter="set_rotation_degrees" getter="get_rotation_degrees" default="0.0">
|
||||
<member name="rect_rotation" type="float" setter="set_rotation" getter="get_rotation" default="0.0">
|
||||
The node's rotation around its pivot, in radians. See [member rect_pivot_offset] to change the pivot's position.
|
||||
</member>
|
||||
<member name="rect_rotation_degrees" type="float" setter="set_rotation_degrees" getter="get_rotation_degrees" default="0.0">
|
||||
The node's rotation around its pivot, in degrees. See [member rect_pivot_offset] to change the pivot's position.
|
||||
</member>
|
||||
<member name="rect_scale" type="Vector2" setter="set_scale" getter="get_scale" default="Vector2( 1, 1 )">
|
||||
|
|
|
@ -2913,7 +2913,8 @@ void Control::_bind_methods() {
|
|||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR2, "rect_global_position", PROPERTY_HINT_NONE, "", 0), "_set_global_position", "get_global_position");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR2, "rect_size", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_EDITOR), "_set_size", "get_size");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR2, "rect_min_size"), "set_custom_minimum_size", "get_custom_minimum_size");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "rect_rotation", PROPERTY_HINT_RANGE, "-360,360,0.1,or_lesser,or_greater"), "set_rotation_degrees", "get_rotation_degrees");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "rect_rotation", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NOEDITOR), "set_rotation", "get_rotation");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "rect_rotation_degrees", PROPERTY_HINT_RANGE, "-360,360,0.1,or_lesser,or_greater"), "set_rotation_degrees", "get_rotation_degrees");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR2, "rect_scale"), "set_scale", "get_scale");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR2, "rect_pivot_offset"), "set_pivot_offset", "get_pivot_offset");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "rect_clip_content"), "set_clip_contents", "is_clipping_contents");
|
||||
|
|
Loading…
Reference in a new issue