diff --git a/module/apps/PlayerSheet.mjs b/module/apps/PlayerSheet.mjs index 9b55b93..f73bbb3 100644 --- a/module/apps/PlayerSheet.mjs +++ b/module/apps/PlayerSheet.mjs @@ -48,7 +48,9 @@ export class PlayerSheet extends primaryAttributes: { template: filePath(`templates/PlayerSheet/primary-attributes.hbs`) }, tabs: { template: filePath(`templates/generic/tabs.hbs`) }, content: { template: filePath(`templates/PlayerSheet/content.hbs`) }, - attributeTab: {}, + attributeTab: { + template: filePath(`templates/PlayerSheet/attributes-tab.hbs`), + }, items: { template: filePath(`templates/PlayerSheet/item-lists.hbs`), scrollable: [``], @@ -302,7 +304,9 @@ export class PlayerSheet extends ctx.attrs = filtered; }; - async _prepareAttributesTab(ctx) {}; + async _prepareAttributesTab(ctx) { + ctx.tabActive = this.tabGroups.primary === `attributes`; + }; async _prepareTabList(ctx) { ctx.tabs = await this._prepareTabs(`primary`); diff --git a/templates/PlayerSheet/attributes-tab.hbs b/templates/PlayerSheet/attributes-tab.hbs new file mode 100644 index 0000000..3c9848d --- /dev/null +++ b/templates/PlayerSheet/attributes-tab.hbs @@ -0,0 +1,7 @@ +