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

@ -120,6 +120,14 @@
} }
}, },
"Apps": { "Apps": {
"titles": {
"EffectManager": "Manage Effects",
"DicePool": {
"flavorless": "Dice Pool",
"flavored": "Dice Pool: {flavor}"
}
},
"manage-active-effects": "Open Effect Manager",
"move-run": "@RipCrypt.common.move • @RipCrypt.common.run", "move-run": "@RipCrypt.common.move • @RipCrypt.common.run",
"traits-range": "@RipCrypt.common.traits • @RipCrypt.common.range", "traits-range": "@RipCrypt.common.traits • @RipCrypt.common.range",
"grit-skills": "@RipCrypt.common.abilities.grit Skills", "grit-skills": "@RipCrypt.common.abilities.grit Skills",

View file

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

View file

View file

@ -0,0 +1,16 @@
<rc-border
var:border-color="var(--accent-2)"
>
<div slot="title">Changes</div>
<div slot="content" class="changes-list">
<div class="header">
<span>Attribute Key</span>
<span>Change Mode</span>
<span>Value</span>
<span>Priority</span>
<div><!-- Intentionally Empty --></div>
</div>
<ul>
</ul>
</div>
</rc-border>

View file

@ -0,0 +1,5 @@
<div>
<input type="text" name="name" value="{{name}}">
<div>Status Conditions</div>
<div>Suspended</div>
</div>

View file

@ -0,0 +1,13 @@
<rc-border>
<div slot="title">{{title}}</div>
<div slot="content">
<div>
<label for="">Rank</label>
<input type="text">
</div>
<div>
<label for="">Step</label>
<input type="text">
</div>
</div>
</rc-border>