initial commit

This commit is contained in:
CPTN Cosmo 2026-01-23 20:06:09 +01:00
commit 4ebe86ee8c
No known key found for this signature in database
8 changed files with 1006 additions and 0 deletions

18
scripts/module.js Normal file
View file

@ -0,0 +1,18 @@
import { DHImporterApp } from "./app.js";
Hooks.once("init", async () => {
await loadTemplates([
"modules/dh-importer/templates/preview.hbs"
]);
});
Hooks.on("renderActorDirectory", (app, html, data) => {
const $html = $(html);
const button = $(`<button class="dh-importer-btn"><i class="fas fa-file-import"></i> Import Statblocks</button>`);
button.on("click", () => {
new DHImporterApp().render({ force: true });
});
$html.find(".directory-header .header-actions").append(button);
});