diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-02-22 11:55:08 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-02-22 11:55:08 +0200 |
commit | 4593ad23fdcc6416ceaf13b5baee0ad01f27e62b (patch) | |
tree | 5a5e0ab678d84ff2c0fa1de8b022b21897e12fd9 /doc/classes/EditorFileDialog.xml | |
parent | ba5a70ccc967deb52810f5279cfc071f1d849301 (diff) | |
download | redot-engine-4593ad23fdcc6416ceaf13b5baee0ad01f27e62b.tar.gz |
Add some missing EditorFileDialog methods and properties.
Diffstat (limited to 'doc/classes/EditorFileDialog.xml')
-rw-r--r-- | doc/classes/EditorFileDialog.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/classes/EditorFileDialog.xml b/doc/classes/EditorFileDialog.xml index 29a8f470a1..7f8808acc7 100644 --- a/doc/classes/EditorFileDialog.xml +++ b/doc/classes/EditorFileDialog.xml @@ -25,6 +25,13 @@ Removes all filters except for "All Files (*)". </description> </method> + <method name="get_line_edit"> + <return type="LineEdit" /> + <description> + Returns the LineEdit for the selected file. + [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. + </description> + </method> <method name="get_vbox"> <return type="VBoxContainer" /> <description> @@ -62,6 +69,9 @@ <member name="file_mode" type="int" setter="set_file_mode" getter="get_file_mode" enum="EditorFileDialog.FileMode" default="4"> The dialog's open or save mode, which affects the selection behavior. See [enum FileMode] </member> + <member name="filters" type="PackedStringArray" setter="set_filters" getter="get_filters" default="PackedStringArray()"> + The available file type filters. For example, this shows only [code].png[/code] and [code].gd[/code] files: [code]set_filters(PackedStringArray(["*.png ; PNG Images","*.gd ; GDScript Files"]))[/code]. Multiple file types can also be specified in a single filter. [code]"*.png, *.jpg, *.jpeg ; Supported Images"[/code] will show both PNG and JPEG files when selected. + </member> <member name="show_hidden_files" type="bool" setter="set_show_hidden_files" getter="is_showing_hidden_files" default="false"> If [code]true[/code], hidden files and directories will be visible in the [EditorFileDialog]. This property is synchronized with [member EditorSettings.filesystem/file_dialog/show_hidden_files]. </member> |