Outils pour utilisateurs

Outils du site


en:ui:fullscreen

Différences

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

Lien vers cette vue comparative

en:ui:fullscreen [2026/07/06 00:13] – maj 4.13 : modes d'interface + corrections cyrilfiestaen:ui:fullscreen [2026/07/15 01:41] (Version actuelle) – maj 4.13 : modes d'interface + corrections cyrilfiesta
Ligne 39: Ligne 39:
 The scene **shrinks automatically** to fit between the top and bottom HUDs: nothing is ever covered, and clickable zones follow the image. The scene **shrinks automatically** to fit between the top and bottom HUDs: nothing is ever covered, and clickable zones follow the image.
  
-After every interaction that changes a variable, the image map is **recomputed live**: zone that becomes visible (''visible-if:'') or active is immediately usablewithout reloading.+After every interaction that changes a variable, the image map is **recomputed live**. A zone's ''if:'' layers can therefore change its ''state:'' or color without reloading the room. 
 + 
 +===== Conditional states ===== 
 + 
 +zone can be ''visible'', ''disabled'' or ''invisible''. Its state can change according to scenario variables. A disabled zone no longer reacts to clicks but keeps its tooltip. With ''display-color:'', it can remain painted to mark an item that has already been found. 
 + 
 +<code yaml> 
 +- color: "#F21010" 
 +  click: find_key 
 +  if: 
 +    - if: "v_keyfound_v.=.1" 
 +      state: disabled 
 +      display-color: "#777777" 
 +      display-mode: fill 
 +</code> 
 + 
 +The older ''visible-if:'' and ''disabled-if:'' keys remain available on the whole map. For an individual zoneuse ''state:'' and its ''if:'' layers. See [[en:yaml:imagemaps|Image maps]] for the full syntax.
  
 ===== Single-use zones ===== ===== Single-use zones =====
  
-Combine ''once: zone'' or ''once: zone-room'' on events with ''after-click:'' on zones to visually mark what has already been found - details on the [[en:yaml:imagemaps|Image maps]] page.+Combine ''once: zone'' or ''once: zone-room'' on events with ''after-click:'' on zones to visually mark what has already been found
 + 
 +When several mask areas share one color, ''once: color'' consumes all of them on the first click. ''oncecolor-room'' uses the same behavior but resets on every visit.
  
 ===== Leaving the mode ===== ===== Leaving the mode =====
Ligne 60: Ligne 78:
 ===== Tips ===== ===== Tips =====
  
-  * Without a usable image map, the room shows a plain image or its text: always plan a clickable **exit zone** or a classic fallback choice.+  * Without a usable image map, the room shows a plain image or its text. The mode does not rebuild a classic choice panel, so provide a clickable **exit zone**.
   * On touch screens, the top bar (Give up / Home) stays visible even when the input bar is hidden.   * On touch screens, the top bar (Give up / Home) stays visible even when the input bar is hidden.
 +  * The game bar, scenario options, palette and style remain active in this mode.
 +  * The ⛶ button enables true fullscreen, just as it does in the other interface modes.
   * The ''test-ui-fullscreen'' demo scenario shows a complete tavern: tooltips, conditional zones, a counter, an exit.   * The ''test-ui-fullscreen'' demo scenario shows a complete tavern: tooltips, conditional zones, a counter, an exit.
  
en/ui/fullscreen.txt · Dernière modification : de cyrilfiesta