31 lines
664 B
JavaScript
31 lines
664 B
JavaScript
const {api, sheets} = foundry.applications;
|
|
|
|
|
|
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`;
|
|
}
|
|
|
|
async getData()
|
|
{
|
|
const context = super.getData();
|
|
|
|
console.log(context);
|
|
return context;
|
|
}
|
|
} |