mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
classref: Sync with current master branch (029aade)
This commit is contained in:
@@ -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`).
|
||||
|
||||
Reference in New Issue
Block a user