ConfirmationDialog
繼承: AcceptDialog < Window < Viewport < Node < Object
被繼承: EditorCommandPalette, EditorFileDialog, FileDialog, ScriptCreateDialog
用於確認動作的對話方塊。
說明
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;
屬性
|
||
min_size |
|
|
size |
|
|
title |
|
方法
屬性說明
String cancel_button_text = "Cancel" 🔗
取消按鈕顯示的文字(見 get_cancel_button())。
方法說明
返回取消按鈕。
警告:這是一個必需的內部節點,移除並釋放它可能會導致當機。如果你希望隱藏它或其任何子項,請使用其 CanvasItem.visible 屬性。