mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Merge pull request #8848 from skyace65/SignalsIntro
Fix image and code in signals introduction
(cherry picked from commit 3b52b1e4a3)
This commit is contained in:
committed by
Max Hilbrunner
parent
1dd3387a41
commit
5713ec2c80
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB |
BIN
getting_started/step_by_step/img/signals_17_custom_signal.webp
Normal file
BIN
getting_started/step_by_step/img/signals_17_custom_signal.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.9 KiB |
@@ -442,7 +442,7 @@ reaches 0.
|
||||
Your signals work the same way as built-in ones: they appear in the Node tab and
|
||||
you can connect to them like any other.
|
||||
|
||||
.. image:: img/signals_17_custom_signal.png
|
||||
.. image:: img/signals_17_custom_signal.webp
|
||||
|
||||
To emit a signal in your scripts, call ``emit()`` on the signal.
|
||||
|
||||
@@ -472,7 +472,7 @@ names between parentheses:
|
||||
.. tabs::
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
extends Node
|
||||
extends Node2D
|
||||
|
||||
signal health_changed(old_value, new_value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user