Skip to content
0.2.0-dev Download ZIP
29 lines ·1.9 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="EditorFileDialog" inherits="FileDialog" api_type="editor" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A modified version of [FileDialog] used by the editor.
5 </brief_description>
6 <description>
7 [EditorFileDialog] is a [FileDialog] tweaked to work in the editor. It automatically handles favorite and recent directory lists, and synchronizes some properties with their corresponding editor settings.
8 [EditorFileDialog] will automatically show a native dialog based on the [member EditorSettings.interface/editor/appearance/use_native_file_dialogs] editor setting and ignores [member FileDialog.use_native_dialog].
9 [b]Note:[/b] [EditorFileDialog] is invisible by default. To make it visible, call one of the [code]popup_*[/code] methods from [Window] on the node, such as [method Window.popup_centered_clamped].
10 [b]Note:[/b] On Linux and macOS, sandboxed apps always use native dialogs to access the host file system.
11 </description>
12 <tutorials>
13 </tutorials>
14 <methods>
15 <method name="add_side_menu" deprecated="This feature is no longer supported.">
16 <return type="void" />
17 <param index="0" name="menu" type="Control" />
18 <param index="1" name="title" type="String" default="&quot;&quot;" />
19 <description>
20 This method is kept for compatibility and does nothing. As an alternative, you can display another dialog after showing the file dialog.
21 </description>
22 </method>
23 </methods>
24 <members>
25 <member name="disable_overwrite_warning" type="bool" setter="set_disable_overwrite_warning" getter="is_overwrite_warning_disabled" default="false" deprecated="Use [member FileDialog.overwrite_warning_enabled] instead.">
26 If [code]true[/code], the [EditorFileDialog] will not warn the user before overwriting files.
27 </member>
28 </members>
29</class>