Merge branch 'feature-some-beautyfier' into 'v1.4'
Add some polish beautify to the character sheet. See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!234
This commit is contained in:
commit
82729a9855
@ -321,8 +321,8 @@ export class RdDActorSheet extends ActorSheet {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Roll Skill
|
// Roll Skill
|
||||||
html.find('.competence-label a').click((event) => {
|
html.find('a.competence-label').click((event) => {
|
||||||
let compName = event.currentTarget.text;
|
let compName = event.currentTarget.name;
|
||||||
this.actor.rollCompetence(compName);
|
this.actor.rollCompetence(compName);
|
||||||
});
|
});
|
||||||
html.find('.tache-label a').click((event) => {
|
html.find('.tache-label a').click((event) => {
|
||||||
|
@ -4,16 +4,19 @@
|
|||||||
{{else}}
|
{{else}}
|
||||||
<li class="item flexrow list-item" data-item-id="{{_id}}">
|
<li class="item flexrow list-item" data-item-id="{{_id}}">
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
<a class="competence-label" name="{{name}}">
|
||||||
<img class="sheet-competence-img" src="{{img}}" />
|
<img class="sheet-competence-img" src="{{img}}" />
|
||||||
{{#if data.isLevelUp}}
|
{{#if data.isLevelUp}}
|
||||||
<span class="competence-label tooltip">
|
<span class="competence-label tooltip">
|
||||||
<span class="tooltiptext ttt-xp">
|
<span class="tooltiptext ttt-xp">
|
||||||
Vous pouvez dépenser {{data.xpNext}} points d'Experience pour augmenter de 1 votre compétence {{name}}
|
Vous pouvez dépenser {{data.xpNext}} points d'Experience pour augmenter de 1 votre compétence {{name}}
|
||||||
</span>
|
</span>
|
||||||
<a name={{key}}>{{name}}</a></span>
|
{{name}}
|
||||||
|
</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="competence-label"><a>{{name}}</a></span>
|
<span class="competence-label">{{name}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
</a>
|
||||||
<input class="competence-value" type="text" compname="{{name}}" value="{{numberFormat data.niveau decimals=0 sign=true}}" data-dtype="number" {{#unless @root.options.editCaracComp}}disabled{{/unless}} />
|
<input class="competence-value" type="text" compname="{{name}}" value="{{numberFormat data.niveau decimals=0 sign=true}}" data-dtype="number" {{#unless @root.options.editCaracComp}}disabled{{/unless}} />
|
||||||
<input class="competence-xp" type="text" compname="{{name}}" value="{{numberFormat data.xp decimals=0 sign=false}}" data-dtype="number" {{#unless @root.options.editCaracComp}}disabled{{/unless}} />
|
<input class="competence-xp" type="text" compname="{{name}}" value="{{numberFormat data.xp decimals=0 sign=false}}" data-dtype="number" {{#unless @root.options.editCaracComp}}disabled{{/unless}} />
|
||||||
{{#if (eq data.categorie 'draconic')}}
|
{{#if (eq data.categorie 'draconic')}}
|
||||||
|
@ -179,7 +179,7 @@
|
|||||||
<li class="competence flexrow list-item">
|
<li class="competence flexrow list-item">
|
||||||
<span class="generic-label chance-actuelle"><a>Chance actuelle</a></span>
|
<span class="generic-label chance-actuelle"><a>Chance actuelle</a></span>
|
||||||
<input class="compteur-edit" type="text" name="chance" value="{{data.compteurs.chance.value}}" data-dtype="number"/>
|
<input class="compteur-edit" type="text" name="chance" value="{{data.compteurs.chance.value}}" data-dtype="number"/>
|
||||||
<span><a class="item-control chance-appel">Utiliser</a></span>
|
<span style="padding-left: 5px"><a class="item-control chance-appel">Utiliser</a></span>
|
||||||
</li>
|
</li>
|
||||||
{{#each data.compteurs as |compteur key|}}
|
{{#each data.compteurs as |compteur key|}}
|
||||||
{{#if (eq compteur.label 'Chance')}}
|
{{#if (eq compteur.label 'Chance')}}
|
||||||
@ -196,7 +196,7 @@
|
|||||||
{{else}}
|
{{else}}
|
||||||
<input class="compteur-edit" id="{{key}}-edit" type="text" name="{{key}}" value="{{compteur.value}}" data-dtype="number"/>
|
<input class="compteur-edit" id="{{key}}-edit" type="text" name="{{key}}" value="{{compteur.value}}" data-dtype="number"/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span>
|
<span style="padding-left: 5px">
|
||||||
{{#if compteur.isStress}}
|
{{#if compteur.isStress}}
|
||||||
<a class="item-control stress-test" title="Transformer">Transformer</a>
|
<a class="item-control stress-test" title="Transformer">Transformer</a>
|
||||||
{{else if (eq compteur.label 'Ethylisme')}}
|
{{else if (eq compteur.label 'Ethylisme')}}
|
||||||
|
Loading…
Reference in New Issue
Block a user