ConfirmationDialog

Inherits: AcceptDialog < Window < Viewport < Node < Object

Inherited By: EditorCommandPalette, EditorFileDialog, FileDialog, ScriptCreateDialog

Dialog for confirmation of actions.

Description

Dialog for confirmation of actions. This dialog inherits from AcceptDialog, but has by default an OK and Cancel button (in host OS order).

To get cancel action, you can use:

get_cancel().connect("pressed", self, "cancelled")

Properties

Vector2i

min_size

Vector2i(200, 70) (parent override)

Vector2i

size

Vector2i(200, 100) (parent override)

String

title

"Please Confirm..." (parent override)

Method Descriptions

  • Button get_cancel_button ( )

Returns the cancel button.