Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Document that dialog buttons ignore `custom_minimum_size`

Mateus Elias de Andrade Pereira114dcee42b41
diff --git a/doc/classes/AcceptDialog.xml b/doc/classes/AcceptDialog.xml
index 9468bab64bf..e2d3ab4c9d6 100644
--- a/doc/classes/AcceptDialog.xml
+++ b/doc/classes/AcceptDialog.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
The default use of [AcceptDialog] is to allow it to only be accepted or closed, with the same result. However, the [signal confirmed] and [signal canceled] signals allow to make the two actions different, and the [method add_button] method allows to add custom buttons and actions.
+ [b]Note:[/b] The dialog controls the size of its buttons, any manual size changes will be overridden. Use the [theme_item buttons_min_width] and [theme_item buttons_min_height] theme constants instead.
[b]Note:[/b] [AcceptDialog] 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].
</description>
<tutorials>
diff --git a/doc/classes/ConfirmationDialog.xml b/doc/classes/ConfirmationDialog.xml
index 51ce46d1977..f1c8e2d9806 100644
--- a/doc/classes/ConfirmationDialog.xml
+++ b/doc/classes/ConfirmationDialog.xml
@@ -5,6 +5,7 @@
</brief_description>
<description>
A dialog used for confirmation of actions. This window is similar to [AcceptDialog], but pressing its Cancel button can have a different outcome from pressing the OK button. The order of the two buttons varies depending on the host OS.
+ [b]Note:[/b] The dialog controls the size of its buttons, any manual size changes will be overridden. Use the [theme_item AcceptDialog.buttons_min_width] and [theme_item AcceptDialog.buttons_min_height] theme constants instead.
To get cancel action, you can use:
[codeblocks]
[gdscript]