From 9f88a66b7254e9878239600c9b4d5b40cb4965aa Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Fri, 7 Aug 2026 18:31:04 +0200 Subject: [PATCH] =?UTF-8?q?feat(combat):=20refonte=20UI=20=E2=80=94=20trac?= =?UTF-8?q?ker=20v14,=20handicap=20III,=20malus=20d'attaque,=20checkbox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - combat-tracker.hbs + fight.mjs : alignés sur le CSS core v14 (header/tracker/footer, boutons +
+ +
+ {{currentIndex}} + / + {{combats.length}} +
+ +
+ + + {{!-- Tabbed Display --}} + {{else if combats.length}} + + {{#each combats}} + + {{/each}} + + + {{!-- No Combats --}} + {{else}} + {{/if}} - - - {{/if}} -
- {{#if user.isGM}} - - - - - - - {{/if}} + {{!-- Encounter Name --}} + {{#if combat.name}} +

{{combat.name}}

+ {{/if}} - {{#if combatCount}} - {{#if combat.round}} -

{{localize 'COMBAT.Round'}} - {{combat.round}}

- {{else}} -

{{localize - 'COMBAT.NotStarted'}}

- {{/if}} - {{else}} -

{{localize "COMBAT.None"}}

- {{/if}} +
+ + {{!-- Bulk Rolls --}} +
+ {{#if user.isGM}} + + + {{else}} +
+
+ {{/if}} +
+ + {{!-- Combat Status --}} + + {{#if combats.length}} + {{#if combat.round}} + {{localize "COMBAT.Round" round=combat.round}} + {{else}} + {{localize "COMBAT.NotStarted"}} + {{/if}} + {{else}} + {{localize "COMBAT.None"}} + {{/if}} + + + {{!-- Combat Controls --}} +
+
+ +
- {{#if user.isGM}} - - - - - - - - - - {{/if}}
-
    - {{#each turns as |turn index|}} -
  1. - {{turn.name}} -
    -

    {{turn.name}}

    -
    -
    - - - - - - - - {{#if turn.canPing}} - - - - {{/if}} -
    - {{#if turn.owner }} - -
    - - - - - - - - - +
      + {{#each turns}} +
    1. + {{name}} +
      + {{name}} +
      + {{#if @root.user.isGM}} + + + + {{/if}} + {{#if canPing}} + + {{/if}} + {{#if owner}} +
      + + +
      {{/if}} -
      - {{#each turn.effects}} - + {{#each effects}} + {{/each}}
      - {{#if this.hasResource}} + {{!-- Resource --}} + {{#if hasResource}}
      - {{this.resource}} + {{resource}}
      {{/if}} + {{!-- Initiative --}}
      - {{#if this.hasRolled}} - {{this.initiative}} - {{else if this.owner}} - + {{#if hasRolled}} + {{initiative}} + {{else if isOwner}} + {{/if}}
    2. {{/each}}
    -
    +
    + + + D +
    + {{#if isCharacter}}
    diff --git a/templates/dialogs/roll-dialog.hbs b/templates/dialogs/roll-dialog.hbs index 5e54ff5..16766d4 100644 --- a/templates/dialogs/roll-dialog.hbs +++ b/templates/dialogs/roll-dialog.hbs @@ -169,11 +169,12 @@ name="handicap" id="handicap" min="0" - max="2" + max="3" > +