Attribute Item Subtype #76

Merged
Oliver merged 50 commits from feature/attribute-items into main 2026-04-27 02:12:56 +00:00
2 changed files with 13 additions and 2 deletions
Showing only changes of commit 60d29adc3e - Show all commits

View file

@ -48,7 +48,9 @@ export class PlayerSheet extends
primaryAttributes: { template: filePath(`templates/PlayerSheet/primary-attributes.hbs`) }, primaryAttributes: { template: filePath(`templates/PlayerSheet/primary-attributes.hbs`) },
tabs: { template: filePath(`templates/generic/tabs.hbs`) }, tabs: { template: filePath(`templates/generic/tabs.hbs`) },
content: { template: filePath(`templates/PlayerSheet/content.hbs`) }, content: { template: filePath(`templates/PlayerSheet/content.hbs`) },
attributeTab: {}, attributeTab: {
template: filePath(`templates/PlayerSheet/attributes-tab.hbs`),
},
items: { items: {
template: filePath(`templates/PlayerSheet/item-lists.hbs`), template: filePath(`templates/PlayerSheet/item-lists.hbs`),
scrollable: [``], scrollable: [``],
@ -302,7 +304,9 @@ export class PlayerSheet extends
ctx.attrs = filtered; ctx.attrs = filtered;
}; };
async _prepareAttributesTab(ctx) {}; async _prepareAttributesTab(ctx) {
ctx.tabActive = this.tabGroups.primary === `attributes`;
};
async _prepareTabList(ctx) { async _prepareTabList(ctx) {
ctx.tabs = await this._prepareTabs(`primary`); ctx.tabs = await this._prepareTabs(`primary`);

View file

@ -0,0 +1,7 @@
<div
class="tab attributes-tab {{ifThen tabActive "active" ""}}"
data-group="primary"
data-tab="attributes"
>
Attribute Tab
</div>