Load icons during initial setup and allow hot-reloading icons
This commit is contained in:
parent
b9ed3289dc
commit
a657b2e3e8
6 changed files with 49 additions and 44 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import DOTDUNGEON from "../config.mjs";
|
||||
import { preloadIcons } from "../handlebars.mjs";
|
||||
|
||||
export class GenericActorSheet extends ActorSheet {
|
||||
_expanded = new Set();
|
||||
|
|
@ -29,7 +28,7 @@ export class GenericActorSheet extends ActorSheet {
|
|||
|
||||
ctx.actor = this.actor;
|
||||
ctx.config = DOTDUNGEON;
|
||||
ctx.icons = await preloadIcons();
|
||||
ctx.icons = CONFIG.CACHE.icons;
|
||||
|
||||
return ctx;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import DOTDUNGEON from "../config.mjs";
|
||||
import { preloadIcons } from "../handlebars.mjs";
|
||||
|
||||
export class GenericItemSheet extends ItemSheet {
|
||||
_expanded = new Set();
|
||||
|
|
@ -35,7 +34,7 @@ export class GenericItemSheet extends ItemSheet {
|
|||
};
|
||||
|
||||
ctx.config = DOTDUNGEON;
|
||||
ctx.icons = await preloadIcons();
|
||||
ctx.icons = CONFIG.CACHE.icons;
|
||||
|
||||
return ctx;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue