[Native File Dialogs] Improve filter list handling, add selected filter to the callback.

This commit is contained in:
bruvzg
2023-08-21 10:54:24 +03:00
parent f5696c311c
commit 43e4708dff
8 changed files with 347 additions and 184 deletions
+1 -1
View File
@@ -119,7 +119,7 @@
<param index="6" name="callback" type="Callable" />
<description>
Displays OS native dialog for selecting files or directories in the file system.
Callbacks have the following arguments: [code]bool status, PackedStringArray selected_paths[/code].
Callbacks have the following arguments: [code]bool status, PackedStringArray selected_paths, int selected_filter_index[/code].
[b]Note:[/b] This method is implemented if the display server has the [code]FEATURE_NATIVE_DIALOG[/code] feature.
[b]Note:[/b] This method is implemented on Linux, Windows and macOS.
[b]Note:[/b] [param current_directory] might be ignored.