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/07/06 00:35] – maj 4.13 : modes d'interface + corrections cyrilfiesta | en:yaml:hud [2026/08/31 20:53] (Version actuelle) – Wiki : fins de pages homogènes, liens Discord retirés cyrilfiesta | ||
|---|---|---|---|
| Ligne 15: | Ligne 15: | ||
| <code yaml> | <code yaml> | ||
| - | - id: fight_room | + | rooms: |
| - | | + | - id: fight_room |
| - | position: top-right | + | |
| - | text: | | + | |
| - | HP: v_hp_v / v_hpmax_v | + | |
| - | Score: v_score_v | + | |
| - | + | ||
| - | events: | + | |
| - | - if: ~ | + | |
| - | do: " | + | |
| - | button: "Lose 3 HP" | + | |
| - | text: " | + | |
| hud: | hud: | ||
| position: top-right | position: top-right | ||
| - | text: "HP: v_hp_v / v_hpmax_v" | + | |
| + | HP: v_hp_v / v_hpmax_v | ||
| + | Score: v_score_v | ||
| + | events: | ||
| + | - if: ~ | ||
| + | do: " | ||
| + | button: "Lose 3 HP" | ||
| + | text: " | ||
| + | hud: | ||
| + | position: top-right | ||
| + | | ||
| </ | </ | ||
| - | ===== Size and Style ===== | + | ===== Size ===== |
| + | |||
| + | '' | ||
| + | |||
| + | ===== Style ===== | ||
| <code yaml> | <code yaml> | ||
| Ligne 42: | Ligne 46: | ||
| text: " | text: " | ||
| </ | </ | ||
| - | |||
| - | Use '' | ||
| ===== Conditional Text ===== | ===== Conditional Text ===== | ||
| Ligne 60: | Ligne 62: | ||
| ===== Split ===== | ===== Split ===== | ||
| - | '' | + | '' |
| <code yaml> | <code yaml> | ||
| Ligne 73: | Ligne 75: | ||
| Score: v_score_v | Score: v_score_v | ||
| </ | </ | ||
| + | |||
| + | ===== Several panels at once ===== | ||
| + | |||
| + | <code yaml> | ||
| + | hud: | ||
| + | - position: top-left | ||
| + | text: " | ||
| + | - position: top-right | ||
| + | text: "⭐ v_score_v pts" | ||
| + | - position: bottom-right | ||
| + | text: "📍 Area: v_area_v" | ||
| + | </ | ||
| + | |||
| ===== Clear HUD ===== | ===== Clear HUD ===== | ||
| Ligne 81: | Ligne 96: | ||
| - top-right | - top-right | ||
| </ | </ | ||
| + | |||
| + | ===== Video inside a HUD ===== | ||
| + | |||
| + | The video syntax can be used inside the text of a panel: | ||
| + | |||
| + | <code yaml> | ||
| + | hud: | ||
| + | position: top | ||
| + | text: | ||
| + | - " | ||
| + | </ | ||
| + | |||
| + | A hosted video works here too. See [[en: | ||
| + | |||
en/yaml/hud.1783290936.txt.gz · Dernière modification : de cyrilfiesta
