import PrismRPGItemSheet from "./base-item-sheet.mjs" export default class PrismRPGCharacterPathSheet extends PrismRPGItemSheet { /** @override */ static DEFAULT_OPTIONS = { classes: ["character-path"], position: { width: 600, }, window: { contentClasses: ["character-path-content"], }, } /** @override */ static PARTS = { main: { template: "systems/fvtt-prism-rpg/templates/character-path.hbs", }, } /** @override */ tabGroups = { primary: "description", } /** * Prepare an array of form header tabs. * @returns {Record>} */ #getTabs() { const tabs = { description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" }, effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" }, } for (const v of Object.values(tabs)) { v.active = this.tabGroups[v.group] === v.id v.cssClass = v.active ? "active" : "" } return tabs } /** @override */ async _prepareContext() { const context = await super._prepareContext() context.tabs = this.#getTabs() return context } }