Merge pull request #8848 from skyace65/SignalsIntro

Fix image and code in signals introduction

(cherry picked from commit 3b52b1e4a3)
This commit is contained in:
Max Hilbrunner
2024-01-28 10:51:06 +01:00
committed by Max Hilbrunner
parent 1dd3387a41
commit 5713ec2c80
3 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

View File

@@ -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)