2017-09-12 20:42:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2021-04-26 11:14:51 +00:00
<class name= "EditorFileDialog" inherits= "ConfirmationDialog" version= "3.4" >
2017-09-12 20:42:36 +00:00
<brief_description >
2020-03-03 18:21:21 +00:00
A modified version of [FileDialog] used by the editor.
2017-09-12 20:42:36 +00:00
</brief_description>
<description >
</description>
<tutorials >
</tutorials>
<methods >
<method name= "add_filter" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "filter" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2019-03-29 22:37:35 +00:00
Adds a comma-delimited file extension filter option to the [EditorFileDialog] with an optional semi-colon-delimited label.
2019-06-21 23:04:47 +00:00
For example, [code]"*.tscn, *.scn; Scenes"[/code] results in filter text "Scenes (*.tscn, *.scn)".
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "clear_filters" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-04 22:11:31 +00:00
Removes all filters except for "All Files (*)".
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "get_vbox" >
2021-07-30 13:28:05 +00:00
<return type= "VBoxContainer" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-04 22:11:31 +00:00
Returns the [code]VBoxContainer[/code] used to display the file system.
2021-10-10 20:10:07 +00:00
[b]Warning:[/b] This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their [member CanvasItem.visible] property.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "invalidate" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2017-09-12 20:42:36 +00:00
<description >
2019-03-29 22:37:35 +00:00
Notify the [EditorFileDialog] that its view of the data is no longer accurate. Updates the view contents on next view update.
2017-09-12 20:42:36 +00:00
</description>
</method>
</methods>
2017-12-04 22:11:31 +00:00
<members >
2019-06-29 10:38:01 +00:00
<member name= "access" type= "int" setter= "set_access" getter= "get_access" enum= "EditorFileDialog.Access" default= "0" >
2017-12-04 22:11:31 +00:00
The location from which the user may select a file, including [code]res://[/code], [code]user://[/code], and the local file system.
</member>
2019-06-29 10:38:01 +00:00
<member name= "current_dir" type= "String" setter= "set_current_dir" getter= "get_current_dir" default= ""res://"" >
2017-12-04 22:11:31 +00:00
The currently occupied directory.
</member>
2019-06-29 10:38:01 +00:00
<member name= "current_file" type= "String" setter= "set_current_file" getter= "get_current_file" default= """" >
2017-12-04 22:11:31 +00:00
The currently selected file.
</member>
2019-06-29 10:38:01 +00:00
<member name= "current_path" type= "String" setter= "set_current_path" getter= "get_current_path" default= ""res://"" >
2017-12-04 22:11:31 +00:00
The file system path in the address bar.
</member>
2019-09-24 11:34:03 +00:00
<member name= "dialog_hide_on_ok" type= "bool" setter= "set_hide_on_ok" getter= "get_hide_on_ok" override= "true" default= "false" />
2019-06-29 10:38:01 +00:00
<member name= "disable_overwrite_warning" type= "bool" setter= "set_disable_overwrite_warning" getter= "is_overwrite_warning_disabled" default= "false" >
2019-03-29 22:37:35 +00:00
If [code]true[/code], the [EditorFileDialog] will not warn the user before overwriting files.
2017-12-04 22:11:31 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "display_mode" type= "int" setter= "set_display_mode" getter= "get_display_mode" enum= "EditorFileDialog.DisplayMode" default= "0" >
2019-03-29 22:37:35 +00:00
The view format in which the [EditorFileDialog] displays resources to the user.
2017-12-07 07:23:08 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "mode" type= "int" setter= "set_mode" getter= "get_mode" enum= "EditorFileDialog.Mode" default= "4" >
2019-06-21 23:04:47 +00:00
The purpose of the [EditorFileDialog], which defines the allowed behaviors.
2017-12-07 07:23:08 +00:00
</member>
2019-09-24 11:34:03 +00:00
<member name= "resizable" type= "bool" setter= "set_resizable" getter= "get_resizable" override= "true" default= "true" />
2019-06-29 10:38:01 +00:00
<member name= "show_hidden_files" type= "bool" setter= "set_show_hidden_files" getter= "is_showing_hidden_files" default= "false" >
2019-03-29 22:37:35 +00:00
If [code]true[/code], hidden files and directories will be visible in the [EditorFileDialog].
2017-12-07 07:23:08 +00:00
</member>
2019-09-24 11:34:03 +00:00
<member name= "window_title" type= "String" setter= "set_title" getter= "get_title" override= "true" default= ""Save a File"" />
2017-12-04 22:11:31 +00:00
</members>
2017-09-12 20:42:36 +00:00
<signals >
<signal name= "dir_selected" >
2021-07-30 13:28:05 +00:00
<argument index= "0" name= "dir" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-04 22:11:31 +00:00
Emitted when a directory is selected.
2017-09-12 20:42:36 +00:00
</description>
</signal>
<signal name= "file_selected" >
2021-07-30 13:28:05 +00:00
<argument index= "0" name= "path" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-04 22:11:31 +00:00
Emitted when a file is selected.
2017-09-12 20:42:36 +00:00
</description>
</signal>
<signal name= "files_selected" >
2021-07-30 13:28:05 +00:00
<argument index= "0" name= "paths" type= "PoolStringArray" />
2017-09-12 20:42:36 +00:00
<description >
2017-12-04 22:11:31 +00:00
Emitted when multiple files are selected.
2017-09-12 20:42:36 +00:00
</description>
</signal>
</signals>
<constants >
2017-11-24 22:16:30 +00:00
<constant name= "MODE_OPEN_FILE" value= "0" enum= "Mode" >
2019-03-29 22:37:35 +00:00
The [EditorFileDialog] can select only one file. Accepting the window will open the file.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "MODE_OPEN_FILES" value= "1" enum= "Mode" >
2019-03-29 22:37:35 +00:00
The [EditorFileDialog] can select multiple files. Accepting the window will open all files.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "MODE_OPEN_DIR" value= "2" enum= "Mode" >
2019-03-29 22:37:35 +00:00
The [EditorFileDialog] can select only one directory. Accepting the window will open the directory.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "MODE_OPEN_ANY" value= "3" enum= "Mode" >
2019-03-29 22:37:35 +00:00
The [EditorFileDialog] can select a file or directory. Accepting the window will open it.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "MODE_SAVE_FILE" value= "4" enum= "Mode" >
2019-03-29 22:37:35 +00:00
The [EditorFileDialog] can select only one file. Accepting the window will save the file.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ACCESS_RESOURCES" value= "0" enum= "Access" >
2019-03-29 22:37:35 +00:00
The [EditorFileDialog] can only view [code]res://[/code] directory contents.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ACCESS_USERDATA" value= "1" enum= "Access" >
2019-03-29 22:37:35 +00:00
The [EditorFileDialog] can only view [code]user://[/code] directory contents.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ACCESS_FILESYSTEM" value= "2" enum= "Access" >
2019-03-29 22:37:35 +00:00
The [EditorFileDialog] can view the entire local file system.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "DISPLAY_THUMBNAILS" value= "0" enum= "DisplayMode" >
2019-03-29 22:37:35 +00:00
The [EditorFileDialog] displays resources as thumbnails.
2017-09-15 23:46:14 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "DISPLAY_LIST" value= "1" enum= "DisplayMode" >
2019-03-29 22:37:35 +00:00
The [EditorFileDialog] displays resources as a list of filenames.
2017-09-15 23:46:14 +00:00
</constant>
2017-09-12 20:42:36 +00:00
</constants>
</class>