mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
classref: Sync with current upstream master branch
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
||||
.. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
|
||||
.. DO NOT EDIT THIS FILE, but the AcceptDialog.xml source instead.
|
||||
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
||||
|
||||
.. _class_AcceptDialog:
|
||||
|
||||
@@ -44,10 +45,10 @@ Signals
|
||||
-------
|
||||
|
||||
- **confirmed** **(** **)**
|
||||
Emitted when accepted.
|
||||
Emitted when the dialog is accepted.
|
||||
|
||||
- **custom_action** **(** :ref:`String<class_string>` action **)**
|
||||
Emitted with a custom button is added.
|
||||
Emitted when a custom button is pressed. See :ref:`add_button<class_AcceptDialog_add_button>`.
|
||||
|
||||
|
||||
Member Variables
|
||||
@@ -68,15 +69,15 @@ Member Function Description
|
||||
|
||||
- :ref:`Button<class_button>` **add_button** **(** :ref:`String<class_string>` text, :ref:`bool<class_bool>` right=false, :ref:`String<class_string>` action="" **)**
|
||||
|
||||
Add custom button to the dialog and return the created button.
|
||||
Adds a button with label *text* and a custom *action* to the dialog and returns the created button. *action* will be passed to the custom_action signal when pressed.
|
||||
|
||||
The button titled with *text* and the *action* will be passed to custom_action signal when it is pressed.
|
||||
If ``true``, *right* will place the button to the right of any sibling buttons. Default value: ``false``.
|
||||
|
||||
.. _class_AcceptDialog_add_cancel:
|
||||
|
||||
- :ref:`Button<class_button>` **add_cancel** **(** :ref:`String<class_string>` name **)**
|
||||
|
||||
Add custom cancel button to the dialog and return the created button.
|
||||
Adds a button with label *name* and a cancel action to the dialog and returns the created button.
|
||||
|
||||
.. _class_AcceptDialog_get_hide_on_ok:
|
||||
|
||||
@@ -106,7 +107,7 @@ Return the built-in label text.
|
||||
|
||||
- void **register_text_enter** **(** :ref:`Node<class_node>` line_edit **)**
|
||||
|
||||
Register a :ref:`LineEdit<class_lineedit>` in the dialog. When the enter key is pressed, the dialog will be accepted.
|
||||
Registers a :ref:`LineEdit<class_lineedit>` in the dialog. When the enter key is pressed, the dialog will be accepted.
|
||||
|
||||
.. _class_AcceptDialog_set_hide_on_ok:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user