Added a render hook for the daggerheartMenu render

This commit is contained in:
WBHarry 2025-11-29 17:24:08 +01:00
parent 630ba5ab7d
commit 3f228db420
4 changed files with 28 additions and 1 deletions

View file

@ -43,6 +43,18 @@ export default class DaggerheartMenu extends HandlebarsApplicationMixin(Abstract
/* -------------------------------------------- */
/** @inheritDoc */
async _onRender(context, options) {
super._onRender(context, options);
Hooks.callAll(
CONFIG.DH.HOOKS.sidebarMenuRender,
this,
this.element.querySelector('[data-application-part="main"]'),
context
);
}
/** @inheritDoc */
async _prepareContext(options) {
const context = await super._prepareContext(options);