en:yaml:drag-drop
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| en:yaml:drag-drop [2026/05/07 03:16] – Documentation interactions YAML cyrilfiesta | en:yaml:drag-drop [2026/05/07 12:31] (Version actuelle) – Add once: room (per-visit reset) 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 And Targets ===== | + | |
| - | + | ||
| - | <code yaml> | + | |
| - | text: "The {{door: | + | |
| - | </ | + | |
| - | + | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | + | ||
| - | 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 Roles ===== | + | |
| - | + | ||
| - | 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. | + | |
| - | + | ||
| - | **Join us on [[https:// | + | |
en/yaml/drag-drop.1778116560.txt.gz · Dernière modification : de cyrilfiesta
