- global.less : suppression du ::before cream overlay (causait un masquage du header vert sombre sur toutes les fiches items) Remplacement : z-index: 1 appliqué à .item-header, .item-tabs, section.tab - templates/character-main.hbs + npc-main.hbs : Correction affichage type anomalie en mode play : localize system.anomaly.type → lookup dans anomalyTypes pour label traduit 'none' s'affiche maintenant 'Aucune' - templates/npc-competences.hbs : Résistance '0 (0)' → 'actuel / total' (format 0/0 plus lisible) - styles/character.less : skill-level-checkbox appearance: none + style custom Art Déco (13×13px, border var(--cel-border), checked = fond or, disabled:checked = opaque) Remplacement du style browser default (cubes bleus) par des cases élégantes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
38 lines
1.5 KiB
Handlebars
38 lines
1.5 KiB
Handlebars
<div class="tab competences {{tab.cssClass}}" data-group="sheet" data-tab="competences">
|
|
<div class="stats-grid">
|
|
{{#each stats as |stat statId|}}
|
|
<div class="stat-block">
|
|
<div class="stat-header">
|
|
<span class="stat-name">{{localize stat.label}}</span>
|
|
<div class="stat-res">
|
|
<label>{{localize "CELESTOPOL.Stat.res"}}</label>
|
|
{{#if ../isEditMode}}
|
|
<input type="number" name="system.stats.{{statId}}.res"
|
|
value="{{lookup ../system.stats statId 'res'}}" min="0" max="8">
|
|
{{else}}
|
|
<span class="stat-res-value">
|
|
{{lookup ../system.stats statId 'actuel'}} / {{lookup ../system.stats statId 'res'}}
|
|
</span>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
<div class="skills-list">
|
|
{{#each (lookup ../skills statId) as |skill skillId|}}
|
|
<div class="skill-row {{#unless ../isEditMode}}rollable{{/unless}}"
|
|
data-stat-id="{{statId}}" data-skill-id="{{skillId}}">
|
|
<span class="skill-name">{{localize skill.label}}</span>
|
|
{{#if ../isEditMode}}
|
|
<input type="number" name="system.stats.{{statId}}.{{skillId}}.value"
|
|
value="{{lookup (lookup ../system.stats statId) skillId 'value'}}"
|
|
min="0" max="8" class="skill-value-input">
|
|
{{else}}
|
|
<span class="skill-value">{{lookup (lookup ../system.stats statId) skillId 'value'}}</span>
|
|
{{/if}}
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
</div>
|