Outils pour utilisateurs

Outils du site


en:yaml:raccourcis

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
en:yaml:raccourcis [2026/10/18 22:42] – Documentation 4.17 : listes, boucles, raccourcis et editeur cyrilfiestaen:yaml:raccourcis [2026/10/19 01:25] (Version actuelle) – Wiki 4.17 : corrections apres audit des exemples et traductions cyrilfiesta
Ligne 8: Ligne 8:
  
 <code yaml> <code yaml>
 +vars:
 +  ammo: 3
 actions: actions:
   - verb: fire   - verb: fire
     target: all     target: all
     button: Fire     button: Fire
 +    if: v_ammo_v > 0
     do: ammo - 1     do: ammo - 1
     shortcut:     shortcut:
Ligne 20: Ligne 23:
 </code> </code>
  
-Declare ''ammo'' in ''vars:'' for this example. ''shortcut: [Space, f]'' is enough for keyboard-only bindings. ''show-shortcut'' adds a hint to the button; it is hidden by default. An event with a shortcut needs an explicit ''id''. Its conditions, state and usage limits still apply.+''shortcut: [Space, f]'' is enough for keyboard-only bindings. ''show-shortcut'' adds a hint to the button; it is hidden by default. An event with a shortcut needs an explicit ''id''. An event bound to a shortcut is manual: it waits for input instead of firing automatically. Its conditions, state and usage limits still apply.
  
 ===== Commands and referenced events ===== ===== Commands and referenced events =====
Ligne 34: Ligne 37:
       - keys: [Ctrl+Enter]       - keys: [Ctrl+Enter]
         event: question_hint         event: question_hint
 +    events:
 +      - id: question_hint
 +        text: The code is 42.
 </code> </code>
  
Ligne 56: Ligne 62:
  
   * One press triggers one action. Holding a key or direction does not repeat turns; return to neutral to act again.   * One press triggers one action. Holding a key or direction does not repeat turns; return to neutral to act again.
-  * Shortcuts wait while typing, a dialogue, menu or action is active. Ignored presses are not queued.+  * Shortcuts are ignored while typing or while a dialogue, menu or action is active. Ignored presses are not queued.
   * Local bindings take priority over global ones. Within one scope: actions, events, choices, then list commands, in declaration order.   * Local bindings take priority over global ones. Within one scope: actions, events, choices, then list commands, in declaration order.
   * An unavailable binding reserves its key. Hidden or greyed-out choices do not become accessible through shortcuts.   * An unavailable binding reserves its key. Hidden or greyed-out choices do not become accessible through shortcuts.
   * Explicit shortcuts take priority over native deck directions or keyboard triggers. The linter reports collisions.   * Explicit shortcuts take priority over native deck directions or keyboard triggers. The linter reports collisions.
  
-Gamepads need the browser's Gamepad API, generally over HTTPS or localhost. A first press may be needed for detection. Physical device checks remain pending for 4.17.+Gamepads need the browser's Gamepad API, generally over HTTPS or localhost. A first press may be needed for detection.
  
 ===== In the editor ===== ===== In the editor =====
en/yaml/raccourcis.1792356137.txt.gz · Dernière modification : de cyrilfiesta