diff options
author | Anutrix <numaanzaheerahmed@yahoo.com> | 2022-10-30 05:26:46 +0530 |
---|---|---|
committer | Anutrix <numaanzaheerahmed@yahoo.com> | 2022-10-30 05:26:46 +0530 |
commit | 7984598e3386fee7d40e3fc18904e73cdf0ff366 (patch) | |
tree | 57bb10b6426be89ef8aff3f6ebc7793bd2274cf4 /doc/classes/ConfirmationDialog.xml | |
parent | 11d74d606a442d27b060a1c3cb292a8da715ce68 (diff) | |
download | redot-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.xml | 4 |
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> |