Working on the spells panel, which resulted in a lot of weird structural changes that aren't *really* functional yet

This commit is contained in:
Oliver-Akins 2024-01-07 22:27:26 -07:00
parent 227029ffcd
commit dfc51a5899
31 changed files with 499 additions and 84 deletions

View file

@ -1,3 +1,6 @@
import DOTDUNGEON from "../config.mjs";
import { preloadIcons } from "../handlebars.mjs";
export class GenericActorSheet extends ActorSheet {
_expanded = new Set();
@ -8,8 +11,8 @@ export class GenericActorSheet extends ActorSheet {
`resourcesOrSupplies`,
];
getData() {
const ctx = super.getData();
async getData() {
const ctx = {};
// Send all of the settings that sheets need into their context
ctx.settings = {};
@ -24,6 +27,10 @@ export class GenericActorSheet extends ActorSheet {
idp: this.actor.uuid,
};
ctx.actor = this.actor;
ctx.config = DOTDUNGEON;
ctx.icons = await preloadIcons();
return ctx;
};