Add new Compendium
This commit is contained in:
parent
a873ff92d0
commit
c7ccfacf84
@ -476,12 +476,12 @@ export class RdDActor extends Actor {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("Loading TMR template!!!");
|
||||
let data = {
|
||||
fatigueHTML:"<table class='table-fatigue'>" + RdDUtility.makeHTMLfatigueMatrix( this.data.data.sante.fatigue.value, this.data.data.sante.endurance.max ).html() + "</table>",
|
||||
draconic: this.getDraconicList(),
|
||||
sort: this.getSortList(),
|
||||
caracReve: this.data.data.carac.reve.value
|
||||
caracReve: this.data.data.carac.reve.value,
|
||||
pointsReve: this.data.data.reve.reve.value
|
||||
}
|
||||
let html = await renderTemplate('systems/foundryvtt-reve-de-dragon/templates/dialog-tmr.html', data );
|
||||
new RdDTMRDialog(sortID, html, this ).render(true);
|
||||
|
@ -15,13 +15,13 @@ export class RdDTMRDialog extends Dialog {
|
||||
content: html,
|
||||
buttons:
|
||||
{
|
||||
rollButton:
|
||||
closeButton:
|
||||
{
|
||||
label: "Fermer",
|
||||
callback: html => this.performRoll(html)
|
||||
callback: html => this.close(html)
|
||||
}
|
||||
},
|
||||
default: "rollButton"
|
||||
default: "closeButton"
|
||||
}
|
||||
let dialogOptions = { classes: [ "tmrdialog"] }
|
||||
|
||||
@ -281,6 +281,11 @@ export class RdDTMRDialog extends Dialog {
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
lancerSort () {
|
||||
console.log("Lancer de sort !!!!!");
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async activateListeners(html) {
|
||||
super.activateListeners(html);
|
||||
@ -288,7 +293,12 @@ export class RdDTMRDialog extends Dialog {
|
||||
var row = document.getElementById("tmrrow1");
|
||||
var cell1 = row.insertCell(1);
|
||||
cell1.append( this.pixiApp.view );
|
||||
|
||||
|
||||
// Roll Sort
|
||||
html.find('#lancer-sort').click((event) => {
|
||||
this.lancerSort();
|
||||
});
|
||||
|
||||
// load the texture we need
|
||||
await this.pixiApp.loader.add('tmr', 'systems/foundryvtt-reve-de-dragon/styles/ui/tmp_main_r1.webp').load((loader, resources) => {
|
||||
// This creates a texture from a 'bunny.png' image
|
||||
|
@ -4,24 +4,27 @@
|
||||
<table id="tmrsheet">
|
||||
<tr id="tmrrow1">
|
||||
<td>
|
||||
<div class="flex-group-center flex-fatigue">
|
||||
<div class="flex-group-center">
|
||||
Rêve Actuel : <span id="pointsreve-value">0</span>
|
||||
</div>
|
||||
<div class="flex-group-center flex-fatigue">
|
||||
<div class="flex-group-center">
|
||||
Coordonnées : <span id="tmr-pos">0</span>
|
||||
</div>
|
||||
<div class="flex-group-center flex-fatigue">
|
||||
<div class="flex-group-center">
|
||||
Etat général : <span id="etatgeneral-value">0</span>
|
||||
</div>
|
||||
<div class="flex-group-center flex-fatigue">
|
||||
<div class="flex-group-center">
|
||||
Refoulement : <span id="refoulement-value">0</span>
|
||||
</div>
|
||||
<div class="flex-group-center flex-fatigue">
|
||||
Fatigue
|
||||
<span id="fatigue-table">{{{fatigueHTML}}}</span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="categorie">Caractéristique Rêve : </label><label>{{caracReve}}</label>
|
||||
<div class="flex-group-center">
|
||||
<label>Carac. Rêve : </label><label>{{caracReve}}</label>
|
||||
</div>
|
||||
<div class="flex-group-center">
|
||||
<label>Points de Rêve : </label><label>{{pointsReve}}</label>
|
||||
</div>
|
||||
|
||||
<div class="flex-group-center">
|
||||
@ -35,8 +38,7 @@
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="flex-group-center">
|
||||
Sorts : <span id="sorts-list">
|
||||
<select name="sort" id="sort-list" data-dtype="String">
|
||||
@ -48,7 +50,11 @@
|
||||
</select>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="flex-group-center">
|
||||
<button id="lancer-sort">Lancer un Sort</button>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user