classref: Sync with current master branch (029aade)

This commit is contained in:
Godot Organization
2024-04-13 03:17:16 +00:00
parent 774c3cd245
commit 4779a1dbdf
208 changed files with 1532 additions and 1218 deletions
+2 -2
View File
@@ -989,7 +989,7 @@ While all options have the same outcome (``button``'s :ref:`BaseButton.button_do
The syntax to bind parameters is through :ref:`Callable.bind<class_Callable_method_bind>`, which returns a copy of the :ref:`Callable<class_Callable>` with its parameters bound.
When calling :ref:`emit_signal<class_Object_method_emit_signal>`, the signal parameters can be also passed. The examples below show the relationship between these signal parameters and bound parameters.
When calling :ref:`emit_signal<class_Object_method_emit_signal>` or :ref:`Signal.emit<class_Signal_method_emit>`, the signal parameters can be also passed. The examples below show the relationship between these signal parameters and bound parameters.
.. tabs::
@@ -1003,7 +1003,7 @@ When calling :ref:`emit_signal<class_Object_method_emit_signal>`, the signal par
player.hit.connect(_on_player_hit.bind("sword", 100))
# Parameters added when emitting the signal are passed first.
player.emit_signal("hit", "Dark lord", 5)
player.hit.emit("Dark lord", 5)
# We pass two arguments when emitting (`hit_by`, `level`),
# and bind two more arguments when connecting (`weapon_type`, `damage`).