Inheritance #

Table of contents

ConfirmationDialog #

is_instantiable, Node, core, not_builtin_classes

A dialog used for confirmation of actions.

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.

To get cancel action, you can use:

GDScript

get_cancel_button().pressed.connect(_on_canceled)

C#

GetCancelButton().Pressed += OnCanceled;

Members #

var cancel_button_text: String = "Cancel"#

The text displayed by the cancel button (see get_cancel_button).

var min_size: Vector2i = Vector2i(200, 70)#

var size: Vector2i = Vector2i(200, 100)#

var title: String = "Please Confirm..."#

Methods #

func get_cancel_button() -> Button#

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 CanvasItem.visible property.

Annotations #

Constants #

Constructors #

Enums #

Operators #

Signals #

Theme Items #

Tutorials #