mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-08 06:56:12 +01:00
REFACTOR: remove unused method on setting sheet
FEAT: create BaseActorSetting FIX: add type="button" to button on actor's sheet
This commit is contained in:
parent
79a4c13a1b
commit
0189805dd6
20 changed files with 185 additions and 387 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import DHBaseActorSettings from './actor-setting.mjs';
|
||||
import DHApplicationMixin from './application-mixin.mjs';
|
||||
|
||||
const { ActorSheetV2 } = foundry.applications.sheets;
|
||||
|
|
@ -25,14 +26,13 @@ export default class DHBaseActorSheet extends DHApplicationMixin(ActorSheetV2) {
|
|||
dragDrop: [],
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
/**@type {typeof DHBaseActorSettings}*/
|
||||
#settingSheet;
|
||||
|
||||
/**@returns {DHBaseActorSettings|null} */
|
||||
get settingSheet() {
|
||||
const SheetClass = this.document.system.metadata.settingSheet;
|
||||
return this.#settingSheet ??= SheetClass ? new SheetClass(this.document): null;
|
||||
return this.#settingSheet ??= SheetClass ? new SheetClass({document: this.document}): null;
|
||||
}
|
||||
|
||||
/**@inheritdoc */
|
||||
|
|
@ -43,7 +43,7 @@ export default class DHBaseActorSheet extends DHApplicationMixin(ActorSheetV2) {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Open the Actor Setting Sheet
|
||||
* @type {ApplicationClickAction}
|
||||
*/
|
||||
static async #openSettings() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue