Initial work towards integrating ActiveEffects
This commit is contained in:
parent
564e27de01
commit
4d5c428cbc
6 changed files with 58 additions and 0 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
|
||||||
0
module/data/ActiveEffect/base.mjs
Normal file
0
module/data/ActiveEffect/base.mjs
Normal file
16
templates/Apps/ActiveEffectConfiguration/changes.hbs
Normal file
16
templates/Apps/ActiveEffectConfiguration/changes.hbs
Normal 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>
|
||||||
5
templates/Apps/ActiveEffectConfiguration/general.hbs
Normal file
5
templates/Apps/ActiveEffectConfiguration/general.hbs
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
<div>
|
||||||
|
<input type="text" name="name" value="{{name}}">
|
||||||
|
<div>Status Conditions</div>
|
||||||
|
<div>Suspended</div>
|
||||||
|
</div>
|
||||||
13
templates/Apps/ActiveEffectConfiguration/rankLimiter.hbs
Normal file
13
templates/Apps/ActiveEffectConfiguration/rankLimiter.hbs
Normal 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>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue