feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -36,6 +36,20 @@
|
|||
Corresponds to the [constant NOTIFICATION_EXIT_TREE] notification in [method Object._notification] and signal [signal tree_exiting]. To get notified when the node has already left the active tree, connect to the [signal tree_exited].
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_accessibility_configuration_warnings" qualifiers="virtual const">
|
||||
<return type="PackedStringArray" />
|
||||
<description>
|
||||
The elements in the array returned from this method are displayed as warnings in the Scene dock if the script that overrides it is a [code]tool[/code] script, and accessibility warnings are enabled in the editor settings.
|
||||
Returning an empty array produces no warnings.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_accessibility_container_name" qualifiers="virtual const">
|
||||
<return type="String" />
|
||||
<param index="0" name="node" type="Node" />
|
||||
<description>
|
||||
Return a human-readable description of the position of [param node] child in the custom container, added to the node name.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_configuration_warnings" qualifiers="virtual const">
|
||||
<return type="PackedStringArray" />
|
||||
<description>
|
||||
|
|
@ -56,6 +70,12 @@
|
|||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_focused_accessibility_element" qualifiers="virtual const">
|
||||
<return type="RID" />
|
||||
<description>
|
||||
Called during accessibility information updates to determine the currently focused sub-element, should return a sub-element RID or the value returned by [method get_accessibility_element].
|
||||
</description>
|
||||
</method>
|
||||
<method name="_input" qualifiers="virtual">
|
||||
<return type="void" />
|
||||
<param index="0" name="event" type="InputEvent" />
|
||||
|
|
@ -142,7 +162,7 @@
|
|||
<description>
|
||||
Adds a child [param node]. Nodes can have any number of children, but every child must have a unique name. Child nodes are automatically deleted when the parent node is deleted, so an entire scene can be removed by deleting its topmost node.
|
||||
If [param force_readable_name] is [code]true[/code], improves the readability of the added [param node]. If not named, the [param node] is renamed to its type, and if it shares [member name] with a sibling, a number is suffixed more appropriately. This operation is very slow. As such, it is recommended leaving this to [code]false[/code], which assigns a dummy name featuring [code]@[/code] in both situations.
|
||||
If [param internal] is different than [constant INTERNAL_MODE_DISABLED], the child will be added as internal node. These nodes are ignored by methods like [method get_children], unless their parameter [code]include_internal[/code] is [code]true[/code]. The intended usage is to hide the internal nodes from the user, so the user won't accidentally delete or modify them. Used by some GUI nodes, e.g. [ColorPicker]. See [enum InternalMode] for available modes.
|
||||
If [param internal] is different than [constant INTERNAL_MODE_DISABLED], the child will be added as internal node. These nodes are ignored by methods like [method get_children], unless their parameter [code]include_internal[/code] is [code]true[/code]. It also prevents these nodes being duplicated with their parent. The intended usage is to hide the internal nodes from the user, so the user won't accidentally delete or modify them. Used by some GUI nodes, e.g. [ColorPicker]. See [enum InternalMode] for available modes.
|
||||
[b]Note:[/b] If [param node] already has a parent, this method will fail. Use [method remove_child] first to remove [param node] from its current parent. For example:
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
|
|
@ -259,7 +279,7 @@
|
|||
<return type="Node" />
|
||||
<param index="0" name="flags" type="int" default="15" />
|
||||
<description>
|
||||
Duplicates the node, returning a new node with all of its properties, signals, groups, and children copied from the original. The behavior can be tweaked through the [param flags] (see [enum DuplicateFlags]).
|
||||
Duplicates the node, returning a new node with all of its properties, signals, groups, and children copied from the original. The behavior can be tweaked through the [param flags] (see [enum DuplicateFlags]). Internal nodes are not duplicated.
|
||||
[b]Note:[/b] For nodes with a [Script] attached, if [method Object._init] has been defined with required parameters, the duplicated node will not have a [Script].
|
||||
</description>
|
||||
</method>
|
||||
|
|
@ -299,6 +319,13 @@
|
|||
[b]Note:[/b] As this method walks upwards in the scene tree, it can be slow in large, deeply nested nodes. Consider storing a reference to the found node in a variable. Alternatively, use [method get_node] with unique names (see [member unique_name_in_owner]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_accessibility_element" qualifiers="const">
|
||||
<return type="RID" />
|
||||
<description>
|
||||
Returns main accessibility element RID.
|
||||
[b]Note:[/b] This method should be called only during accessibility information updates ([constant NOTIFICATION_ACCESSIBILITY_UPDATE]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_child" qualifiers="const">
|
||||
<return type="Node" />
|
||||
<param index="0" name="idx" type="int" />
|
||||
|
|
@ -777,6 +804,12 @@
|
|||
Calls [method Object.notification] with [param what] on this node and all of its children, recursively.
|
||||
</description>
|
||||
</method>
|
||||
<method name="queue_accessibility_update">
|
||||
<return type="void" />
|
||||
<description>
|
||||
Queues an accessibility information update for this node.
|
||||
</description>
|
||||
</method>
|
||||
<method name="queue_free" keywords="delete, remove, kill, die">
|
||||
<return type="void" />
|
||||
<description>
|
||||
|
|
@ -994,6 +1027,27 @@
|
|||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="accessibility_controls_nodes" type="NodePath[]" setter="set_accessibility_controls_nodes" getter="get_accessibility_controls_nodes" default="[]">
|
||||
The list of nodes which are controlled by this node.
|
||||
</member>
|
||||
<member name="accessibility_described_by_nodes" type="NodePath[]" setter="set_accessibility_described_by_nodes" getter="get_accessibility_described_by_nodes" default="[]">
|
||||
The list of nodes which are describing this node.
|
||||
</member>
|
||||
<member name="accessibility_description" type="String" setter="set_accessibility_description" getter="get_accessibility_description" default="""">
|
||||
The human-readable node description that is reported to assistive apps.
|
||||
</member>
|
||||
<member name="accessibility_flow_to_nodes" type="NodePath[]" setter="set_accessibility_flow_to_nodes" getter="get_accessibility_flow_to_nodes" default="[]">
|
||||
The list of nodes which this node flows into.
|
||||
</member>
|
||||
<member name="accessibility_labeled_by_nodes" type="NodePath[]" setter="set_accessibility_labeled_by_nodes" getter="get_accessibility_labeled_by_nodes" default="[]">
|
||||
The list of nodes which label this node.
|
||||
</member>
|
||||
<member name="accessibility_live" type="int" setter="set_accessibility_live" getter="get_accessibility_live" enum="DisplayServer.AccessibilityLiveMode" default="0">
|
||||
Live region update mode, a live region is [Node] that is updated as a result of an external event when user focus may be elsewhere.
|
||||
</member>
|
||||
<member name="accessibility_name" type="String" setter="set_accessibility_name" getter="get_accessibility_name" default="""">
|
||||
The human-readable node name that is reported to assistive apps.
|
||||
</member>
|
||||
<member name="auto_translate_mode" type="int" setter="set_auto_translate_mode" getter="get_auto_translate_mode" enum="Node.AutoTranslateMode" default="0">
|
||||
Defines if any text should automatically change to its translated version depending on the current locale (for nodes such as [Label], [RichTextLabel], [Window], etc.). Also decides if the node's strings should be parsed for POT generation.
|
||||
[b]Note:[/b] For the root node, auto translate mode can also be set via [member ProjectSettings.internationalization/rendering/root_node_auto_translate].
|
||||
|
|
@ -1226,6 +1280,9 @@
|
|||
<constant name="NOTIFICATION_VP_MOUSE_EXIT" value="1011">
|
||||
Notification received when the mouse cursor leaves the [Viewport]'s visible area, that is not occluded behind other [Control]s or [Window]s, provided its [member Viewport.gui_disable_input] is [code]false[/code] and regardless if it's currently focused or not.
|
||||
</constant>
|
||||
<constant name="NOTIFICATION_WM_POSITION_CHANGED" value="1012">
|
||||
Notification received when the window is moved.
|
||||
</constant>
|
||||
<constant name="NOTIFICATION_OS_MEMORY_WARNING" value="2009">
|
||||
Notification received from the OS when the application is exceeding its allocated memory.
|
||||
Implemented only on iOS.
|
||||
|
|
@ -1273,6 +1330,12 @@
|
|||
<constant name="NOTIFICATION_TEXT_SERVER_CHANGED" value="2018">
|
||||
Notification received when the [TextServer] is changed.
|
||||
</constant>
|
||||
<constant name="NOTIFICATION_ACCESSIBILITY_UPDATE" value="3000">
|
||||
Notification received when an accessibility information update is required.
|
||||
</constant>
|
||||
<constant name="NOTIFICATION_ACCESSIBILITY_INVALIDATE" value="3001">
|
||||
Notification received when accessibility elements are invalidated. All node accessibility elements are automatically deleted after receiving this message, therefore all existing references to such elements should be discarded.
|
||||
</constant>
|
||||
<constant name="PROCESS_MODE_INHERIT" value="0" enum="ProcessMode">
|
||||
Inherits [member process_mode] from the node's parent. This is the default for any newly created node.
|
||||
</constant>
|
||||
|
|
@ -1316,7 +1379,7 @@
|
|||
Disables physics interpolation for this node and for children set to [constant PHYSICS_INTERPOLATION_MODE_INHERIT].
|
||||
</constant>
|
||||
<constant name="DUPLICATE_SIGNALS" value="1" enum="DuplicateFlags">
|
||||
Duplicate the node's signal connections.
|
||||
Duplicate the node's signal connections that are connected with the [constant Object.CONNECT_PERSIST] flag.
|
||||
</constant>
|
||||
<constant name="DUPLICATE_GROUPS" value="2" enum="DuplicateFlags">
|
||||
Duplicate the node's groups.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue