Files
DeltaGreen/module/sheets/agent-sheet-v2.js
T
Aaron Lutomski f9db23accb Move adaptation ticks to Agent Sheet V2 left panel (#297)
Port issue #297 from reyzor/297-adaption-left-panel: adaptation incident
checkboxes live in the left bar; Psychological tab is motivations/disorders only.
Includes #281 tooltips on adaptation controls, adapted-label-slot spacing,
locale key DG.Sheet.BlockHeaders.Adaptations (11 languages), and height 700.
Age remains on the bio tab (#374).
Manual port from branch reyzor/297-adaption-left-panel (@reyzor1991), not a
literal cherry-pick, due to merge conflicts with v14 and extravaganza work.
Co-authored-by: reyzor1991
2026-06-21 13:32:24 -07:00

44 lines
1.4 KiB
JavaScript

import DGAgentSheet from "./agent-sheet.js";
import ActorEditStatForm from "./edit-stats.js";
/** @extends {DGAgentSheet} */
export default class DGAgentSheetV2 extends DGAgentSheet {
static DEFAULT_OPTIONS = /** @type {const} */ ({
classes: ["actor-sheet-v2"],
position: { width: 950, height: 700 },
actions: {
openStatsEdit: this._openStatsEdit,
},
});
/** @override */
static PARTS = /** @type {const} */ ({
leftBar: {
template: `${this.TEMPLATE_PATH}/parts/left-bar.html`,
templates: [`${this.TEMPLATE_PATH}/partials/sanity-partial.html`],
},
tabs: this.BASE_PARTS.tabs,
rightBar: {
template: `${this.TEMPLATE_PATH}/parts/right-bar.html`,
templates: [
`${this.TEMPLATE_PATH}/parts/skills-tab.html`,
`${this.TEMPLATE_PATH}/parts/physical-tab-v2.html`,
`${this.TEMPLATE_PATH}/parts/motivations-tab-v2.html`,
`${this.TEMPLATE_PATH}/parts/gear-tab.html`,
`${this.TEMPLATE_PATH}/parts/bio-tab-v2.html`,
`${this.TEMPLATE_PATH}/parts/bonds-tab.html`,
`${this.TEMPLATE_PATH}/parts/about-tab.html`,
`${this.TEMPLATE_PATH}/partials/custom-skills-partial.html`,
`${this.TEMPLATE_PATH}/partials/notes-partial.html`,
],
},
});
static _openStatsEdit() {
const form = new ActorEditStatForm({
actor: this.actor,
});
form.render(true);
}
}