ConfirmationDialog
继承: AcceptDialog
< Window
< Viewport
< Node
< Object
派生: 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(_on_canceled)
GetCancelButton().Pressed += OnCanceled;
属性
String | cancel_button_text |
Vector2i | min_size |
Vector2i | size |
String | title |
方法
属性说明
String
cancel_button_text = "Cancel"
The text displayed by the cancel button (see get_cancel_button
).
方法说明
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.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。