:github_url: hide .. _class_EditorFileDialog: EditorFileDialog ================ **Hereda:** :ref:`FileDialog` **<** :ref:`ConfirmationDialog` **<** :ref:`AcceptDialog` **<** :ref:`Window` **<** :ref:`Viewport` **<** :ref:`Node` **<** :ref:`Object` Una versión modificada de :ref:`FileDialog` utilizada por el editor. .. rst-class:: classref-introduction-group Descripción ---------------------- **EditorFileDialog** is a :ref:`FileDialog` tweaked to work in the editor. It automatically handles favorite and recent directory lists, and synchronizes some properties with their corresponding editor settings. \ **EditorFileDialog** will automatically show a native dialog based on the :ref:`EditorSettings.interface/editor/use_native_file_dialogs` editor setting and ignores :ref:`FileDialog.use_native_dialog`. \ **Note:** **EditorFileDialog** is invisible by default. To make it visible, call one of the ``popup_*`` methods from :ref:`Window` on the node, such as :ref:`Window.popup_centered_clamped()`. .. rst-class:: classref-reftable-group Propiedades ---------------------- .. table:: :widths: auto +-------------------------+---------------------------------------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`disable_overwrite_warning` | ``false`` | +-------------------------+---------------------------------------------------------------------------------------------+-----------+ .. rst-class:: classref-reftable-group Métodos -------------- .. table:: :widths: auto +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`add_side_menu`\ (\ menu\: :ref:`Control`, title\: :ref:`String` = ""\ ) | +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Descripciones de Propiedades -------------------------------------------------------- .. _class_EditorFileDialog_property_disable_overwrite_warning: .. rst-class:: classref-property :ref:`bool` **disable_overwrite_warning** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_disable_overwrite_warning**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_overwrite_warning_disabled**\ (\ ) **Obsoleto:** Use :ref:`FileDialog.overwrite_warning_enabled` instead. Si es ``true``, el **EditorFileDialog** no avisará al usuario antes de sobrescribir los archivos. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Descripciones de Métodos ------------------------------------------------ .. _class_EditorFileDialog_method_add_side_menu: .. rst-class:: classref-method |void| **add_side_menu**\ (\ menu\: :ref:`Control`, title\: :ref:`String` = ""\ ) :ref:`🔗` **Obsoleto:** This feature is no longer supported. This method is kept for compatibility and does nothing. As an alternative, you can display another dialog after showing the file dialog. .. |virtual| replace:: :abbr:`virtual (Normalmente, este método debería ser sobreescrito por el usuario para que tenga algún efecto.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (Este método no tiene efectos secundarios. No modifica ninguna de las variables miembro de la instancia.)` .. |vararg| replace:: :abbr:`vararg (Este método permite agregar cualquier número de argumentos después de los descritos aquí.)` .. |constructor| replace:: :abbr:`constructor (Este método se utiliza para construir un tipo.)` .. |static| replace:: :abbr:`static (Este método no necesita una instancia para ser llamado, por lo que puede llamarse directamente utilizando el nombre de la clase.)` .. |operator| replace:: :abbr:`operator (Este método describe un operador válido para usar con este tipo como operando izquierdo.)` .. |bitfield| replace:: :abbr:`BitField (Este valor es un entero compuesto como una máscara de bits de las siguientes banderas.)` .. |void| replace:: :abbr:`void (Sin valor de retorno.)`