Initial work towards integrating ActiveEffects
This commit is contained in:
parent
564e27de01
commit
4d5c428cbc
6 changed files with 58 additions and 0 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue