summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-10-04 17:18:18 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-10-04 17:18:18 +0200
commit428c4a6468ce562f6842caa7ef0daeb3efa0fd7d (patch)
tree864276c9d5c8a17e32a6e228ec4fc744c4e372d8 /doc
parentc46d1e454085a8cfdfbe4e1c3b5b42aeee5ed5c0 (diff)
parent35b3999efcf30bf5953f1fd42ab94bac3d312035 (diff)
downloadredot-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.xml8
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" />