Inherits: ConfirmationDialog < AcceptDialog < WindowDialog < Popup < Control < CanvasItem < Node < Object
A modified version of FileDialog used by the editor.
| Access | access | 0 |
| String | current_dir | "res://" |
| String | current_file | "" |
| String | current_path | "res://" |
| bool | dialog_hide_on_ok |
false (parent override)
|
| bool | disable_overwrite_warning | false |
| DisplayMode | display_mode | 0 |
| Mode | mode | 4 |
| bool | resizable |
true (parent override)
|
| bool | show_hidden_files | false |
| String | window_title |
"Save a File" (parent override)
|
| void | add_filter ( String filter ) |
| void | clear_filters ( ) |
| VBoxContainer | get_vbox ( ) |
| void | invalidate ( ) |
Emitted when a directory is selected.
Emitted when a file is selected.
Emitted when multiple files are selected.
enum Mode:
EditorFileDialog can select only one file. Accepting the window will open the file.EditorFileDialog can select multiple files. Accepting the window will open all files.EditorFileDialog can select only one directory. Accepting the window will open the directory.EditorFileDialog can select a file or directory. Accepting the window will open it.EditorFileDialog can select only one file. Accepting the window will save the file.enum Access:
EditorFileDialog can only view res:// directory contents.EditorFileDialog can only view user:// directory contents.EditorFileDialog can view the entire local file system.enum DisplayMode:
EditorFileDialog displays resources as thumbnails.EditorFileDialog displays resources as a list of filenames.| Default | 0 |
| Setter | set_access(value) |
| Getter | get_access() |
The location from which the user may select a file, including res://, user://, and the local file system.
| Default | "res://" |
| Setter | set_current_dir(value) |
| Getter | get_current_dir() |
The currently occupied directory.
| Default | "" |
| Setter | set_current_file(value) |
| Getter | get_current_file() |
The currently selected file.
| Default | "res://" |
| Setter | set_current_path(value) |
| Getter | get_current_path() |
The file system path in the address bar.
| Default | false |
| Setter | set_disable_overwrite_warning(value) |
| Getter | is_overwrite_warning_disabled() |
If true, the EditorFileDialog will not warn the user before overwriting files.
| Default | 0 |
| Setter | set_display_mode(value) |
| Getter | get_display_mode() |
The view format in which the EditorFileDialog displays resources to the user.
| Default | 4 |
| Setter | set_mode(value) |
| Getter | get_mode() |
The purpose of the EditorFileDialog, which defines the allowed behaviors.
| Default | false |
| Setter | set_show_hidden_files(value) |
| Getter | is_showing_hidden_files() |
If true, hidden files and directories will be visible in the EditorFileDialog.
Adds a comma-delimited file extension filter option to the EditorFileDialog with an optional semi-colon-delimited label.
For example, "*.tscn, *.scn; Scenes" results in filter text "Scenes (*.tscn, *.scn)".
Removes all filters except for "All Files (*)".
Returns the VBoxContainer used to display the file system.
Notify the EditorFileDialog that its view of the data is no longer accurate. Updates the view contents on next view update.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_editorfiledialog.html