summaryrefslogtreecommitdiffstats
path: root/doc/classes/ConfirmationDialog.xml
diff options
context:
space:
mode:
authorAnutrix <numaanzaheerahmed@yahoo.com>2022-10-30 05:26:46 +0530
committerAnutrix <numaanzaheerahmed@yahoo.com>2022-10-30 05:26:46 +0530
commit7984598e3386fee7d40e3fc18904e73cdf0ff366 (patch)
tree57bb10b6426be89ef8aff3f6ebc7793bd2274cf4 /doc/classes/ConfirmationDialog.xml
parent11d74d606a442d27b060a1c3cb292a8da715ce68 (diff)
downloadredot-engine-7984598e3386fee7d40e3fc18904e73cdf0ff366.tar.gz
Fixed signal connection examples to use new callable syntax in the docs
Diffstat (limited to 'doc/classes/ConfirmationDialog.xml')
-rw-r--r--doc/classes/ConfirmationDialog.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/ConfirmationDialog.xml b/doc/classes/ConfirmationDialog.xml
index d4c503857d..48b4df9126 100644
--- a/doc/classes/ConfirmationDialog.xml
+++ b/doc/classes/ConfirmationDialog.xml
@@ -8,10 +8,10 @@
To get cancel action, you can use:
[codeblocks]
[gdscript]
- get_cancel().connect("pressed", self, "cancelled")
+ get_cancel_button().pressed.connect(self.cancelled)
[/gdscript]
[csharp]
- GetCancel().Connect("pressed", this, nameof(Cancelled));
+ GetCancelButton().Pressed += Cancelled;
[/csharp]
[/codeblocks]
</description>