Start on settings data model for template presets

This commit is contained in:
Chris Ryan 2025-11-14 14:52:23 +10:00
parent 554bc53dd8
commit 596e149968
5 changed files with 66 additions and 4 deletions

View file

@ -108,9 +108,8 @@ export default class DhTemplateLayer extends foundry.canvas.layers.TemplateLayer
if (game.activeTool) {
ui.controls.activate("toggles");
}
// if (CONFIG.ux.TemplateManager.getActivePreview()) {
// return;
// }
const settings = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.PresetTemplate);
console.log("settings", settings);
const { width, height } = game.canvas.scene.dimensions;
const data = {
x: width / 2,