Rework maitrise tmr

This commit is contained in:
Vincent Vandemeulebrouck 2021-04-21 18:58:50 +02:00
parent 496a411fcc
commit 31c5be26a3
2 changed files with 25 additions and 27 deletions

View File

@ -655,7 +655,7 @@ export class RdDTMRDialog extends Dialog {
const dialog = await RdDRoll.create(this.actor, rollData, const dialog = await RdDRoll.create(this.actor, rollData,
{ {
html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-maitrise-tmr.html', html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-maitrise-tmr.html',
options: { height: 350 }, options: { height: 420 },
close: html => { this.maximize(); } // Re-display TMR close: html => { this.maximize(); } // Re-display TMR
}, },
{ {

View File

@ -1,28 +1,26 @@
<form class="skill-roll-dialog"> <form class="skill-roll-dialog">
<div class="form-group"> <h2>Maîtrise {{tmr.label}} ({{tmr.coord}})</h2>
<label>{{tmr.label}} ({{tmr.coord}})</label> <div class="grid grid-2col">
<label>Rêve actuel à {{diffLibre}}</label> <div class="flex-group-left">
<span> <img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}"/>
<div class="grid grid-2col">
<label for="carac">Rêve actuel:</label><label class="flex-grow" name="carac">{{selectedCarac.value}}</label>
<label for="draconic">{{competence.name}}:</label><label class="flex-grow" name="draconic">{{numberFormat competence.data.niveau decimals=0 sign=true}}</label>
</div>
</div>
<div class="flex-group-left">
<div class="flexrow">
<label>Difficulté</label>
<label>{{numberFormat diffLibre decimals=0 sign=true}}</label>
</div>
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}}
<div id="tableAjustements" class="flexrow"></div>
</div>
</div>
<label>Conditions</label> <div id="tableResolution"></div>
<select name="diffConditions" id="diffConditions" data-dtype="number"> <div id="tableProbaReussite"></div>
{{#select diffConditions}} </form>
{{#each ajustementsConditions as |key|}}
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
{{/each}}
{{/select}}
</select>
</span>
</div>
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-surenc.html"}}
<div id="tableAjustements">
</div>
<div id="tableResolution">
</div>
<div id="tableProbaReussite">
</div>
</form>
<script>
</script>
<script>
</script>