en:yaml:drag-drop
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| en:yaml:drag-drop [2026/05/07 12:31] – Add once: room (per-visit reset) cyrilfiesta | en:yaml:drag-drop [2026/07/06 00:35] (Version actuelle) – maj 4.13 : modes d'interface + corrections cyrilfiesta | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | **Language / Langue :** [[fr: | + | **Language / Langue :** [[fr: |
| + | |||
| + | ====== Drag & Drop ====== | ||
| + | |||
| + | Drag & drop lets the player take an element from the text and drop it onto a target. It is available on web, desktop and interactive HTML exports. Other adapters display the content without drag& | ||
| + | |||
| + | ===== Sources | ||
| + | |||
| + | <code yaml> | ||
| + | text: "The {{door: | ||
| + | </ | ||
| + | |||
| + | * %%{{label:> | ||
| + | * %%{{label: | ||
| + | * %%{{label:> | ||
| + | * %%{{label:> | ||
| + | |||
| + | The syntax also works with pictures: | ||
| + | |||
| + | <code yaml> | ||
| + | text: "Drop {{[[/ | ||
| + | </ | ||
| + | |||
| + | ===== Drop event ===== | ||
| + | |||
| + | An event becomes a drag& | ||
| + | |||
| + | <code yaml> | ||
| + | text: "The {{door: | ||
| + | interaction-ko: | ||
| + | events: | ||
| + | - id: key_on_door | ||
| + | | ||
| + | | ||
| + | do: " | ||
| + | text: "The door opens." | ||
| + | | ||
| + | once: true | ||
| + | </ | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ===== Conditions ===== | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ===== Showing | ||
| + | |||
| + | By default, sources and targets use a neutral style. To show roles visually, enable '' | ||
| + | |||
| + | <code yaml> | ||
| + | show-type: | ||
| + | |||
| + | rooms: | ||
| + | - id: workshop | ||
| + | | ||
| + | text: " | ||
| + | </ | ||
| + | |||
| + | When a value is defined in a room, it overrides the global option for that room. | ||
| + | |||
| + | While dragging (or after a first tap on mobile), the interactive elements of the room are **highlighted** to show the possible targets. | ||
| + | |||
| + | **Join us on [[https:// | ||
en/yaml/drag-drop.1778149897.txt.gz · Dernière modification : de cyrilfiesta
