Outils pour utilisateurs

Outils du site


en:ui:deck

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
en:ui:deck [2026/07/06 00:13] – maj 4.13 : modes d'interface + corrections cyrilfiestaen:ui:deck [2026/10/19 01:15] (Version actuelle) – Wiki 4.17 : corrections apres audit des exemples et traductions cyrilfiesta
Ligne 36: Ligne 36:
  
 Every button type can be a direction: navigation, events with ''button:'', custom actions. A long label wraps over several lines inside its pill. Every button type can be a direction: navigation, events with ''button:'', custom actions. A long label wraps over several lines inside its pill.
 +
 +===== Setting a direction =====
 +
 +By default, choices take the available slots in left, right, up, down order. The ''direction:'' key reserves a specific side. It accepts ''left'', ''right'', ''up'', ''down'', as well as ''west'', ''east'', ''north'' and ''south''.
 +
 +<code yaml>
 +choices:
 +  - button: "Go north"
 +    direction: north
 +    to: gallery
 +  - button: "Retrace your steps"
 +    to: entrance       # takes the first remaining direction
 +</code>
 +
 +The key also works on an event or custom action that has a ''button:''. The linter reports unknown values.
  
 ===== Artwork and card backs ===== ===== Artwork and card backs =====
Ligne 43: Ligne 58:
 ===== Independent HUDs ===== ===== Independent HUDs =====
  
-In deck mode, HUD panels never overlap: ''top''/''bottom'' bands are limited to the card width, ''left''/''right'' to its height, and corners anchor to the screen corners. Each position is therefore **independent**: placing a band no longer clears the corners, and ''clear-hud: top'' only removes the top band. Ideal for //Reigns//-style gauges (people, army, gold, faith...).+In deck mode, HUD panels never overlap: ''top''/''bottom'' bands are limited to the card width, ''left''/''right'' to its height, and corners anchor to the screen corners. Each position is therefore **independent**: placing a band no longer clears the corners, and ''clear-hud: top'' only removes the top band. Gauges (people, army, gold, faith...) can stay around the card.
  
 <code yaml> <code yaml>
Ligne 60: Ligne 75:
   * The ''test-ui-deck'' demo scenario shows 12 illustrated cards with gauges.   * The ''test-ui-deck'' demo scenario shows 12 illustrated cards with gauges.
  
-See also: [[en:ui:presentation|Interface modes]], [[en:ui:cards|Cards mode]], [[en:yaml:hud|HUD panels]].+===== See also =====
  
-**Join us on [[https://discord.gg/Z63DtVV|Discord Make&Play]]**+  * [[en:ui:presentation|Interface modes]] 
 +  * [[en:ui:cards|Cards mode]] 
 +  * [[en:yaml:hud|HUD panels]]
  
en/ui/deck.1783289594.txt.gz · Dernière modification : de cyrilfiesta