diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-10-04 17:18:18 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-10-04 17:18:18 +0200 |
commit | 428c4a6468ce562f6842caa7ef0daeb3efa0fd7d (patch) | |
tree | 864276c9d5c8a17e32a6e228ec4fc744c4e372d8 /doc | |
parent | c46d1e454085a8cfdfbe4e1c3b5b42aeee5ed5c0 (diff) | |
parent | 35b3999efcf30bf5953f1fd42ab94bac3d312035 (diff) | |
download | redot-engine-428c4a6468ce562f6842caa7ef0daeb3efa0fd7d.tar.gz |
Merge pull request #97633 from ydeltastar/quickly-quick-open
Make the "Quick Open" dialog available via `EditorInterface`
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/EditorInterface.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/classes/EditorInterface.xml b/doc/classes/EditorInterface.xml index 795c5c1c2f..43059db8b2 100644 --- a/doc/classes/EditorInterface.xml +++ b/doc/classes/EditorInterface.xml @@ -343,6 +343,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" /> |