Reprise des attributs secondaires
This commit is contained in:
parent
0f7f609a2a
commit
6af6e41bc9
@ -353,10 +353,10 @@ table {border: 1px solid #7a7971;}
|
|||||||
flex: 'flex-shrink' ;
|
flex: 'flex-shrink' ;
|
||||||
}
|
}
|
||||||
:is(.flex-grow, .flex-grow-3) {
|
:is(.flex-grow, .flex-grow-3) {
|
||||||
flex-grow : 3;
|
flex-grow: 3;
|
||||||
}
|
}
|
||||||
.flex-grow-2 {
|
.flex-grow-2 {
|
||||||
flex-grow : 2;
|
flex-grow: 2;
|
||||||
}
|
}
|
||||||
/* Styles limited to foundryvtt-reve-de-dragon sheets */
|
/* Styles limited to foundryvtt-reve-de-dragon sheets */
|
||||||
.equipement-nom {
|
.equipement-nom {
|
||||||
@ -538,24 +538,40 @@ input:is(.blessure-premiers_soins, .blessure-soins_complets) {
|
|||||||
width: max-content;
|
width: max-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rdd.sheet .window-content .sheet-body .carac-list .caracteristique > .carac-label {
|
.carac-label {
|
||||||
flex-basis: 50%;
|
flex-basis: 40%;
|
||||||
}
|
|
||||||
.rdd.sheet .window-content .sheet-body .carac-list .caracteristique > .attribut-label {
|
|
||||||
flex-basis: 50%;
|
|
||||||
}
|
|
||||||
.rdd.sheet .window-content .sheet-body .carac-list .caracteristique > .competence-value.total {
|
|
||||||
flex-grow: 1;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.rdd.sheet .window-content .sheet-body .carac-list .caracteristique > .utiliser-attribut {
|
.rdd.sheet .window-content .sheet-body .carac-list .caracteristique > .utiliser-attribut {
|
||||||
flex-basis: available;
|
flex-basis: available;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
.rdd.sheet .window-content .sheet-body .carac-list .caracteristique > * {
|
.rdd.sheet .window-content .sheet-body .carac-list .caracteristique .carac-value {
|
||||||
|
flex-basis: 15%;
|
||||||
|
flex-grow: 0;
|
||||||
|
}
|
||||||
|
.rdd.sheet .window-content .sheet-body .carac-list .caracteristique .carac-xp {
|
||||||
flex-basis: 13%;
|
flex-basis: 13%;
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
}
|
}
|
||||||
|
.rdd.sheet .window-content .sheet-body .carac-list .caracteristique .derivee-label {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
.rdd.sheet .window-content .sheet-body .carac-list .caracteristique .derivee-value {
|
||||||
|
flex-grow: 0;
|
||||||
|
flex-basis: 15%;
|
||||||
|
margin-right: 0.2rem;
|
||||||
|
margin-left: 0.2rem;
|
||||||
|
}
|
||||||
|
.rdd.sheet .window-content .sheet-body .carac-list .caracteristique .flex-grow-1 {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
.rdd.sheet .window-content .sheet-body .carac-list .caracteristique .flex-grow-2 {
|
||||||
|
flex-grow: 2;
|
||||||
|
}
|
||||||
|
.rdd.sheet .window-content .sheet-body .carac-list .caracteristique .flex-grow-3 {
|
||||||
|
flex-grow: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.editor {
|
.editor {
|
||||||
border: 2;
|
border: 2;
|
||||||
@ -1080,12 +1096,6 @@ div.competence-column div.categorie-competence{
|
|||||||
margin-right: 0.2rem;
|
margin-right: 0.2rem;
|
||||||
margin-left: 0.2rem;
|
margin-left: 0.2rem;
|
||||||
}
|
}
|
||||||
.description-value {
|
|
||||||
flex-grow: 0;
|
|
||||||
flex-basis: 4rem;
|
|
||||||
margin-right: 0.2rem;
|
|
||||||
margin-left: 0.2rem;
|
|
||||||
}
|
|
||||||
.competence-xp {
|
.competence-xp {
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
flex-basis: 2rem;
|
flex-basis: 2rem;
|
||||||
|
@ -28,10 +28,8 @@
|
|||||||
<a class="item" data-tab="items">Équipement</a>
|
<a class="item" data-tab="items">Équipement</a>
|
||||||
<a class="item" data-tab="description">Description</a>
|
<a class="item" data-tab="description">Description</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{{!-- Sheet Body --}}
|
{{!-- Sheet Body --}}
|
||||||
<section class="sheet-body">
|
<section class="sheet-body">
|
||||||
|
|
||||||
{{!-- Carac Tab --}}
|
{{!-- Carac Tab --}}
|
||||||
<div class="tab items" data-group="primary" data-tab="carac">
|
<div class="tab items" data-group="primary" data-tab="carac">
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
|
@ -1,55 +1,86 @@
|
|||||||
<ul class="carac-list">
|
|
||||||
<li class="caracteristique flexrow list-item">
|
|
||||||
<span class="carac-label" name="beaute">Beauté :</span>
|
|
||||||
<input class="description-value" type="text" name="system.beaute" value="{{system.beaute}}" data-dtype="String" {{#unless @root.options.vueDetaillee}}disabled{{/unless}}/>
|
|
||||||
<label class="carac-xp"/>
|
|
||||||
</li>
|
|
||||||
{{#each system.attributs as |attr key|}}
|
|
||||||
{{#unless (eq key 'hautrevant')}}
|
|
||||||
<li class="caracteristique flexrow list-item" data-attribute="{{key}}">
|
|
||||||
<span class="carac-label" name="system.attributs.{{key}}.label">{{attr.label}} :</span>
|
|
||||||
{{#if (eq key 'protection')}}
|
|
||||||
<input class="description-value" id="attribut-protection-edit" type="text" name="{{key}}" value="{{attr.value}}" data-dtype="number"/>
|
|
||||||
{{else}}
|
|
||||||
<input class="description-value" type="text" disabled name="system.attributs.{{key}}." value="{{attr.value}}" data-dtype="number"/>
|
|
||||||
{{/if}}
|
|
||||||
<label class="carac-xp"/>
|
|
||||||
</li>
|
|
||||||
{{/unless}}
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
<ul class="carac-list alterne-list">
|
<ul class="carac-list alterne-list">
|
||||||
<li class="caracteristique flexrow list-item">
|
<li class="caracteristique flexrow list-item">
|
||||||
<span class="attribut-label chance-actuelle"><a>Chance actuelle</a></span>
|
<label class="carac-label" for="system.beaute">Beauté</label>
|
||||||
<input class="description-value compteur-edit" type="text" name="chance" value="{{system.compteurs.chance.value}}" data-dtype="number"/>
|
<input class="carac-value" type="text" name="system.beaute" value="{{system.beaute}}" data-dtype="String" {{#unless @root.options.vueDetaillee}}disabled{{/unless}} />
|
||||||
|
<label class="carac-xp"></label>
|
||||||
</li>
|
</li>
|
||||||
{{#each system.compteurs as |compteur key|}}
|
<br>
|
||||||
{{#if (eq compteur.label 'Chance')}}
|
|
||||||
{{else if (eq compteur.label 'Experience')}}
|
|
||||||
{{else if compteur.isInput}}
|
|
||||||
<li class="caracteristique flexrow list-item">
|
<li class="caracteristique flexrow list-item">
|
||||||
<span class="attribut-label">{{compteur.label}}</span>
|
<label class="flexrow derivee-label">{{system.compteurs.stress.label}}
|
||||||
{{#if (eq compteur.label 'Ethylisme')}}
|
<a class="stress-test" title="Transformer le stress"><i class="fa-regular fa-moon"></i></a>
|
||||||
<select class="description-value" name="system.compteurs.ethylisme.value" id="ethylisme" data-dtype="Number">
|
</label>
|
||||||
{{#select compteur.value}}
|
<input class="derivee-value" type="text" name="{{system.compteurs.stress.value}}" value="{{system.compteurs.stress.value}}" data-dtype="number"/>
|
||||||
|
</li>
|
||||||
|
<li class="caracteristique flexrow list-item">
|
||||||
|
<label class="derivee-label">{{system.compteurs.moral.label}}
|
||||||
|
|
||||||
|
<span>
|
||||||
|
<a class="flex-shrink moral-malheureux" title="Jet de moral situation malheureuse"><i class="fa-regular fa-face-frown"></i></a>
|
||||||
|
<a class="flex-shrink moral-neutre" title="Jet de moral situation neutre"><i class="fa-regular fa-face-meh"></i></a>
|
||||||
|
<a class="flex-shrink moral-heureux" title="Jet de moral situation heureuse"><i class="fa-regular fa-face-smile"></i></a>
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<input class="derivee-value" type="text" name="system.compteurs.moral.value" value="{{system.compteurs.moral.value}}" data-dtype="number"/>
|
||||||
|
</li>
|
||||||
|
<li class="caracteristique flexrow list-item">
|
||||||
|
<label class="derivee-label">{{system.compteurs.exaltation.label}}</label>
|
||||||
|
<input class="derivee-value" type="text" name="{{system.compteurs.exaltation.value}}" value="{{system.compteurs.exaltation.value}}" data-dtype="number"/>
|
||||||
|
<label class="derivee-label">{{system.compteurs.dissolution.label}}</label>
|
||||||
|
<input class="derivee-value" type="text" name="{{system.compteurs.dissolution.value}}" value="{{system.compteurs.dissolution.value}}" data-dtype="number"/>
|
||||||
|
</li>
|
||||||
|
<li class="caracteristique flexrow list-item">
|
||||||
|
<label class="derivee-label chance-actuelle"><a>Chance actuelle</a></label>
|
||||||
|
<input class="derivee-value" type="text" name="system.compteurs.chance.value" value="{{system.compteurs.chance.value}}" data-dtype="number"/>
|
||||||
|
</li>
|
||||||
|
<li class="caracteristique flexrow list-item">
|
||||||
|
<label class="derivee-label">Destinée</label>
|
||||||
|
<input class="derivee-value" type="text" name="system.compteurs.destinee.value" value="{{system.compteurs.destinee.value}}" data-dtype="number"/>
|
||||||
|
<label class="derivee-label">voyage</label>
|
||||||
|
<input class="derivee-value" type="text" name="system.compteurs.voyage.value" value="{{system.compteurs.voyage.value}}" data-dtype="number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<li class="caracteristique flexrow list-item">
|
||||||
|
<label class="derivee-label">Sustentation</label>
|
||||||
|
<input class="derivee-value" type="text" disabled value="{{system.attributs.sust.value}}"/>
|
||||||
|
<label class="derivee-label" for="system.compteurs.sust.value">mangé</label>
|
||||||
|
<input class="derivee-value" type="text" name="system.compteurs.sust.value" value="{{system.compteurs.sust.value}}" data-dtype="number"/>
|
||||||
|
</li>
|
||||||
|
<li class="caracteristique flexrow list-item">
|
||||||
|
<label class="derivee-label"></label>
|
||||||
|
<label class="derivee-value"></label>
|
||||||
|
<label class="derivee-label" for="system.compteurs.eau.value">bu</label>
|
||||||
|
<input class="derivee-value" type="text" name="system.compteurs.eau.value" value="{{system.compteurs.eau.value}}" data-dtype="number"/>
|
||||||
|
</li>
|
||||||
|
<li class="caracteristique flexrow list-item">
|
||||||
|
<label class="derivee-label" for="system.compteurs.ethylisme.value">{{system.compteurs.ethylisme.label}}</label>
|
||||||
|
<select class="derivee-value" name="system.compteurs.ethylisme.value" data-dtype="Number">
|
||||||
|
{{#select system.compteurs.ethylisme.value}}
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/enum-niveau-ethylisme.html"}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/enum-niveau-ethylisme.html"}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
{{else}}
|
|
||||||
<input class="description-value compteur-edit" id="{{key}}-edit" type="text" name="{{key}}" value="{{compteur.value}}" data-dtype="number"/>
|
|
||||||
{{/if}}
|
|
||||||
<span class="utiliser-attribut" style="padding-left: 5px">
|
|
||||||
{{#if compteur.isStress}}
|
|
||||||
<a class="stress-test" title="Transformer">Transformer</a>
|
|
||||||
{{else if (eq compteur.label 'Moral')}}
|
|
||||||
<a class="moral-malheureux" title="Jet de moral situation malheureuse"><img class="small-button-container" src="systems/foundryvtt-reve-de-dragon/icons/moral-malheureux.svg" alt="Jet de moral situation malheureuse"/></a>
|
|
||||||
<a class="moral-neutre" title="Jet de moral situation neutre"><img class="small-button-container" src="systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg" alt="Jet de moral situation neutre"/></a>
|
|
||||||
<a class="moral-heureux" title="Jet de moral situation heureuse"><img class="small-button-container" src="systems/foundryvtt-reve-de-dragon/icons/moral-heureux.svg" alt="Jet de moral situation heureuse"/></a>
|
|
||||||
{{else}}
|
|
||||||
<label></label>
|
|
||||||
{{/if}}
|
|
||||||
</span>
|
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
<br>
|
||||||
|
<li class="caracteristique flexrow list-item" >
|
||||||
|
<label class="carac-label">Seuil enc.</label>
|
||||||
|
<input class="derivee-value" type="text" disabled value="{{system.attributs.encombrement.value}}"/>
|
||||||
|
</li>
|
||||||
|
<li class="caracteristique flexrow list-item" >
|
||||||
|
<label class="carac-label">Bonus dom.</label>
|
||||||
|
<input class="derivee-value" type="text" disabled value="{{numberFormat system.attributs.plusdom.value decimals=0 sign=true}}"/>
|
||||||
|
</li>
|
||||||
|
<li class="caracteristique flexrow list-item" >
|
||||||
|
<label class="carac-label">Malus armure</label>
|
||||||
|
<input class="derivee-value" type="text" disabled value="{{system.attributs.malusarmure.value}}" data-dtype="number"/>
|
||||||
|
</li>
|
||||||
|
<li class="caracteristique flexrow list-item">
|
||||||
|
<label class="carac-label" for="system.attributs.protection.value" >Protection naturelle</label>
|
||||||
|
<input class="derivee-value" type="text" {{#unless options.isGM}}disabled{{/unless}} name="system.attributs.protection.value" value="{{system.attributs.protection.value}}" data-dtype="number"/>
|
||||||
|
</li>
|
||||||
|
<li class="caracteristique flexrow list-item" >
|
||||||
|
<label class="carac-label" name="system.attributs.sconst.label">{{system.attributs.sconst.label}}</label>
|
||||||
|
<input class="derivee-value" type="text" disabled value="{{system.attributs.sconst.value}}"/>
|
||||||
|
</li>
|
||||||
|
<br>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
<ul class="carac-list alterne-list">
|
<ul class="carac-list alterne-list">
|
||||||
{{#each system.carac as |carac key|}}
|
{{#each system.carac as |carac key|}}
|
||||||
{{#if carac.isLevelUp}}
|
<li class="caracteristique flexrow list-item{{#if carac.isLevelUp}} xp-level-up{{/if}}" data-attribute="{{key}}">
|
||||||
<li class="caracteristique flexrow item-list xp-level-up" data-attribute="{{key}}">
|
|
||||||
{{else}}
|
|
||||||
<li class="caracteristique flexrow list-item" data-attribute="{{key}}">
|
|
||||||
{{/if}}
|
|
||||||
{{#if (eq key 'taille')}}
|
{{#if (eq key 'taille')}}
|
||||||
<span class="carac-label" name="system.carac.{{key}}.label">{{carac.label}}</span>
|
<span class="carac-label" name="system.carac.{{key}}.label">{{carac.label}}</span>
|
||||||
<input class="carac-value" type="text" name="system.carac.{{key}}.value" value="{{carac.value}}" data-dtype="{{carac.type}}" {{#unless @root.options.vueDetaillee}}disabled{{/unless}} />
|
<input class="carac-value" type="text" name="system.carac.{{key}}.value" value="{{carac.value}}" data-dtype="{{carac.type}}" {{#unless @root.options.vueDetaillee}}disabled{{/unless}} />
|
||||||
@ -20,7 +16,11 @@
|
|||||||
<span class="tooltiptext ttt-levelup">
|
<span class="tooltiptext ttt-levelup">
|
||||||
Vous pouvez dépenser {{carac.xpNext}} points d'Experience pour augmenter de 1 votre caractéristique {{carac.label}}
|
Vous pouvez dépenser {{carac.xpNext}} points d'Experience pour augmenter de 1 votre caractéristique {{carac.label}}
|
||||||
</span>
|
</span>
|
||||||
<a name={{key}}>{{carac.label}}</a></span>
|
<a name={{key}}>{{carac.label}}</a>
|
||||||
|
<a class="carac-xp-augmenter" name="augmenter.{{key}}" title="Augmenter">
|
||||||
|
<i class="fas fa-arrow-alt-circle-up"></i>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="carac-label tooltip" name="system.carac.{{key}}.label"><a name={{key}}>{{carac.label}}</a></span>
|
<span class="carac-label tooltip" name="system.carac.{{key}}.label"><a name={{key}}>{{carac.label}}</a></span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
@ -29,11 +29,6 @@
|
|||||||
<input class="carac-xp" type="text" name="system.carac.{{key}}.xp" value="{{carac.xp}}" data-dtype="number" {{#unless @root.options.vueDetaillee}}disabled{{/unless}} />
|
<input class="carac-xp" type="text" name="system.carac.{{key}}.xp" value="{{carac.xp}}" data-dtype="number" {{#unless @root.options.vueDetaillee}}disabled{{/unless}} />
|
||||||
<span class="tooltiptext ttt-xp">Vous devez acquérir {{carac.xpNext}} points d'Experience pour augmenter de 1 votre {{carac.label}}</span>
|
<span class="tooltiptext ttt-xp">Vous devez acquérir {{carac.xpNext}} points d'Experience pour augmenter de 1 votre {{carac.label}}</span>
|
||||||
</span>
|
</span>
|
||||||
{{#if carac.isLevelUp}}
|
|
||||||
<a class="carac-xp-augmenter" name="augmenter.{{key}}" title="Augmenter">
|
|
||||||
<i class="fas fa-arrow-alt-circle-up"></i>
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</li>
|
</li>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<ul class="carac-list alterne-list">
|
<ul class="carac-list alterne-list">
|
||||||
<li class="caracteristique flexrow">
|
<li class="caracteristique flexrow">
|
||||||
<span class="carac-label" name="carac-total">Total Caractéristiques </span>
|
<span class="carac-label" name="carac-total">Total Caractéristiques</span>
|
||||||
<span class="competence-value total" name="carac-total-value">{{calc.caracTotal}} </span>
|
<span class="competence-value" name="carac-total-value">{{calc.caracTotal}} </span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<div>
|
<div>
|
||||||
<ul class="item-list">
|
<ul class="item-list">
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="attribut-label" for="system.compteurs.experience.value">Stress transformé</label>
|
<label class="derivee-label" for="system.compteurs.experience.value">Stress transformé</label>
|
||||||
{{#if options.vueDetaillee}}
|
{{#if options.vueDetaillee}}
|
||||||
<input class="compteur-edit" type="text" name="system.compteurs.experience.value" value="{{system.compteurs.experience.value}}" data-dtype="number" size="3"/>
|
<input type="text" name="system.compteurs.experience.value" value="{{system.compteurs.experience.value}}" data-dtype="number" size="3"/>
|
||||||
{{else}}
|
{{else}}
|
||||||
<label name="system.compteurs.experience.value">{{system.compteurs.experience.value}}</label>
|
<label name="system.compteurs.experience.value">{{system.compteurs.experience.value}}</label>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
Loading…
Reference in New Issue
Block a user