feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -117,6 +117,18 @@
|
|||
[b]Note:[/b] When creating custom editor UI, prefer accessing theme items directly from your GUI nodes using the [code]get_theme_*[/code] methods.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_editor_toaster" qualifiers="const">
|
||||
<return type="EditorToaster" />
|
||||
<description>
|
||||
Returns the editor's [EditorToaster].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_editor_undo_redo" qualifiers="const">
|
||||
<return type="EditorUndoRedoManager" />
|
||||
<description>
|
||||
Returns the editor's [EditorUndoRedoManager].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_editor_viewport_2d" qualifiers="const">
|
||||
<return type="SubViewport" />
|
||||
<description>
|
||||
|
|
@ -235,8 +247,9 @@
|
|||
<method name="open_scene_from_path">
|
||||
<return type="void" />
|
||||
<param index="0" name="scene_filepath" type="String" />
|
||||
<param index="1" name="set_inherited" type="bool" default="false" />
|
||||
<description>
|
||||
Opens the scene at the given path.
|
||||
Opens the scene at the given path. If [param set_inherited] is [code]true[/code], creates a new inherited scene.
|
||||
</description>
|
||||
</method>
|
||||
<method name="play_current_scene">
|
||||
|
|
@ -258,6 +271,23 @@
|
|||
Plays the main scene.
|
||||
</description>
|
||||
</method>
|
||||
<method name="popup_create_dialog" experimental="">
|
||||
<return type="void" />
|
||||
<param index="0" name="callback" type="Callable" />
|
||||
<param index="1" name="base_type" type="StringName" default="""" />
|
||||
<param index="2" name="current_type" type="String" default="""" />
|
||||
<param index="3" name="dialog_title" type="String" default="""" />
|
||||
<param index="4" name="type_blocklist" type="StringName[]" default="[]" />
|
||||
<description>
|
||||
Pops up an editor dialog for creating an object.
|
||||
The [param callback] must take a single argument of type [StringName] which will contain the type name of the selected object or be empty if no item is selected.
|
||||
The [param base_type] specifies the base type of objects to display. For example, if you set this to "Resource", all types derived from [Resource] will display in the create dialog.
|
||||
The [param current_type] will be passed in the search box of the create dialog, and the specified type can be immediately selected when the dialog pops up. If the [param current_type] is not derived from [param base_type], there will be no result of the type in the dialog.
|
||||
The [param dialog_title] allows you to define a custom title for the dialog. This is useful if you want to accurately hint the usage of the dialog. If the [param dialog_title] is an empty string, the dialog will use "Create New 'Base Type'" as the default title.
|
||||
The [param type_blocklist] contains a list of type names, and the types in the blocklist will be hidden from the create dialog.
|
||||
[b]Note:[/b] Trying to list the base type in the [param type_blocklist] will hide all types derived from the base type from the create dialog.
|
||||
</description>
|
||||
</method>
|
||||
<method name="popup_dialog">
|
||||
<return type="void" />
|
||||
<param index="0" name="dialog" type="Window" />
|
||||
|
|
@ -295,13 +325,23 @@
|
|||
See also [method Window.set_unparent_when_invisible].
|
||||
</description>
|
||||
</method>
|
||||
<method name="popup_method_selector">
|
||||
<return type="void" />
|
||||
<param index="0" name="object" type="Object" />
|
||||
<param index="1" name="callback" type="Callable" />
|
||||
<param index="2" name="current_value" type="String" default="""" />
|
||||
<description>
|
||||
Pops up an editor dialog for selecting a method from [param object]. The [param callback] must take a single argument of type [String] which will contain the name of the selected method or be empty if the dialog is canceled. If [param current_value] is provided, the method will be selected automatically in the method list, if it exists.
|
||||
</description>
|
||||
</method>
|
||||
<method name="popup_node_selector">
|
||||
<return type="void" />
|
||||
<param index="0" name="callback" type="Callable" />
|
||||
<param index="1" name="valid_types" type="StringName[]" default="[]" />
|
||||
<param index="2" name="current_value" type="Node" default="null" />
|
||||
<description>
|
||||
Pops up an editor dialog for selecting a [Node] from the edited scene. The [param callback] must take a single argument of type [NodePath]. It is called on the selected [NodePath] or the empty path [code]^""[/code] if the dialog is canceled. If [param valid_types] is provided, the dialog will only show Nodes that match one of the listed Node types.
|
||||
[b]Example:[/b]
|
||||
Pops up an editor dialog for selecting a [Node] from the edited scene. The [param callback] must take a single argument of type [NodePath]. It is called on the selected [NodePath] or the empty path [code]^""[/code] if the dialog is canceled. If [param valid_types] is provided, the dialog will only show Nodes that match one of the listed Node types. If [param current_value] is provided, the Node will be automatically selected in the tree, if it exists.
|
||||
[b]Example:[/b] Display the node selection dialog as soon as this node is added to the tree for the first time:
|
||||
[codeblock]
|
||||
func _ready():
|
||||
if Engine.is_editor_hint():
|
||||
|
|
@ -320,9 +360,9 @@
|
|||
<param index="0" name="object" type="Object" />
|
||||
<param index="1" name="callback" type="Callable" />
|
||||
<param index="2" name="type_filter" type="PackedInt32Array" default="PackedInt32Array()" />
|
||||
<param index="3" name="current_value" type="String" default="""" />
|
||||
<description>
|
||||
Pops up an editor dialog for selecting properties from [param object]. The [param callback] must take a single argument of type [NodePath]. It is called on the selected property path (see [method NodePath.get_as_property_path]) or the empty path [code]^""[/code] if the dialog is canceled. If [param type_filter] is provided, the dialog will only show properties that match one of the listed [enum Variant.Type] values.
|
||||
[b]Example:[/b]
|
||||
Pops up an editor dialog for selecting properties from [param object]. The [param callback] must take a single argument of type [NodePath]. It is called on the selected property path (see [method NodePath.get_as_property_path]) or the empty path [code]^""[/code] if the dialog is canceled. If [param type_filter] is provided, the dialog will only show properties that match one of the listed [enum Variant.Type] values. If [param current_value] is provided, the property will be selected automatically in the property list, if it exists.
|
||||
[codeblock]
|
||||
func _ready():
|
||||
if Engine.is_editor_hint():
|
||||
|
|
@ -336,6 +376,14 @@
|
|||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
<method name="popup_quick_open">
|
||||
<return type="void" />
|
||||
<param index="0" name="callback" type="Callable" />
|
||||
<param index="1" name="base_types" type="StringName[]" default="[]" />
|
||||
<description>
|
||||
Pops up an editor dialog for quick selecting a resource file. The [param callback] must take a single argument of type [String] which will contain the path of the selected resource or be empty if the dialog is canceled. If [param base_types] is provided, the dialog will only show resources that match these types. Only types deriving from [Resource] are supported.
|
||||
</description>
|
||||
</method>
|
||||
<method name="reload_scene_from_path">
|
||||
<return type="void" />
|
||||
<param index="0" name="scene_filepath" type="String" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue