Outils pour utilisateurs

Outils du site


en:editeur:timers-hud

Différences

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

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
en:editeur:timers-hud [2026/08/30 21:15] – maj 4.14 : dialogues, videos hebergees, mise en page, doc EN completee cyrilfiestaen:editeur:timers-hud [2026/08/31 20:44] (Version actuelle) – Wiki : fins de pages homogènes, liens Discord retirés cyrilfiesta
Ligne 7: Ligne 7:
 Timers are set up in the inspector of a room (Events section, ''timer:'' action) or in the Globals panel (Global timers). Timers are set up in the inspector of a room (Events section, ''timer:'' action) or in the Globals panel (Global timers).
  
-**Fields of a timer:**+**Fields of a global timer:**
  
 ^ Field ^ Role ^ ^ Field ^ Role ^
-| ''nom'' | Unique identifier of the timer | +| ''id'' | Unique identifier of the timer | 
-| ''duree'' | Duration in seconds | +| ''duration'' | Duration in seconds | 
-| ''visible'' | Shows the countdown in the interface | +| ''state'' | Initial state: ''ON'' or ''OFF'' | 
-| ''a_expiration'' | ''faire:'' actions run when the timer reaches zero | +| ''do'' | Actions run when the timer reaches zero | 
-| ''tick'' | ''faire:'' actions run every second (optional) | +| ''text'' | Message shown when the timer reaches zero | 
-| ''si'' | Start condition (optional) |+| ''tick'' | Actions run every second (optional) |
  
-**Actions on expiry and on tick** use the same syntax as ''faire:'': ''vers:room'', ''modifier:var'', ''declencher_event:id'', and so on.+**Actions on expiry and on tick** use the regular ''do:'' syntax: ''score.+.1'', a room identifier, ''trigger_event:id'', and so on.
  
 To **start or stop a global timer** from an event or a choice, use this action: To **start or stop a global timer** from an event or a choice, use this action:
  
 <code yaml> <code yaml>
-faire: +do: "timer_global:timer_name:ON"       # ON, OFF or SWITCH
-  - timer_global: timer_name +
-    state: ON          # ON, OFF or SWITCH+
 </code> </code>
  
Ligne 31: Ligne 29:
 ===== HUD (persistent panels) ===== ===== HUD (persistent panels) =====
  
-The HUD displays permanent information on the player screen: hit points, score, a mini-map, and so on. It is configured through ''encadre:'' inside events.+The HUD displays permanent information on the player screen: hit points, score, a mini-map, and so on. It is configured through ''hud:'' inside events.
  
 **Eight positions are available:** **Eight positions are available:**
Ligne 46: Ligne 44:
 **Setting up a panel from the editor:** **Setting up a panel from the editor:**
  
-In the inspector, Events section, ''encadre:'' action:+In the inspector, Events section, ''hud:'' action:
  
 ^ Field ^ Role ^ ^ Field ^ Role ^
 | ''position'' | One of the eight positions above | | ''position'' | One of the eight positions above |
-| ''texte'' | Contents, supporting ''v_name_v'' variables | +| ''text'' | Contents, supporting ''v_name_v'' variables and ''%%[[split]]%%'' | 
-| ''titre'' | Title of the panel (optional) | +| ''size'', ''width'', ''height'' | Optional dimensions | 
-| ''splits'' | Splits it into side by side zones (''2'' for two columns) | +| ''background'', ''text-color'', ''font'' | Optional appearance | 
-| ''style'' | Visual theme (''default'', ''danger'', ''info''…) | +| ''resizable'' | Lets the player resize the panel |
-| ''visible-si'' | Display condition |+
  
-The panel is refreshed every time the event defining it runs. For a live HUD, put the update inside a global event or inside a timer tick. +The panel is refreshed every time the event defining it runs. Put an ''if:'' or ''visible-if:'' condition on that event when the panel must be conditional. For a live HUD, put the update inside a global event or inside a timer tick.
- +
-**Find us on the [[https://discord.gg/Z63DtVV|Make&Play Discord]]**+
  
en/editeur/timers-hud.1788117325.txt.gz · Dernière modification : de cyrilfiesta