Affichage des effets

Suppression icone 'sonne' en doublon
This commit is contained in:
Vincent Vandemeulebrouck 2021-01-13 18:01:39 +01:00
parent 576be59d33
commit 9659c4a5bc
2 changed files with 16 additions and 3 deletions

View File

@ -17,7 +17,22 @@
<div class="flexrow">
<span>{{data.blessures.resume}}</span>
</div>
</div>
<div class="flexrow">
{{#if data.surprise}}{{data.surprise}}! {{/if}}
{{#if actor.effects}}
{{#each actor.effects as |effect key|}}
<span id="effect-{{effect.flags.core.status.statusId}} ">
<img class="button-effect-img" src="{{effect.icon}}" alt="{{effect.label}}" width="24" height="24" />
</span>
{{/each}}
{{#if data.isGM}}
<span id="enlever-tous-effets"><a>(enlever tout)</a></span>
{{/if}}
{{else}}
Aucun effet actif
{{/if}}
</div>
</div>
</div>
</header>
@ -83,7 +98,6 @@
<span class="competence-label flexrow" name="data.sante.sonne.label">Sonné : </span>
<input class="resource-content" type="checkbox" name="data.sante.sonne.value"
value="{{data.sante.sonne.value}}" {{#if data.sante.sonne.value}}checked{{/if}} />
<img class="button-effect-img" {{#if data.sante.sonne.value}}style="opacity: 1;"{{else}}style="opacity: 0;"{{/if}} src="icons/svg/stoned.svg" height="16" width="16"/>
</li>
<li class="competence flexrow list-item" data-attribute="etat">
<span class="competence-label flexrow" name="data.compteurs.etat.label">Etat Général : </span>

View File

@ -42,7 +42,6 @@
<label class="ctn-sonne">
Sonné :
<input class="resource-content data-sante-sonne" type="checkbox" value="{{data.sante.sonne.value}}" {{#if data.sante.sonne.value}}checked{{/if}} />
<img class="button-effect-img" {{#if data.sante.sonne.value}}style="opacity: 1;"{{else}}style="opacity: 0;"{{/if}} src="icons/svg/stoned.svg" height="16" width="16"/>
</label>
</li>
<li>