forked from public/foundryvtt-reve-de-dragon
utilisation de renderTemplate "interne"
Import de foundry.applications.handlebars.renderTemplate au travers d'une constante pour éliminer les warnings
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { SHOW_DICE, SYSTEM_RDD } from "./constants.js";
|
||||
import { renderTemplate, SHOW_DICE, SYSTEM_RDD } from "./constants.js";
|
||||
import { RollDataAjustements } from "./rolldata-ajustements.js";
|
||||
import { RdDUtility } from "./rdd-utility.js";
|
||||
import { COORD_TMR_INCONNU, TMRUtility } from "./tmr-utility.js";
|
||||
@@ -47,7 +47,7 @@ export class RdDTMRDialog extends Dialog {
|
||||
|
||||
static async create(actor, tmrData) {
|
||||
await PixiTMR.init()
|
||||
let html = await foundry.applications.handlebars.renderTemplate('systems/foundryvtt-reve-de-dragon/templates/dialog-tmr.hbs', tmrData);
|
||||
let html = await renderTemplate('systems/foundryvtt-reve-de-dragon/templates/dialog-tmr.hbs', tmrData);
|
||||
if (tmrData.mode != 'visu' && !game.user.isGM) {
|
||||
ChatMessage.create({ content: actor.name + " est monté dans les TMR en mode : " + tmrData.mode, whisper: ChatUtility.getGMs() });
|
||||
}
|
||||
@@ -508,7 +508,7 @@ export class RdDTMRDialog extends Dialog {
|
||||
|
||||
ChatMessage.create({
|
||||
whisper: ChatUtility.getOwners(this.actor),
|
||||
content: await foundry.applications.handlebars.renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-rencontre-tmr.hbs`, rencData)
|
||||
content: await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/chat-rencontre-tmr.hbs`, rencData)
|
||||
});
|
||||
|
||||
this.$updateValuesDisplay();
|
||||
|
||||
Reference in New Issue
Block a user