en:yaml:hud
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:hud [2026/10/19 01:22] – Wiki 4.17 : corrections apres audit des exemples et traductions cyrilfiesta | en:yaml:hud [2026/10/20 22:10] (Version actuelle) – Mod?les sur_place, port?e des encadr?s et objets 4.17 cyrilfiesta | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| **Language / Langue :** [[fr: | **Language / Langue :** [[fr: | ||
| - | ====== HUD - Persistent | + | ====== HUD - Panels (YAML) ====== |
| HUD panels ('' | HUD panels ('' | ||
| Ligne 123: | Ligne 123: | ||
| A hosted video works here too. See [[en: | A hosted video works here too. See [[en: | ||
| + | |||
| + | ===== Room scope (4.17) ===== | ||
| + | |||
| + | **Panels remain persistent by default**, until explicitly replaced or cleared. Add '' | ||
| + | |||
| + | <code yaml> | ||
| + | hud: | ||
| + | position: top-left | ||
| + | scope: room | ||
| + | text: The map of this room. | ||
| + | </ | ||
| + | |||
| + | This works on rooms, actions, choices and events, including global interactions: | ||
| + | |||
| + | A panel declared on the room is placed again on each entry. An interaction-created panel waits for that interaction to run again. Replaced panels are not automatically restored. Saves preserve scope and room ownership; older panels without scope retain their persistent behaviour. | ||
| + | |||
| + | In the editor, tick **Clear when leaving the room** on the panel. The box is unchecked by default. Scope is optional in [[en: | ||
en/yaml/hud.txt · Dernière modification : de cyrilfiesta
