From e91fe82e9544b9529e29cd4ed43d673babe46b0d Mon Sep 17 00:00:00 2001 From: macniel Date: Thu, 25 Sep 2025 19:57:52 +0200 Subject: [PATCH] register sheets --- src/main.mjs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/main.mjs b/src/main.mjs index bba2c509..700d15e2 100644 --- a/src/main.mjs +++ b/src/main.mjs @@ -1,8 +1,10 @@ -import {PlayerCharacterDataModel} from "./module/character/character.mjs"; -import {DsaActor} from "./module/Actors/dsa-actor.mjs"; -import {Skill} from "./module/Items/Skill.mjs" +import { PlayerCharacterDataModel } from "./module/character/character.mjs"; +import { DsaActor } from "./module/Actors/dsa-actor.mjs"; +import { Skill } from "./module/Items/Skill.mjs" +import { SkillSheet } from "./module/Items/SkillSheet.mjs"; Hooks.once("init", () => { + // Configure custom Document implementations. CONFIG.Actor.documentClass = DsaActor; @@ -16,4 +18,13 @@ Hooks.once("init", () => { } console.log("DSA 4.1 is ready for development!") + + // Register sheet application classes + Items.registerSheet('dsa41.skill', SkillSheet, { + makeDefault: true, + label: 'DSA41.SheetLabels.Item', + }); + + return preloadHandlebarsTemplates(); + }) \ No newline at end of file