fvtt-never-stop-blowing-up/modules/sheets/actor-sheet.mjs

31 lines
664 B
JavaScript
Raw Normal View History

2024-11-04 00:47:13 +01:00
const {api, sheets} = foundry.applications;
2024-10-07 14:12:05 +02:00
export default class BaseActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorSheetV2) {
/** @override */
static get defaultOptions()
{
return foundry.utils.mergeObject(super.defaultOptions, {
classes: ["kidsonbrooms", "sheet", "actor"],
width: 800,
height: 800,
tabs: [{}]
});
}
/** @override */
get template()
{
console.log("template", this.actor)
return `systems/kidsonbrooms/templates/actor/actor-sheet-{$this.actor.type}.html`;
}
2024-11-04 00:47:13 +01:00
async getData()
{
const context = super.getData();
console.log(context);
return context;
}
2024-10-07 14:12:05 +02:00
}