summaryrefslogtreecommitdiffstats
path: root/doc/classes/ConfirmationDialog.xml
diff options
context:
space:
mode:
authorHaSa1002 <johawitt@outlook.de>2020-09-12 17:06:13 +0200
committerHaSa1002 <johawitt@outlook.de>2020-09-26 11:48:37 +0200
commitae873ab82233d2f87b7be6ddecce3d53518296f4 (patch)
treea67fa37ca9dd4471482f80fd6be2c96e8ea8a7ee /doc/classes/ConfirmationDialog.xml
parentfea72f2a7102dc0eec083bf5397330cb7a05de94 (diff)
downloadredot-engine-ae873ab82233d2f87b7be6ddecce3d53518296f4.tar.gz
Translate GDScript Code Examples to C# (C)
Translates Code Examples in classes beginning with `C`. Includes: * Callable * CanvasItem * CharFXTransform * Color * ColorRect * ConfigFile * ConfirmationDialog * Control * Crypto
Diffstat (limited to 'doc/classes/ConfirmationDialog.xml')
-rw-r--r--doc/classes/ConfirmationDialog.xml9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/classes/ConfirmationDialog.xml b/doc/classes/ConfirmationDialog.xml
index 6d5871508b..a850afdd9f 100644
--- a/doc/classes/ConfirmationDialog.xml
+++ b/doc/classes/ConfirmationDialog.xml
@@ -6,9 +6,14 @@
<description>
Dialog for confirmation of actions. This dialog inherits from [AcceptDialog], but has by default an OK and Cancel button (in host OS order).
To get cancel action, you can use:
- [codeblock]
+ [codeblocks]
+ [gdscript]
get_cancel().connect("pressed", self, "cancelled")
- [/codeblock].
+ [/gdscript]
+ [csharp]
+ GetCancel().Connect("pressed", this, nameof(Cancelled));
+ [/csharp]
+ [/codeblocks]
</description>
<tutorials>
</tutorials>