diff options
Diffstat (limited to 'doc/classes/EditorInterface.xml')
-rw-r--r-- | doc/classes/EditorInterface.xml | 63 |
1 files changed, 35 insertions, 28 deletions
diff --git a/doc/classes/EditorInterface.xml b/doc/classes/EditorInterface.xml index cc2f33ce89..c4bbc7c108 100644 --- a/doc/classes/EditorInterface.xml +++ b/doc/classes/EditorInterface.xml @@ -12,24 +12,24 @@ <methods> <method name="edit_node"> <return type="void" /> - <argument index="0" name="node" type="Node" /> + <param index="0" name="node" type="Node" /> <description> Edits the given [Node]. The node will be also selected if it's inside the scene tree. </description> </method> <method name="edit_resource"> <return type="void" /> - <argument index="0" name="resource" type="Resource" /> + <param index="0" name="resource" type="Resource" /> <description> Edits the given [Resource]. If the resource is a [Script] you can also edit it with [method edit_script] to specify the line and column position. </description> </method> <method name="edit_script"> <return type="void" /> - <argument index="0" name="script" type="Script" /> - <argument index="1" name="line" type="int" default="-1" /> - <argument index="2" name="column" type="int" default="0" /> - <argument index="3" name="grab_focus" type="bool" default="true" /> + <param index="0" name="script" type="Script" /> + <param index="1" name="line" type="int" default="-1" /> + <param index="2" name="column" type="int" default="0" /> + <param index="3" name="grab_focus" type="bool" default="true" /> <description> Edits the given [Script]. The line and column on which to open the script can also be specified. The script will be open with the user-configured editor for the script's language which may be an external editor. </description> @@ -101,7 +101,7 @@ </description> </method> <method name="get_open_scenes" qualifiers="const"> - <return type="Array" /> + <return type="PackedStringArray" /> <description> Returns an [Array] with the file paths of the currently opened scenes. </description> @@ -145,11 +145,11 @@ </method> <method name="inspect_object"> <return type="void" /> - <argument index="0" name="object" type="Object" /> - <argument index="1" name="for_property" type="String" default="""" /> - <argument index="2" name="inspector_only" type="bool" default="false" /> + <param index="0" name="object" type="Object" /> + <param index="1" name="for_property" type="String" default="""" /> + <param index="2" name="inspector_only" type="bool" default="false" /> <description> - Shows the given property on the given [code]object[/code] in the editor's Inspector dock. If [code]inspector_only[/code] is [code]true[/code], plugins will not attempt to edit [code]object[/code]. + Shows the given property on the given [param object] in the editor's Inspector dock. If [param inspector_only] is [code]true[/code], plugins will not attempt to edit [param object]. </description> </method> <method name="is_playing_scene" qualifiers="const"> @@ -160,22 +160,22 @@ </method> <method name="is_plugin_enabled" qualifiers="const"> <return type="bool" /> - <argument index="0" name="plugin" type="String" /> + <param index="0" name="plugin" type="String" /> <description> - Returns [code]true[/code] if the specified [code]plugin[/code] is enabled. The plugin name is the same as its directory name. + Returns [code]true[/code] if the specified [param plugin] is enabled. The plugin name is the same as its directory name. </description> </method> <method name="make_mesh_previews"> - <return type="Array" /> - <argument index="0" name="meshes" type="Array" /> - <argument index="1" name="preview_size" type="int" /> + <return type="Texture2D[]" /> + <param index="0" name="meshes" type="Mesh[]" /> + <param index="1" name="preview_size" type="int" /> <description> Returns mesh previews rendered at the given size as an [Array] of [Texture2D]s. </description> </method> <method name="open_scene_from_path"> <return type="void" /> - <argument index="0" name="scene_filepath" type="String" /> + <param index="0" name="scene_filepath" type="String" /> <description> Opens the scene at the given path. </description> @@ -188,7 +188,7 @@ </method> <method name="play_custom_scene"> <return type="void" /> - <argument index="0" name="scene_filepath" type="String" /> + <param index="0" name="scene_filepath" type="String" /> <description> Plays the scene specified by its filepath. </description> @@ -201,11 +201,18 @@ </method> <method name="reload_scene_from_path"> <return type="void" /> - <argument index="0" name="scene_filepath" type="String" /> + <param index="0" name="scene_filepath" type="String" /> <description> Reloads the scene at the given path. </description> </method> + <method name="restart_editor"> + <return type="void" /> + <param index="0" name="save" type="bool" default="true" /> + <description> + Restarts the editor. This closes the editor and then opens the same project. If [param save] is [code]true[/code], the project will be saved before restarting. + </description> + </method> <method name="save_scene"> <return type="int" enum="Error" /> <description> @@ -214,30 +221,30 @@ </method> <method name="save_scene_as"> <return type="void" /> - <argument index="0" name="path" type="String" /> - <argument index="1" name="with_preview" type="bool" default="true" /> + <param index="0" name="path" type="String" /> + <param index="1" name="with_preview" type="bool" default="true" /> <description> - Saves the scene as a file at [code]path[/code]. + Saves the scene as a file at [param path]. </description> </method> <method name="select_file"> <return type="void" /> - <argument index="0" name="file" type="String" /> + <param index="0" name="file" type="String" /> <description> - Selects the file, with the path provided by [code]file[/code], in the FileSystem dock. + Selects the file, with the path provided by [param file], in the FileSystem dock. </description> </method> <method name="set_main_screen_editor"> <return type="void" /> - <argument index="0" name="name" type="String" /> + <param index="0" name="name" type="String" /> <description> - Sets the editor's current main screen to the one specified in [code]name[/code]. [code]name[/code] must match the text of the tab in question exactly ([code]2D[/code], [code]3D[/code], [code]Script[/code], [code]AssetLib[/code]). + Sets the editor's current main screen to the one specified in [param name]. [param name] must match the text of the tab in question exactly ([code]2D[/code], [code]3D[/code], [code]Script[/code], [code]AssetLib[/code]). </description> </method> <method name="set_plugin_enabled"> <return type="void" /> - <argument index="0" name="plugin" type="String" /> - <argument index="1" name="enabled" type="bool" /> + <param index="0" name="plugin" type="String" /> + <param index="1" name="enabled" type="bool" /> <description> Sets the enabled status of a plugin. The plugin name is the same as its directory name. </description> |