En-tête de feuille de personnage

Affichage des portraits plus grands
Les boutons sont sur la ligne du nom du personnage
Les états sont affichés sur une colonne
This commit is contained in:
Vincent Vandemeulebrouck 2022-11-28 14:36:25 +01:00
parent 4bd2c1c2b4
commit dd4484c17b
12 changed files with 274 additions and 218 deletions

View File

@ -25,7 +25,7 @@ export class RdDActorSheet extends ActorSheet {
return mergeObject(super.defaultOptions, { return mergeObject(super.defaultOptions, {
classes: ["rdd", "sheet", "actor"], classes: ["rdd", "sheet", "actor"],
template: "systems/foundryvtt-reve-de-dragon/templates/actor-sheet.html", template: "systems/foundryvtt-reve-de-dragon/templates/actor-sheet.html",
width: 640, width: 550,
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "carac" }], tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "carac" }],
dragDrop: [{ dragSelector: ".item-list .item", dropSelector: undefined }], dragDrop: [{ dragSelector: ".item-list .item", dropSelector: undefined }],
showCompNiveauBase: false, showCompNiveauBase: false,

View File

@ -545,8 +545,7 @@ export class RdDUtility {
if (!profondeur) profondeur = 1; if (!profondeur) profondeur = 1;
objet.niveau = profondeur; objet.niveau = profondeur;
const display = afficherContenu ? 'item-display-show' : 'item-display-hide'; const display = afficherContenu ? 'item-display-show' : 'item-display-hide';
//console.log("ITEM DISPLAYED", objet ); let strContenu = `<ul class='item-list alterne-list ${display} list-item-margin${Math.min(profondeur,6)}'>`;
let strContenu = `<ul class='item-list alterne-list ${display} list-item-margin${profondeur}'>`;
for (let subItem of objet.subItems) { for (let subItem of objet.subItems) {
strContenu += this.buildConteneur(subItem, profondeur + 1); strContenu += this.buildConteneur(subItem, profondeur + 1);
} }

View File

@ -93,12 +93,18 @@
} }
/* Fonts */ /* Fonts */
.sheet header.sheet-header h1 input, .window-app .window-header, #actors .directory-list, #navigation #scene-list .scene.nav-item {font-family: "GoudyAcc"} /* For title, sidebar character and scene */ .sheet header.sheet-header h1 input,
.sheet nav.sheet-tabs { .window-app .window-header,
font-family: "CaslonAntique"; #actors .directory-list,
} /* For nav and title */ #navigation #scene-list .scene.nav-item {
.window-app input, .foundryvtt-reve-de-dragon .item-form, .sheet header.sheet-header .flex-compteurs, .sheet header.sheet-header .flex-group-center.flex-fatigue, select, button, .item-checkbox, #sidebar, #players, #navigation #nav-toggle { font-family: "GoudyAcc"
font-family: "CaslonAntique"; /* For sheet parts */ } /* For title, sidebar character and scene */
.sheet nav.sheet-tabs,
.window-app input,
.sheet header.sheet-header .header-compteurs,
.sheet header.sheet-header .flex-group-center.flex-fatigue,
select, button, .item-checkbox, #sidebar, #players, #navigation #nav-toggle {
font-family: "CaslonAntique"; /* For sheet parts; For nav and title */
} }
.window-header{ .window-header{
@ -109,6 +115,7 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.strong-text{ .strong-text{
font-weight: bold; font-weight: bold;
} }
@ -116,6 +123,114 @@ i:is(.fas, .far) {
font-size: smaller; font-size: smaller;
} }
/* =================== En-têtes de feuilles ============ */
.system-foundryvtt-reve-de-dragon .sheet-header h1.charname {
height: 48px;
padding: 0.1rem 0.1rem;
margin: 0;
margin-bottom: 0px;
border: 0;
min-width: none;
flex: auto;
flex-basis: 30%;
}
.system-foundryvtt-reve-de-dragon .window-app.sheet .window-content .sheet-header h1.charname input[type="text"] {
width: 100%;
height: 100%;
margin: 0;
}
.system-foundryvtt-reve-de-dragon .sheet-header div.header-buttons {
height: 48px;
padding: 0.1rem 0.1rem;
margin: 0;
width: fit-content;
flex: initial;
}
.system-foundryvtt-reve-de-dragon .sheet-header div.header-buttons img.button-img {
max-height: 48px;
padding: 0.1rem 0.1rem;
margin: 0;
width: fit-content;
}
.system-foundryvtt-reve-de-dragon .sheet-header :is(.header-compteurs,.header-etats,.profile-img){
padding: 0 3%;
}
.system-foundryvtt-reve-de-dragon .sheet-header .profile-img {
-webkit-box-flex: 0;
-ms-flex: 0 0 110px;
flex: 0 0 110px;
height: 110px;
width: 110px;
margin-right: 0.5rem;
object-fit: scale-down;
object-position: 50% 0;
margin: 0.1rem;
}
.system-foundryvtt-reve-de-dragon .rdd-item-sheet-tarot img.profile-img {
max-height: 600px;
max-width: 200px;
width: max-content;
margin-right: 0px;
object-fit: scale-down;
border: none;
margin-right: 5px;
object-position: 50% 0;
}
.system-foundryvtt-reve-de-dragon .sheet-header .header-compteurs {
text-align: right;
max-width: fit-content;
}
.system-foundryvtt-reve-de-dragon .sheet-header div.header-etats {
height: 48px;
max-width: fit-content;
flex: initial;
}
.system-foundryvtt-reve-de-dragon .sheet-header .resource-content {
width: 2rem;
}
/* =================== Navigation ============ */
.sheet nav.sheet-tabs {
font-size: 0.65rem;
font-weight: bold;
height: 4rem;
flex: 0 0 4rem;
margin: 0;
padding: 0 0 0 0.1rem;
text-align: center;
text-transform: uppercase;
line-height: 2rem;
border-top: 0 none;
border-bottom: 0 none;
color: rgba(52, 52, 52, 0.95);
background: rgb(245,245,240) url(img/bg_menu.webp) no-repeat left top;
}
.sheet nav.sheet-tabs .item ,
nav.sheet-tabs .item {
position: relative;
padding: 0.1rem 0.2rem;
}
nav.sheet-tabs .item:after {
content: "";
position: absolute;
top: 0;
right: 0;
height: 2rem;
width: 1px;
border-right: 1px dashed rgba(52, 52, 52, 0.25);
}
/* =================== Autres ============ */
.tabs .item.active, .blessures-list li ul li:first-child:hover, a:hover { .tabs .item.active, .blessures-list li ul li:first-child:hover, a:hover {
text-shadow: 1px 0px 0px #ff6600; text-shadow: 1px 0px 0px #ff6600;
} }
@ -197,7 +312,7 @@ table {border: 1px solid #7a7971;}
-ms-flex-align: center; -ms-flex-align: center;
align-items: center; align-items: center;
text-align: center; text-align: center;
padding: 5px; padding: 0.1rem;
} }
.flex-group-left { .flex-group-left {
@ -303,45 +418,6 @@ input:is(.blessure-premiers_soins, .blessure-soins_complets) {
text-shadow: 1px 1px 4px rgba(60, 60, 60, 1); text-shadow: 1px 1px 4px rgba(60, 60, 60, 1);
} }
.foundryvtt-reve-de-dragon .sheet-header {
-webkit-box-flex: 0;
-ms-flex: 0 0 210px;
flex: 0 0 210px;
overflow: hidden;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
}
.foundryvtt-reve-de-dragon .sheet-header .profile-img {
-webkit-box-flex: 0;
-ms-flex: 0 0 128px;
flex: 0 0 128px;
height: 128px;
width: 128px;
margin-right: 10px;
object-fit: cover;
object-position: 50% 0;
}
.foundryvtt-reve-de-dragon .rdd-item-sheet-tarot img.profile-img {
max-height: 600px;
max-width: 200px;
width: max-content;
margin-right: 0px;
object-fit: scale-down;
border: none;
margin-right: 5px;
object-position: 50% 0;
}
.rdd-dialog-select-target img.select-token-img { .rdd-dialog-select-target img.select-token-img {
-webkit-box-flex: 0; -webkit-box-flex: 0;
-ms-flex: 0 0 48px; -ms-flex: 0 0 48px;
@ -674,36 +750,6 @@ section.sheet-body{padding: 0.25rem 0.5rem;}
padding: 1px; padding: 1px;
margin: 1px; margin: 1px;
} }
.sheet nav.sheet-tabs {
font-size: 0.65rem;
font-weight: bold;
height: 4rem;
flex: 0 0 5rem;
margin: 0;
padding: 0 0 0 0.25rem;
text-align: center;
text-transform: uppercase;
line-height: 1.2rem;
border-top: 0 none;
border-bottom: 0 none;
color: rgba(52, 52, 52, 0.95);
background: rgb(245,245,240) url(img/bg_menu.webp) no-repeat left top;
}
nav.sheet-tabs .item {
position: relative;
padding: 0 0.2rem;
}
nav.sheet-tabs .item:after {
content: "";
position: absolute;
top: 0;
right: 0;
height: 2rem;
width: 1px;
border-right: 1px dashed rgba(52, 52, 52, 0.25);
}
.sheet .tab[data-tab] { .sheet .tab[data-tab] {
padding: 0; padding: 0;
@ -715,8 +761,6 @@ section.sheet-body:after {
clear: both; clear: both;
} }
.sheet header.sheet-header .flex-compteurs { text-align: right; max-width: max-content;}
.sheet header.sheet-header .resource-content {width: 2rem;}
li label.compteur { li label.compteur {
display: inline-block; display: inline-block;
@ -903,22 +947,22 @@ ul, li {
text-align: center; text-align: center;
} }
.list-item-margin1 { ul.list-item-margin1 {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.list-item-margin2 { ul.list-item-margin2 {
margin-left: 1rem; margin-left: 1rem;
} }
.list-item-margin3 { ul.list-item-margin3 {
margin-left: 1.5rem; margin-left: 1.5rem;
} }
.list-item-margin4 { ul.list-item-margin4 {
margin-left: 2rem; margin-left: 2rem;
} }
.list-item-margin5 { ul.list-item-margin5 {
margin-left: 2.5rem; margin-left: 2.5rem;
} }
.list-item-margin6 { ul.list-item-margin6 {
margin-left: 3rem; margin-left: 3rem;
} }

View File

@ -5,22 +5,26 @@
<div class="header-fields"> <div class="header-fields">
<div class="flexrow"> <div class="flexrow">
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" /> <img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" />
<h1 class="charname flex-grow"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1> <div class="flexcol">
<div class="flex-group-center"> <div class="flexrow">
<span class="encaisser-direct"><a title="Encaisser des dommages"><img class="button-img" src="icons/svg/bones.svg" alt="Encaisser des dommages"/></a></span> <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
{{#if @root.options.isGM}} <div class="header-buttons">
<span class="remise-a-neuf"><a title="Remise à neuf"><img class="button-img" src="icons/svg/regen.svg" alt="Remise à neuf"/></a></span> <span class="encaisser-direct"><a title="Encaisser des dommages"><img class="button-img" src="icons/svg/bones.svg" alt="Encaisser des dommages"/></a></span>
{{/if}} {{#if @root.options.isGM}}
</div> <span class="remise-a-neuf"><a title="Remise à neuf"><img class="button-img" src="icons/svg/regen.svg" alt="Remise à neuf"/></a></span>
</div> {{/if}}
<div class="flex-group-left flexrow"> </div>
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-compteurs-creature.html"}} </div>
<div class="flex-group-center"> <div class="flexrow">
<span> {{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-compteurs-creature.html"}}
{{calc.resumeBlessures}} <div class="flex-group-left header-etats">
&hyphen; Etat Général : {{system.compteurs.etat.value}} <div class="flexcol">
</span> <span>{{system.compteurs.etat.label}}: {{system.compteurs.etat.value}}</span>
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-effects.html"}} <span>{{calc.resumeBlessures}}</span>
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-effects.html"}}
</div>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -5,17 +5,21 @@
<div class="header-fields"> <div class="header-fields">
<div class="flexrow"> <div class="flexrow">
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" /> <img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" />
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1> <div class="flexcol">
<div class="flex-group-center"> <div class="flexrow">
<span class="encaisser-direct"><a title="Encaisser des dommages"><img class="button-img" src="icons/svg/bones.svg" alt="Encaisser des dommages"/></a></span> <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
{{#if @root.options.isGM}} <div class="header-buttons">
<span class="remise-a-neuf"><a title="Remise à neuf"><img class="button-img" src="icons/svg/regen.svg" alt="Remise à neuf"/></a></span> <span class="encaisser-direct"><a title="Encaisser des dommages"><img class="button-img" src="icons/svg/bones.svg" alt="Encaisser des dommages"/></a></span>
{{/if}} {{#if @root.options.isGM}}
<span class="remise-a-neuf"><a title="Remise à neuf"><img class="button-img" src="icons/svg/regen.svg" alt="Remise à neuf"/></a></span>
{{/if}}
</div>
</div>
<div class="flexrow">
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-compteurs-entitee.html"}}
</div>
</div> </div>
</div> </div>
<div class="flex-group-left flexrow">
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-compteurs-entitee.html"}}
</div>
</div> </div>
</header> </header>

View File

@ -3,16 +3,15 @@
{{!-- Sheet Header --}} {{!-- Sheet Header --}}
<header class="sheet-header"> <header class="sheet-header">
<div class="header-fields"> <div class="header-fields">
<div class="flexrow"> <div class="flexcol">
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" /> <div class="flexrow">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1> <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
<div class="flexrow">
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-compteurs.html"}}
<div class="flex-group-center">
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-buttons.html"}} {{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-buttons.html"}}
</div>
<div class="flexrow">
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" />
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-compteurs.html"}}
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-etat.html"}} {{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-etat.html"}}
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-effects.html"}}
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,4 +1,4 @@
<div> <div class="header-buttons">
<span class="chance-appel"> <span class="chance-appel">
<a title="Appel à la chance"><img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/appel-chance.svg" alt="Appel à la chance"/></a> <a title="Appel à la chance"><img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/appel-chance.svg" alt="Appel à la chance"/></a>
</span> </span>

View File

@ -1,24 +1,27 @@
<ul class="flex-compteurs"> <div class="flex-group-center header-compteurs">
<li data-attribute="vie"> <ul>
<label class="compteur"> <li data-attribute="vie">
<a class="jet-vie" name="system.sante.vie.label">Vie</a> <label class="compteur">
<a class="vie-moins"><i class="fas fa-minus-square"></i></a> <a class="jet-vie" name="system.sante.vie.label">Vie</a>
<input class="resource-content" type="text" name="system.sante.vie.value" value="{{system.sante.vie.value}}" data-dtype="Number" /> <a class="vie-moins"><i class="fas fa-minus-square"></i></a>
/ {{#if @root.options.vueDetaillee}} <input class="resource-content" type="text" name="system.sante.vie.value" value="{{system.sante.vie.value}}" data-dtype="Number" />
<input class="resource-content" type="text" name="system.sante.vie.max" value="{{system.sante.vie.max}}" data-dtype="Number"/> / {{#if @root.options.vueDetaillee}}
{{else}}{{system.sante.vie.max}}{{/if}} <input class="resource-content" type="text" name="system.sante.vie.max" value="{{system.sante.vie.max}}" data-dtype="Number"/>
<a class="vie-plus"><i class="fas fa-plus-square"></i></a> {{else}}{{system.sante.vie.max}}{{/if}}
</label> <a class="vie-plus"><i class="fas fa-plus-square"></i></a>
</li> </label>
<li data-attribute="endurance"> </li>
<label class="compteur"> <li data-attribute="endurance">
<a class="jet-endurance" name="system.sante.endurance.label">Endurance</a> <label class="compteur">
<a class="endurance-moins"><i class="fas fa-minus-square"></i></a> <a class="jet-endurance" name="system.sante.endurance.label">Endurance</a>
<input class="resource-content" type="text" name="system.sante.endurance.value" value="{{system.sante.endurance.value}}" data-dtype="Number"/> <a class="endurance-moins"><i class="fas fa-minus-square"></i></a>
/ {{#if @root.options.vueDetaillee}} <input class="resource-content" type="text" name="system.sante.endurance.value" value="{{system.sante.endurance.value}}" data-dtype="Number"/>
<input class="resource-content" type="text" name="system.sante.endurance.max" value="{{system.sante.endurance.max}}" data-dtype="Number"/> / {{#if @root.options.vueDetaillee}}
{{else}}{{system.sante.endurance.max}}{{/if}} <input class="resource-content" type="text" name="system.sante.endurance.max" value="{{system.sante.endurance.max}}" data-dtype="Number"/>
<a class="endurance-plus"><i class="fas fa-plus-square"></i></a> {{else}}{{system.sante.endurance.max}}{{/if}}
</label> <a class="endurance-plus"><i class="fas fa-plus-square"></i></a>
</li> </label>
</ul> </li>
</ul>
</div>

View File

@ -1,13 +1,17 @@
{{#if (eq system.definition.typeentite 'incarne')}} {{#if (ne system.definition.typeentite 'nonincarne')}}
<li data-attribute="endurance"> <div class="flex-group-center header-compteurs">
<label class="compteur"> <ul>
Endurance <li data-attribute="endurance">
<a class="endurance-moins"><i class="fas fa-minus-square"></i></a> <label class="compteur">
<input class="resource-content" type="text" name="system.sante.endurance.value" value="{{system.sante.endurance.value}}" data-dtype="Number" /> Endurance
/ {{#if @root.options.vueDetaillee}} <a class="endurance-moins"><i class="fas fa-minus-square"></i></a>
<input class="resource-content" type="text" name="system.sante.endurance.max" value="{{system.sante.endurance.max}}" data-dtype="Number"/> <input class="resource-content" type="text" name="system.sante.endurance.value" value="{{system.sante.endurance.value}}" data-dtype="Number" />
{{else}}{{system.sante.endurance.max}}{{/if}} / {{#if @root.options.vueDetaillee}}
<a class="endurance-plus"><i class="fas fa-plus-square"></i></a> <input class="resource-content" type="text" name="system.sante.endurance.max" value="{{system.sante.endurance.max}}" data-dtype="Number"/>
</label> {{else}}{{system.sante.endurance.max}}{{/if}}
</li> <a class="endurance-plus"><i class="fas fa-plus-square"></i></a>
</label>
</li>
</ul>
</div>
{{/if}} {{/if}}

View File

@ -1,39 +1,41 @@
<ul class="flex-group-center flex-compteurs"> <div class="flex-group-center header-compteurs">
<li> <ul>
<label class="compteur"> <li>
<a class="jet-vie">Vie</a> <label class="compteur">
<a class="vie-moins"><i class="fas fa-minus-square"></i></a> <a class="jet-vie">Vie</a>
<input class="resource-content" type="text" name="system.sante.vie.value" value="{{system.sante.vie.value}}" data-dtype="Number"/> <a class="vie-moins"><i class="fas fa-minus-square"></i></a>
<span>/ {{system.sante.vie.max}}</span> <input class="resource-content" type="text" name="system.sante.vie.value" value="{{system.sante.vie.value}}" data-dtype="Number"/>
<a class="vie-plus"><i class="fas fa-plus-square"></i></a> <span>/ {{system.sante.vie.max}}</span>
</label> <a class="vie-plus"><i class="fas fa-plus-square"></i></a>
</li> </label>
<li> </li>
<label class="compteur"> <li>
<a class="jet-endurance">Endurance</a> <label class="compteur">
<a class="endurance-moins"><i class="fas fa-minus-square"></i></a> <a class="jet-endurance">Endurance</a>
<input class="resource-content" type="text" name="system.sante.endurance.value" value="{{system.sante.endurance.value}}" data-dtype="Number"/> <a class="endurance-moins"><i class="fas fa-minus-square"></i></a>
<span>/ {{system.sante.endurance.max}}</span> <input class="resource-content" type="text" name="system.sante.endurance.value" value="{{system.sante.endurance.value}}" data-dtype="Number"/>
<a class="endurance-plus"><i class="fas fa-plus-square"></i></a> <span>/ {{system.sante.endurance.max}}</span>
</label> <a class="endurance-plus"><i class="fas fa-plus-square"></i></a>
</li> </label>
<li> </li>
<label class="appliquerFatigue compteur tooltip"> <li>
<span class="tooltiptext ttt-fatigue">{{{calc.fatigue.html}}}</span> <label class="appliquerFatigue compteur tooltip">
Fatigue <span class="tooltiptext ttt-fatigue">{{{calc.fatigue.html}}}</span>
<a class="fatigue-moins"><i class="fas fa-minus-square"></i></a> Fatigue
<input class="resource-content" id="fatigue-value" type="text" name="system.sante.fatigue.value" value="{{system.sante.fatigue.value}}" data-dtype="Number" /> <a class="fatigue-moins"><i class="fas fa-minus-square"></i></a>
<span>/ {{system.sante.fatigue.max}}</span> <input class="resource-content" id="fatigue-value" type="text" name="system.sante.fatigue.value" value="{{system.sante.fatigue.value}}" data-dtype="Number" />
<a class="fatigue-plus"><i class="fas fa-plus-square"></i></a> <span>/ {{system.sante.fatigue.max}}</span>
</label> <a class="fatigue-plus"><i class="fas fa-plus-square"></i></a>
</li> </label>
<li> </li>
<label class="compteur"> <li>
<span class="ptreve-actuel"><a>Rêve</a></span> <label class="compteur">
<a class="ptreve-actuel-moins"><i class="fas fa-minus-square"></i></a> <span class="ptreve-actuel"><a>Rêve</a></span>
<input class="resource-content" id="pointsreve-value" type="text" name="system.reve.reve.value" value="{{system.reve.reve.value}}" data-dtype="Number" /> <a class="ptreve-actuel-moins"><i class="fas fa-minus-square"></i></a>
<span>/ {{system.reve.seuil.value}}</span> <input class="resource-content" id="pointsreve-value" type="text" name="system.reve.reve.value" value="{{system.reve.reve.value}}" data-dtype="Number" />
<a class="ptreve-actuel-plus"><i class="fas fa-plus-square"></i></a> <span>/ {{system.reve.seuil.value}}</span>
</label> <a class="ptreve-actuel-plus"><i class="fas fa-plus-square"></i></a>
</li> </label>
</ul> </li>
</ul>
</div>

View File

@ -1,17 +1,12 @@
<div class="flexrow"> <span>
{{#if calc.surprise}}{{calc.surprise}}! {{/if}}
{{#if effects}} {{#if effects}}
<span> {{#each effects as |effect key|}}
{{#each effects as |effect key|}} <span class="active-effect" data-effect="{{effect.flags.core.statusId}}">
<span class="active-effect" data-effect="{{effect.flags.core.statusId}}"> <img class="button-effect-img {{#if @root.options.isGM}}delete-active-effect{{/if}}" src="{{effect.icon}}" alt="{{localize effect.label}}" width="24" height="24" />
<img class="button-effect-img delete-active-effect" src="{{effect.icon}}" alt="{{localize effect.label}}" width="24" height="24" />
</span>
{{/each}}
</span> </span>
{{#if options.isGM}} {{/each}}
<span class="enlever-tous-effets"><a>(enlever tout)</a></span> {{#if calc.surprise}}<span>{{calc.surprise}}!</span>{{/if}}
{{/if}}
{{else}} {{else}}
<span>Aucun effet actif</span> Aucun effet actif
{{/if}} {{/if}}
</div> </span>

View File

@ -1,10 +1,12 @@
<div class="flexrow"> <div class="flex-group-left header-etats">
<span class="appliquerFatigue tooltip tooltip-dotted">Malus de fatigue : {{calc.fatigue.malus}} <div class="flexcol">
<span class="tooltiptext ttt-fatigue">{{{calc.fatigue.html}}}</span> <span class="appliquerFatigue tooltip tooltip-dotted">Fatigue: {{calc.fatigue.malus}}
</span> <span class="tooltiptext ttt-fatigue">{{{calc.fatigue.html}}}</span>
<span>{{calc.resumeBlessures}}</span> </span>
</div> <span>{{system.compteurs.etat.label}}: {{system.compteurs.etat.value}}</span>
<div class="flexrow"> <span>{{system.compteurs.surenc.label}}: {{system.compteurs.surenc.value}}</span>
<span>{{system.compteurs.etat.label}}: {{system.compteurs.etat.value}}</span> <span>{{calc.resumeBlessures}}</span>
<span>{{system.compteurs.surenc.label}}: {{system.compteurs.surenc.value}}</span> {{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-effects.html"}}
</div>
</div> </div>