Table of Contents

Class ConfirmationDialog

A dialog used for confirmation of actions.

Inheritance
ConfirmationDialog
Derived

Remarks

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:

get_cancel_button().pressed.connect(_on_canceled)

Properties

cancel_button_text

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

var cancel_button_text : String = "Cancel"

Property Value

String

Remarks

  • void set_cancel_button_text(String value)
  • String get_cancel_button_text

Methods

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

Button get_cancel_button