diff options
author | yds <ydeltastar@gmail.com> | 2024-09-30 00:48:08 -0300 |
---|---|---|
committer | yds <ydeltastar@gmail.com> | 2024-10-04 11:36:17 -0300 |
commit | 35b3999efcf30bf5953f1fd42ab94bac3d312035 (patch) | |
tree | 3ac9f70f718b553b9d6dff6ca9f556e07827071c /doc/classes | |
parent | 5ccbf6e4c794a4e47456edd9434b75fcd6096a2f (diff) | |
download | redot-engine-35b3999efcf30bf5953f1fd42ab94bac3d312035.tar.gz |
Make the "Quick Open" dialog available via EditorInterface
Diffstat (limited to 'doc/classes')
-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" /> |