Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
ConfirmationDialog¶
Inherits: AcceptDialog < Window < Viewport < Node < Object
Inherited By: EditorCommandPalette, EditorFileDialog, FileDialog, ScriptCreateDialog
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:
get_cancel_button().pressed.connect(self.canceled)
GetCancelButton().Pressed += Canceled;
属性¶
|
||
min_size |
|
|
size |
|
|
title |
|
Methods¶
Property Descriptions¶
String cancel_button_text = "Cancel"
The text displayed by the cancel button (see get_cancel_button).
Method Descriptions¶
Button 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 CanvasItem.visible property.