HUD buttons, WIP
This commit is contained in:
parent
1abb757b6b
commit
bb80391a47
@ -112,7 +112,7 @@ export class RdDTokenHud {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async addTokenHudExtensions(app, html, tokenId) {
|
static async addTokenHudExtensions(app, html, tokenId) {
|
||||||
const controlIconCombat = html.find('.control-icon[data-action=combat]');
|
const controlIconCombat = $(html).find('.control-icon[data-action=combat]');
|
||||||
if (controlIconCombat.length > 0) {
|
if (controlIconCombat.length > 0) {
|
||||||
controlIconCombat.click(event => {
|
controlIconCombat.click(event => {
|
||||||
if (event.currentTarget.className.includes('active')) {
|
if (event.currentTarget.className.includes('active')) {
|
||||||
|
@ -9,7 +9,7 @@ export class DialogChateauDormant extends Dialog {
|
|||||||
motifStress: `Nuit du ${date}`,
|
motifStress: `Nuit du ${date}`,
|
||||||
finChateauDormant: game.system.rdd.calendrier.getTimestampFinChateauDormant()
|
finChateauDormant: game.system.rdd.calendrier.getTimestampFinChateauDormant()
|
||||||
};
|
};
|
||||||
const html = await renderTemplate("systems/foundryvtt-reve-de-dragon/templates/sommeil/dialog-chateau-dormant.hbs",
|
const html = await foundry.applications.handlebars.renderTemplate("systems/foundryvtt-reve-de-dragon/templates/sommeil/dialog-chateau-dormant.hbs",
|
||||||
dialogData);
|
dialogData);
|
||||||
|
|
||||||
new DialogChateauDormant(dialogData, html)
|
new DialogChateauDormant(dialogData, html)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user