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¶
继承: AcceptDialog < Window < Viewport < Node < Object
派生: EditorCommandPalette, EditorFileDialog, FileDialog, ScriptCreateDialog
用于确认动作的对话框。
描述¶
用于确认动作的对话框。这个窗口类似于 AcceptDialog,但按下“取消”按钮和按下“确定”按钮的效果是不同的。这两个按钮的顺序取决于主机操作系统。
要获得取消操作,你可以使用:
get_cancel_button().pressed.connect(self.canceled)
GetCancelButton().Pressed += Canceled;
属性¶
|
||
min_size |
|
|
size |
|
|
title |
|
方法¶
属性说明¶
String cancel_button_text = "Cancel"
取消按钮显示的文本(见 get_cancel_button)。
方法说明¶
Button get_cancel_button ( )
返回取消按钮。
警告:这是一个必需的内部节点,移除并释放它可能会导致崩溃。如果你希望隐藏它或其任何子项,请使用其 CanvasItem.visible 属性。