From 11a6ae667efd112c5e6c30a4b0deb0ef4a4a4fdb Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Tue, 15 Mar 2016 12:14:31 +0100 Subject: [PATCH] Fix inconsistencies with the signals reference --- reference/gdscript.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/gdscript.rst b/reference/gdscript.rst index 3efb29fc..9841996b 100644 --- a/reference/gdscript.rst +++ b/reference/gdscript.rst @@ -985,8 +985,8 @@ declared and connect it to the method of another instance: print("Got callback with args! a: ",a," and b: ",b) func _at_some_func(): - instance.connect("your_signal_name",self,"callback_no_args") - instance.connect("your_signal_name_with_args",self,"callback_args") + instance.connect("your_signal_name",self,"_callback_no_args") + instance.connect("your_signal_name_with_args",self,"_callback_args") It is also possible to bind arguments to a signal that lacks them with your custom values: @@ -994,7 +994,7 @@ your custom values: :: func _at_some_func(): - instance.connect("your_signal_name_with_args",self,"callback_no_args",[22,"hello"]) + instance.connect("your_signal_name",self,"_callback_args",[22,"hello"]) This is very useful when a signal from many objects is connected to a single callback and the sender must be identified: