Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

ConfirmationDialog

Inherits: AcceptDialog < Window < Viewport < Node < Object

Inherited By: EditorCommandPalette, EditorFileDialog, FileDialog, ScriptCreateDialog

A dialog used for confirmation of actions.

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.

To get cancel action, you can use:

get_cancel_button().pressed.connect(self.canceled)

Properties

String

cancel_button_text

"Cancel"

Vector2i

min_size

Vector2i(200, 70) (overrides Window)

Vector2i

size

Vector2i(200, 100) (overrides Window)

String

title

"Please Confirm..." (overrides Window)

Methods

Button

get_cancel_button ( )


Property Descriptions

String cancel_button_text = "Cancel"