RC-26 | Name input
This commit is contained in:
parent
b257ed218f
commit
e435f9102b
4 changed files with 27 additions and 15 deletions
|
|
@ -1,8 +1,9 @@
|
|||
import { filePath } from "../../consts.mjs";
|
||||
|
||||
const { DocumentSheetV2, HandlebarsApplicationMixin } = foundry.applications.api;
|
||||
const { HandlebarsApplicationMixin } = foundry.applications.api;
|
||||
const { ActorSheetV2 } = foundry.applications.sheets;
|
||||
|
||||
export class HeroSummaryCardV1 extends HandlebarsApplicationMixin(DocumentSheetV2) {
|
||||
export class HeroSummaryCardV1 extends HandlebarsApplicationMixin(ActorSheetV2) {
|
||||
|
||||
// #region Options
|
||||
static DEFAULT_OPTIONS = {
|
||||
|
|
@ -40,6 +41,8 @@ export class HeroSummaryCardV1 extends HandlebarsApplicationMixin(DocumentSheetV
|
|||
ctx.meta ??= {};
|
||||
ctx.meta.idp = this.document.uuid;
|
||||
|
||||
ctx.actor = this.document;
|
||||
|
||||
partId = partId.slice(0,1).toUpperCase() + partId.slice(1);
|
||||
if (this[`_prepare${partId}Context`] != null) {
|
||||
ctx = await this[`_prepare${partId}Context`](ctx, opts);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue