2
0
Эх сурвалжийг харах

Fix image and code in signals introduction

skyace65 1 жил өмнө
parent
commit
e3eed1325d

BIN
getting_started/step_by_step/img/signals_17_custom_signal.png


BIN
getting_started/step_by_step/img/signals_17_custom_signal.webp


+ 2 - 2
getting_started/step_by_step/signals.rst

@@ -442,7 +442,7 @@ reaches 0.
 Your signals work the same way as built-in ones: they appear in the Node tab and
 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.
 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.
 To emit a signal in your scripts, call ``emit()`` on the signal.
 
 
@@ -472,7 +472,7 @@ names between parentheses:
 .. tabs::
 .. tabs::
  .. code-tab:: gdscript GDScript
  .. code-tab:: gdscript GDScript
 
 
-    extends Node
+    extends Node2D
 
 
     signal health_changed(old_value, new_value)
     signal health_changed(old_value, new_value)