Skip to content

Commit 8ce54d4

Browse files
committed
Expose EditorFileDialog::popup_file_dialog() to GDScript and GDExtension
1 parent 89850d5 commit 8ce54d4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

doc/classes/EditorFileDialog.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@
9090
Notify the [EditorFileDialog] that its view of the data is no longer accurate. Updates the view contents on next view update.
9191
</description>
9292
</method>
93+
<method name="popup_file_dialog">
94+
<return type="void" />
95+
<description>
96+
Shows the [EditorFileDialog] at the default size and position for file dialogs in the editor, and selects the file name if there is a current file.
97+
</description>
98+
</method>
9399
<method name="set_option_default">
94100
<return type="void" />
95101
<param index="0" name="option" type="int" />

editor/gui/editor_file_dialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,6 +1929,7 @@ void EditorFileDialog::_bind_methods() {
19291929
ClassDB::bind_method(D_METHOD("set_disable_overwrite_warning", "disable"), &EditorFileDialog::set_disable_overwrite_warning);
19301930
ClassDB::bind_method(D_METHOD("is_overwrite_warning_disabled"), &EditorFileDialog::is_overwrite_warning_disabled);
19311931
ClassDB::bind_method(D_METHOD("add_side_menu", "menu", "title"), &EditorFileDialog::add_side_menu, DEFVAL(""));
1932+
ClassDB::bind_method(D_METHOD("popup_file_dialog"), &EditorFileDialog::popup_file_dialog);
19321933

19331934
ClassDB::bind_method(D_METHOD("invalidate"), &EditorFileDialog::invalidate);
19341935

0 commit comments

Comments
 (0)