mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
update images and outdated properties
This commit is contained in:
@@ -53,13 +53,15 @@ tab. In the same way you created the movement input actions, create a new
|
||||
input action called ``start_game`` and add a key mapping for the :kbd:`Enter`
|
||||
key.
|
||||
|
||||
In the ``HUD`` scene, select the ``StartButton`` and find its *Shortcut*
|
||||
property in the Inspector. Select "New Shortcut" and click on the "Shortcut"
|
||||
item. A second *Shortcut* property will appear. Select "New InputEventAction"
|
||||
and click the new "InputEventAction". Finally, in the *Action* property, type
|
||||
the name ``start_game``.
|
||||
In the ``HUD`` scene, select the ``StartButton`` and find its **Shortcut**
|
||||
property in the Inspector. Create a new :ref:`Shortcut <class_Shortcut>` resource,
|
||||
open the **Events** array and add a new array element to it.
|
||||
|
||||
.. image:: img/start_button_shortcut.png
|
||||
.. image:: img/start_button_shortcut.webp
|
||||
|
||||
Create a new :ref:`InputEventAction <class_InputEventAction>` and name it ``start_game``.
|
||||
|
||||
.. image:: img/start_button_shortcut2.webp
|
||||
|
||||
Now when the start button appears, you can either click it or press :kbd:`Enter`
|
||||
to start the game.
|
||||
|
||||
Reference in New Issue
Block a user