diff --git a/daggerheart.mjs b/daggerheart.mjs index 9ae3d87b..b6e797a5 100644 --- a/daggerheart.mjs +++ b/daggerheart.mjs @@ -133,6 +133,7 @@ Hooks.once('init', () => { CONFIG.Token.rulerClass = placeables.DhTokenRuler; CONFIG.ui.resources = applications.ui.DhFearTracker; + CONFIG.ui.presetTemplates = applications.ui.PresetTemplates; CONFIG.ui.countdowns = applications.ui.DhCountdowns; CONFIG.ux.ContextMenu = applications.ux.DHContextMenu; CONFIG.ux.TooltipManager = documents.DhTooltipManager; @@ -179,7 +180,7 @@ Hooks.on('ready', async () => { if (!(ui.compendiumBrowser instanceof applications.ui.ItemBrowser)) ui.compendiumBrowser = new applications.ui.ItemBrowser(); - ui.presetTemplates = new applications.ui.PresetTemplates(); + ui.presetTemplates = new CONFIG.ui.presetTemplates(); socketRegistration.registerSocketHooks(); registerRollDiceHooks(); diff --git a/module/canvas/placeables/templateLayer.mjs b/module/canvas/placeables/templateLayer.mjs index 74fb031a..bf3cfcb4 100644 --- a/module/canvas/placeables/templateLayer.mjs +++ b/module/canvas/placeables/templateLayer.mjs @@ -99,7 +99,7 @@ export default class DhTemplateLayer extends foundry.canvas.layers.TemplateLayer static handlePresetSettings(event) { console.log("Preset settings handling goes here, event, active is: ", event); - ui.presetTemplates.open(); + ui.presetTemplates.render({ force : true}); } diff --git a/templates/ui/presetTemplates.hbs b/templates/ui/presetTemplates.hbs index a0510c82..9fc7f780 100644 --- a/templates/ui/presetTemplates.hbs +++ b/templates/ui/presetTemplates.hbs @@ -1,3 +1,3 @@