Initial work towards integrating ActiveEffects

This commit is contained in:
Oliver-Akins 2025-02-22 18:35:15 -07:00
parent 564e27de01
commit 4d5c428cbc
6 changed files with 58 additions and 0 deletions

View file

@ -23,8 +23,16 @@ export class HeroSummaryCardV1 extends GenericAppMixin(HandlebarsApplicationMixi
},
window: {
resizable: false,
controls: [
{
action: `openEffectManager`,
label: `RipCrypt.Apps.manage-active-effects`,
ownership: `OWNER`,
},
],
},
actions: {
openEffectManager: this.#openEffectManager,
},
form: {
submitOnChange: true,
@ -219,5 +227,13 @@ export class HeroSummaryCardV1 extends GenericAppMixin(HandlebarsApplicationMixi
// #endregion
// #region Actions
/** @this {HeroCraftCardV1} */
static async #openEffectManager() {
await this.actor.createEmbeddedDocuments(
`ActiveEffect`,
[{name: `AE Tester`}],
{ renderSheet: true },
);
};
// #endregion
};

View file