This commit is contained in:
@@ -150,6 +150,9 @@
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canReset}}
|
||||
<button type="button" data-action="resetUsage" aria-label="Reinitialiser {{this.name}}" title="Reinitialiser"><i class="fa-solid fa-arrow-rotate-left"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
@@ -212,47 +215,6 @@
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<section class="sheet-card item-section">
|
||||
<header class="section-header">
|
||||
<h2>{{capacitySection.label}}</h2>
|
||||
<button type="button" class="text-button" data-action="createItem" data-type="{{capacitySection.createType}}">+ Ajouter</button>
|
||||
</header>
|
||||
<div class="item-list">
|
||||
{{#if capacitySection.items.length}}
|
||||
{{#each capacitySection.items}}
|
||||
<article class="item" data-item-id="{{this.id}}">
|
||||
<img src="{{this.img}}" alt="{{this.name}}">
|
||||
<div class="item-main">
|
||||
<div class="item-title-row">
|
||||
<strong>{{this.name}}</strong>
|
||||
{{#if this.usageLabel}}<span class="item-meta">{{this.usageLabel}}</span>{{/if}}
|
||||
{{#if this.protectionLabel}}<span class="item-meta">{{this.protectionLabel}}</span>{{/if}}
|
||||
</div>
|
||||
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
|
||||
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="item-actions">
|
||||
{{#if this.canRoll}}
|
||||
<button type="button" data-action="{{this.rollAction}}" aria-label="Lancer {{this.name}}" title="Lancer {{this.name}}"><i class="fa-solid fa-dice-d20"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canRollDamage}}
|
||||
<button type="button" data-action="rollDamage" aria-label="Lancer les degats de {{this.name}}" title="Lancer les degats"><i class="fa-solid fa-burst"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</article>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
<div class="item-dropzone {{#if capacitySection.items.length}}has-items{{/if}}" data-item-type="{{capacitySection.createType}}">
|
||||
Glissez-deposez ici les {{capacitySection.label}}.
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section class="sheet-column">
|
||||
<section class="sheet-card item-section">
|
||||
@@ -284,6 +246,9 @@
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canReset}}
|
||||
<button type="button" data-action="resetUsage" aria-label="Reinitialiser {{this.name}}" title="Reinitialiser"><i class="fa-solid fa-arrow-rotate-left"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
@@ -296,6 +261,50 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="sheet-card item-section">
|
||||
<header class="section-header">
|
||||
<h2>{{capacitySection.label}}</h2>
|
||||
<button type="button" class="text-button" data-action="createItem" data-type="{{capacitySection.createType}}">+ Ajouter</button>
|
||||
</header>
|
||||
<div class="item-list">
|
||||
{{#if capacitySection.items.length}}
|
||||
{{#each capacitySection.items}}
|
||||
<article class="item" data-item-id="{{this.id}}">
|
||||
<img src="{{this.img}}" alt="{{this.name}}">
|
||||
<div class="item-main">
|
||||
<div class="item-title-row">
|
||||
<strong>{{this.name}}</strong>
|
||||
{{#if this.usageLabel}}<span class="item-meta">{{this.usageLabel}}</span>{{/if}}
|
||||
{{#if this.protectionLabel}}<span class="item-meta">{{this.protectionLabel}}</span>{{/if}}
|
||||
</div>
|
||||
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
|
||||
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="item-actions">
|
||||
{{#if this.canRoll}}
|
||||
<button type="button" data-action="{{this.rollAction}}" aria-label="Lancer {{this.name}}" title="Lancer {{this.name}}"><i class="fa-solid fa-dice-d20"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canRollDamage}}
|
||||
<button type="button" data-action="rollDamage" aria-label="Lancer les degats de {{this.name}}" title="Lancer les degats"><i class="fa-solid fa-burst"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canReset}}
|
||||
<button type="button" data-action="resetUsage" aria-label="Reinitialiser {{this.name}}" title="Reinitialiser"><i class="fa-solid fa-arrow-rotate-left"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</article>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
<div class="item-dropzone {{#if capacitySection.items.length}}has-items{{/if}}" data-item-type="{{capacitySection.createType}}">
|
||||
Glissez-deposez ici les {{capacitySection.label}}.
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
@@ -398,6 +407,9 @@
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canReset}}
|
||||
<button type="button" data-action="resetUsage" aria-label="Reinitialiser {{this.name}}" title="Reinitialiser"><i class="fa-solid fa-arrow-rotate-left"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
<input type="number" name="system.quantite" value="{{system.quantite}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Delta</span>
|
||||
<span>De d'usure</span>
|
||||
<select name="system.delta">{{selectOptions config.usageDieOptions selected=system.delta localize=false}}</select>
|
||||
</label>
|
||||
<label class="span-two">
|
||||
@@ -73,6 +73,21 @@
|
||||
</label>
|
||||
{{/if}}
|
||||
|
||||
{{#if isTraining}}
|
||||
<label>
|
||||
<span>De d'usure courant</span>
|
||||
<select name="system.delta">{{selectOptions config.usageDieOptions selected=system.delta localize=false blank="Epuise"}}</select>
|
||||
</label>
|
||||
<label>
|
||||
<span>De d'usure max</span>
|
||||
<select name="system.deltaMax">{{selectOptions config.usageDieOptions selected=system.deltaMax localize=false}}</select>
|
||||
</label>
|
||||
<label class="span-two">
|
||||
<span>Effet</span>
|
||||
<input type="text" name="system.effet" value="{{system.effet}}">
|
||||
</label>
|
||||
{{/if}}
|
||||
|
||||
{{#if isSpell}}
|
||||
<label>
|
||||
<span>Caracteristique</span>
|
||||
@@ -144,6 +159,9 @@
|
||||
<footer class="sheet-footer">
|
||||
<button type="button" data-action="postItem" aria-label="Poster dans le chat"><i class="fa-solid fa-message"></i> Poster dans le chat</button>
|
||||
<button type="button" data-action="rollItem" aria-label="Utiliser ou lancer l'objet"><i class="fa-solid fa-dice-d20"></i> Utiliser / lancer</button>
|
||||
{{#if canResetUsage}}
|
||||
<button type="button" data-action="resetUsageItem" aria-label="Reinitialiser l'usage"><i class="fa-solid fa-arrow-rotate-left"></i> Reinitialiser</button>
|
||||
{{/if}}
|
||||
{{#if canRollDamage}}
|
||||
<button type="button" data-action="rollDamageItem" aria-label="Lancer les degats"><i class="fa-solid fa-burst"></i> Lancer les degats</button>
|
||||
{{/if}}
|
||||
|
||||
Reference in New Issue
Block a user