feat: updated godot version
This commit is contained in:
parent
0c508b0831
commit
42b028dbb5
4694 changed files with 236470 additions and 401376 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="Control" inherits="CanvasItem" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
||||
<class name="Control" inherits="CanvasItem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
||||
<brief_description>
|
||||
Base class for all GUI controls. Adapts its position and size based on its parent control.
|
||||
</brief_description>
|
||||
|
|
@ -92,14 +92,6 @@
|
|||
Override this method to return a human-readable description of the position of the child [param node] in the custom container, added to the [member accessibility_name].
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_cursor_shape" qualifiers="virtual const">
|
||||
<return type="int" />
|
||||
<param index="0" name="at_position" type="Vector2" />
|
||||
<description>
|
||||
Virtual method to be implemented by the user. Returns the cursor shape for the position [param at_position] in the control's local coordinates, which will typically be used while hovering over this control. See [method get_cursor_shape].
|
||||
If not overridden, defaults to [member mouse_default_cursor_shape].
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_drag_data" qualifiers="virtual">
|
||||
<return type="Variant" />
|
||||
<param index="0" name="at_position" type="Vector2" />
|
||||
|
|
@ -137,17 +129,10 @@
|
|||
<return type="String" />
|
||||
<param index="0" name="at_position" type="Vector2" />
|
||||
<description>
|
||||
Virtual method to be implemented by the user. Returns the tooltip text for the position [param at_position] in the control's local coordinates, which will typically appear when the cursor is resting over this control. See [method get_tooltip].
|
||||
Virtual method to be implemented by the user. Returns the tooltip text for the position [param at_position] in control's local coordinates, which will typically appear when the cursor is resting over this control. See [method get_tooltip].
|
||||
[b]Note:[/b] If this method returns an empty [String] and [method _make_custom_tooltip] is not overridden, no tooltip is displayed.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_tooltip_auto_translate_mode_at" qualifiers="virtual const">
|
||||
<return type="int" enum="Node.AutoTranslateMode" />
|
||||
<param index="0" name="at_position" type="Vector2" />
|
||||
<description>
|
||||
Return the auto-translation mode at the given [param at_position]. If not implemented, the [member tooltip_auto_translate_mode] property will be used instead.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_gui_input" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<param index="0" name="event" type="InputEvent" />
|
||||
|
|
@ -188,7 +173,7 @@
|
|||
<param index="0" name="point" type="Vector2" />
|
||||
<description>
|
||||
Virtual method to be implemented by the user. Returns whether the given [param point] is inside this control.
|
||||
If not overridden, default behavior is checking if the point is within the control's Rect.
|
||||
If not overridden, default behavior is checking if the point is within control's Rect.
|
||||
[b]Note:[/b] If you want to check if a point is inside the control, you can use [code]Rect2(Vector2.ZERO, size).has_point(point)[/code].
|
||||
</description>
|
||||
</method>
|
||||
|
|
@ -432,10 +417,9 @@
|
|||
</method>
|
||||
<method name="get_cursor_shape" qualifiers="const">
|
||||
<return type="int" enum="Control.CursorShape" />
|
||||
<param index="0" name="at_position" type="Vector2" default="Vector2(0, 0)" />
|
||||
<param index="0" name="position" type="Vector2" default="Vector2(0, 0)" />
|
||||
<description>
|
||||
Returns the mouse cursor shape for this control when hovered over [param at_position] in local coordinates. For most controls, this is the same as [member mouse_default_cursor_shape], but some built-in controls implement more complex logic.
|
||||
You can override [method _get_cursor_shape] to implement custom behavior for this method.
|
||||
Returns the mouse cursor shape for this control when hovered over [param position] in local coordinates. For most controls, this is the same as [member mouse_default_cursor_shape], but some built-in controls implement more complex logic.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_end" qualifiers="const">
|
||||
|
|
@ -619,8 +603,8 @@
|
|||
<return type="String" />
|
||||
<param index="0" name="at_position" type="Vector2" default="Vector2(0, 0)" />
|
||||
<description>
|
||||
Returns the tooltip text for the position [param at_position] in the control's local coordinates, which will typically appear when the cursor is resting over this control. By default, it returns [member tooltip_text].
|
||||
You can override [method _get_tooltip] to implement custom behavior for this method.
|
||||
Returns the tooltip text for the position [param at_position] in control's local coordinates, which will typically appear when the cursor is resting over this control. By default, it returns [member tooltip_text].
|
||||
This method can be overridden to customize its behavior. See [method _get_tooltip].
|
||||
[b]Note:[/b] If this method returns an empty [String] and [method _make_custom_tooltip] is not overridden, no tooltip is displayed.
|
||||
</description>
|
||||
</method>
|
||||
|
|
@ -647,7 +631,7 @@
|
|||
<param index="0" name="hide_focus" type="bool" default="false" />
|
||||
<description>
|
||||
Steal the focus from another control and become the focused control (see [member focus_mode]).
|
||||
If [param hide_focus] is [code]true[/code], the control will not visually show its focused state. Has no effect for [LineEdit] and [TextEdit] when [member ProjectSettings.gui/common/show_focus_state_on_pointer_event] is set to [code]Text Input Controls[/code], or for any control when it is set to [code]Always[/code].
|
||||
If [param hide_focus] is [code]true[/code], the control will not visually show its focused state. Has no effect for [LineEdit] and [TextEdit] when [member ProjectSettings.gui/common/show_focus_state_on_pointer_event] is set to [code]Control Supports Keyboard Input[/code], or for any control when it is set to [code]Always[/code].
|
||||
[b]Note:[/b] Using this method together with [method Callable.call_deferred] makes it more reliable, especially when called inside [method Node._ready].
|
||||
</description>
|
||||
</method>
|
||||
|
|
@ -1014,7 +998,7 @@
|
|||
<member name="accessibility_labeled_by_nodes" type="NodePath[]" setter="set_accessibility_labeled_by_nodes" getter="get_accessibility_labeled_by_nodes" default="[]">
|
||||
The paths to the nodes which label this node.
|
||||
</member>
|
||||
<member name="accessibility_live" type="int" setter="set_accessibility_live" getter="get_accessibility_live" enum="AccessibilityServer.AccessibilityLiveMode" default="0">
|
||||
<member name="accessibility_live" type="int" setter="set_accessibility_live" getter="get_accessibility_live" enum="DisplayServer.AccessibilityLiveMode" default="0">
|
||||
The mode with which a live region updates. A live region is a [Node] that is updated as a result of an external event when the user's focus may be elsewhere.
|
||||
</member>
|
||||
<member name="accessibility_name" type="String" setter="set_accessibility_name" getter="get_accessibility_name" default="""">
|
||||
|
|
@ -1114,41 +1098,6 @@
|
|||
Distance between the node's top edge and its parent control, based on [member anchor_top].
|
||||
Offsets are often controlled by one or multiple parent [Container] nodes, so you should not modify them manually if your node is a direct child of a [Container]. Offsets update automatically when you move or resize the node.
|
||||
</member>
|
||||
<member name="offset_transform_enabled" type="bool" setter="set_offset_transform_enabled" getter="is_offset_transform_enabled" default="false">
|
||||
If [code]true[/code], applies all offset transform properties. Otherwise, no offset transform is applied and the properties have no effect.
|
||||
</member>
|
||||
<member name="offset_transform_pivot" type="Vector2" setter="set_offset_transform_pivot" getter="get_offset_transform_pivot" default="Vector2(0, 0)">
|
||||
Pivot used by [member offset_transform_rotation] and [member offset_transform_scale] in absolute units.
|
||||
The final pivot position is the combined value of this property and [member offset_transform_pivot_ratio].
|
||||
Has no effect unless [member offset_transform_enabled] is [code]true[/code].
|
||||
</member>
|
||||
<member name="offset_transform_pivot_ratio" type="Vector2" setter="set_offset_transform_pivot_ratio" getter="get_offset_transform_pivot_ratio" default="Vector2(0.5, 0.5)">
|
||||
Same as [member offset_transform_pivot] but expressed in units relative to the [Control] [member size] where [code]Vector2(0, 0)[/code] is the top-left corner of this control, and [code]Vector2(1, 1)[/code] is its bottom-right corner.
|
||||
The final pivot position is the combined value of this property and [member offset_transform_pivot].
|
||||
Has no effect unless [member offset_transform_enabled] is [code]true[/code].
|
||||
</member>
|
||||
<member name="offset_transform_position" type="Vector2" setter="set_offset_transform_position" getter="get_offset_transform_position" default="Vector2(0, 0)">
|
||||
Position offset in absolute units. The final offset is the combined value of this property and [member offset_transform_position_ratio].
|
||||
Has no effect unless [member offset_transform_enabled] is [code]true[/code].
|
||||
</member>
|
||||
<member name="offset_transform_position_ratio" type="Vector2" setter="set_offset_transform_position_ratio" getter="get_offset_transform_position_ratio" default="Vector2(0, 0)">
|
||||
Same as [member offset_transform_position] but expressed in units relative to the [Control] [member size] where [code]Vector2(0, 0)[/code] is the top-left corner of this control, and [code]Vector2(1, 1)[/code] is its bottom-right corner.
|
||||
The final offset is the combined value of this property and [member offset_transform_position].
|
||||
Has no effect unless [member offset_transform_enabled] is [code]true[/code].
|
||||
</member>
|
||||
<member name="offset_transform_rotation" type="float" setter="set_offset_transform_rotation" getter="get_offset_transform_rotation" default="0.0">
|
||||
Rotation offset. The rotation pivot is defined by [member offset_transform_pivot] and [member offset_transform_pivot_ratio].
|
||||
Has no effect unless [member offset_transform_enabled] is [code]true[/code].
|
||||
</member>
|
||||
<member name="offset_transform_scale" type="Vector2" setter="set_offset_transform_scale" getter="get_offset_transform_scale" default="Vector2(1, 1)">
|
||||
Scale offset. The scale pivot is defined by [member offset_transform_pivot] and [member offset_transform_pivot_ratio].
|
||||
Has no effect unless [member offset_transform_enabled] is [code]true[/code].
|
||||
</member>
|
||||
<member name="offset_transform_visual_only" type="bool" setter="set_offset_transform_visual_only" getter="is_offset_transform_visual_only" default="true">
|
||||
If [code]true[/code], the offset transforms is only applied visually and does not affect input. In other words, this Control will still receive input events at its original location before the offset transform is applied.
|
||||
If [code]false[/code], the entire transform of this Control is affected and input events will register where the Control is visually.
|
||||
Has no effect unless [member offset_transform_enabled] is [code]true[/code].
|
||||
</member>
|
||||
<member name="physics_interpolation_mode" type="int" setter="set_physics_interpolation_mode" getter="get_physics_interpolation_mode" overrides="Node" enum="Node.PhysicsInterpolationMode" default="2" />
|
||||
<member name="pivot_offset" type="Vector2" setter="set_pivot_offset" getter="get_pivot_offset" default="Vector2(0, 0)">
|
||||
By default, the node's pivot is its top-left corner. When you change its [member rotation] or [member scale], it will rotate or scale around this pivot.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue