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édenteProchaine révision | Révision précédente | ||
| en:yaml:hud [2026/08/31 20:53] – Wiki : fins de pages homogènes, liens Discord retirés cyrilfiesta | en:yaml:hud [2026/11/04 22:41] (Version actuelle) – Documentation 4.17 : objets, evenements et mise en page verifies cyrilfiesta | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| **Language / Langue :** [[fr: | **Language / Langue :** [[fr: | ||
| - | ====== HUD - Persistent | + | ====== HUD - Panels (YAML) ====== |
| HUD panels ('' | HUD panels ('' | ||
| Ligne 34: | Ligne 34: | ||
| ===== Size ===== | ===== Size ===== | ||
| - | '' | + | ^ Key ^ Effect ^ |
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | On mobile, side panels become top/bottom panels, so their size controls the height. | ||
| ===== Style ===== | ===== Style ===== | ||
| Ligne 50: | Ligne 57: | ||
| <code yaml> | <code yaml> | ||
| + | vars: {hp: 10, hpmax: 10} | ||
| hud: | hud: | ||
| position: top-right | position: top-right | ||
| Ligne 92: | Ligne 100: | ||
| <code yaml> | <code yaml> | ||
| + | # On a room, choice or event: | ||
| clear-hud: | clear-hud: | ||
| - all | - all | ||
| + | </ | ||
| + | |||
| + | To clear only one corner: | ||
| + | |||
| + | <code yaml> | ||
| + | clear-hud: | ||
| - top-right | - top-right | ||
| </ | </ | ||
| Ligne 109: | Ligne 124: | ||
| 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: | ||
| + | |||
| + | ===== Percentage and alignment in a panel ===== | ||
| + | |||
| + | Alongside '' | ||
| + | |||
| + | <code yaml> | ||
| + | title: 'Wiki 4.17: HUD' | ||
| + | vars: | ||
| + | pv: 10 | ||
| + | rooms: | ||
| + | - id: atelier | ||
| + | text: A chest. | ||
| + | hud: | ||
| + | position: top | ||
| + | text: | | ||
| + | [[align: | ||
| + | [[split: | ||
| + | HP: v_pv_v | ||
| + | choices: | ||
| + | - command: rester | ||
| + | button: Stay | ||
| + | to: atelier | ||
| + | </ | ||
en/yaml/hud.1788202398.txt.gz · Dernière modification : de cyrilfiesta
