summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorkleonc <9283098+kleonc@users.noreply.github.com>2021-07-06 17:51:56 +0200
committerkleonc <9283098+kleonc@users.noreply.github.com>2021-07-06 18:14:20 +0200
commit714e6a595d69802baa796190d0e682d0679a0f43 (patch)
tree32c28ac6f9ec57eedaeea7319d903c763a840263 /doc/classes
parentf56ae4045f73d7a532f0694860053f6356e9d29c (diff)
Add AcceptDialog::remove_button method
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/AcceptDialog.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/classes/AcceptDialog.xml b/doc/classes/AcceptDialog.xml
index f644606040..fd1e2ba104 100644
--- a/doc/classes/AcceptDialog.xml
+++ b/doc/classes/AcceptDialog.xml
@@ -21,6 +21,7 @@
<description>
Adds a button with label [code]text[/code] and a custom [code]action[/code] to the dialog and returns the created button. [code]action[/code] will be passed to the [signal custom_action] signal when pressed.
If [code]true[/code], [code]right[/code] will place the button to the right of any sibling buttons.
+ You can use [method remove_button] method to remove a button created with this method from the dialog.
</description>
</method>
<method name="add_cancel_button">
@@ -30,6 +31,7 @@
</argument>
<description>
Adds a button with label [code]name[/code] and a cancel action to the dialog and returns the created button.
+ You can use [method remove_button] method to remove a button created with this method from the dialog.
</description>
</method>
<method name="get_label">
@@ -55,6 +57,15 @@
Registers a [LineEdit] in the dialog. When the enter key is pressed, the dialog will be accepted.
</description>
</method>
+ <method name="remove_button">
+ <return type="void">
+ </return>
+ <argument index="0" name="button" type="Control">
+ </argument>
+ <description>
+ Removes the [code]button[/code] from the dialog. Does NOT free the [code]button[/code]. The [code]button[/code] must be a [Button] added with [method add_button] or [method add_cancel_button] method. After removal, pressing the [code]button[/code] will no longer emit this dialog's [signal custom_action] or [signal cancelled] signals.
+ </description>
+ </method>
</methods>
<members>
<member name="dialog_autowrap" type="bool" setter="set_autowrap" getter="has_autowrap" default="false">