mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-04 10:09:56 +03:00
Currently including `zh_CN` and `es` which both have very high completion ratios. Others will be added once they reach a significant percentage too. These RST files will be used by godot-docs in place of its `classes` folder after we sync with https://github.com/godotengine/godot-docs/pull/5458. The update workflow is manual for now (example for `zh_CN`): - Build `godotengine/godot` in the branch we currently track (now `3.x`) - Run `godot --doctool -l zh_CN` - Run `cd doc && make rst LANGARG=zh_CN` - Copy `doc/_build/rst/*` to `classes/zh_CN/` here - Make sure to have `classes/zh_CN/index.rst` copied from `docs/classes`
59 lines
3.0 KiB
ReStructuredText
59 lines
3.0 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the ConfirmationDialog.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_ConfirmationDialog:
|
|
|
|
ConfirmationDialog
|
|
==================
|
|
|
|
**Inherits:** :ref:`AcceptDialog<class_AcceptDialog>` **<** :ref:`WindowDialog<class_WindowDialog>` **<** :ref:`Popup<class_Popup>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
|
|
|
**Inherited By:** :ref:`EditorFileDialog<class_EditorFileDialog>`, :ref:`FileDialog<class_FileDialog>`, :ref:`ScriptCreateDialog<class_ScriptCreateDialog>`
|
|
|
|
Diálogo para la confirmación de las acciones.
|
|
|
|
Descripción
|
|
----------------------
|
|
|
|
Diálogo para la confirmación de las acciones. Este diálogo hereda de :ref:`AcceptDialog<class_AcceptDialog>`, pero tiene por defecto un botón de OK y Cancelar (en el orden del sistema operativo).
|
|
|
|
Para obtener la acción de cancelación, puedes usar:
|
|
|
|
::
|
|
|
|
get_cancel().connect("pressed", self, "cancelled").
|
|
|
|
Propiedades
|
|
----------------------
|
|
|
|
+-------------------------------+---------------+---------------------------------------------------------------------------------------------------+
|
|
| :ref:`Vector2<class_Vector2>` | rect_min_size | ``Vector2( 200, 70 )`` (overrides :ref:`Control<class_Control_property_rect_min_size>`) |
|
|
+-------------------------------+---------------+---------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | window_title | ``"Please Confirm..."`` (overrides :ref:`WindowDialog<class_WindowDialog_property_window_title>`) |
|
|
+-------------------------------+---------------+---------------------------------------------------------------------------------------------------+
|
|
|
|
Métodos
|
|
--------------
|
|
|
|
+-----------------------------+---------------------------------------------------------------------------+
|
|
| :ref:`Button<class_Button>` | :ref:`get_cancel<class_ConfirmationDialog_method_get_cancel>` **(** **)** |
|
|
+-----------------------------+---------------------------------------------------------------------------+
|
|
|
|
Descripciones de Métodos
|
|
------------------------------------------------
|
|
|
|
.. _class_ConfirmationDialog_method_get_cancel:
|
|
|
|
- :ref:`Button<class_Button>` **get_cancel** **(** **)**
|
|
|
|
Returns the cancel button.
|
|
|
|
\ **Warning:** 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 :ref:`CanvasItem.visible<class_CanvasItem_property_visible>` property.
|
|
|
|
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
|
|
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
|
|
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
|