283/291 - add left panel (#293)

291 - add left panel
This commit is contained in:
reyzor1991
2025-12-13 16:59:43 +02:00
committed by GitHub
parent 719d59c96d
commit e6cecfc580
9 changed files with 527 additions and 3 deletions
+8
View File
@@ -20,6 +20,7 @@ import { handleInlineActions } from "./other/inline.js";
import DGNPCSheet from "./sheets/npc-sheet.js";
import DGUnnaturalSheet from "./sheets/unnatural-sheet.js";
import DGVehicleSheet from "./sheets/vehicle-sheet.js";
import DGAgentSheetV2 from "./sheets/agent-sheet-v2.js";
import AgentData from "./data/actor/agent.js";
import UnnaturalData from "./data/actor/unnatural.js";
import NPCData from "./data/actor/npc.js";
@@ -85,6 +86,13 @@ Hooks.once("init", async () => {
});
});
Actors.registerSheet(DG.ID, DGAgentSheetV2, {
makeDefault: false,
themes: null,
label: `Agent Sheet V2`,
types: ["agent"],
});
// Register item sheet.
Items.registerSheet(DG.ID, DeltaGreenItemSheet, {
makeDefault: true,
+32
View File
@@ -0,0 +1,32 @@
import DGAgentSheet from "./agent-sheet.js";
/** @extends {DGAgentSheet} */
export default class DGAgentSheetV2 extends DGAgentSheet {
static DEFAULT_OPTIONS = /** @type {const} */ ({
classes: ["actor-sheet-v2"],
position: { width: 950, height: 665 },
});
/** @override */
static PARTS = /** @type {const} */ ({
leftBar: {
template: `${this.TEMPLATE_PATH}/parts/left-bar.html`,
templates: [`${this.TEMPLATE_PATH}/partials/sanity-partial.html`],
},
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`,
],
},
tabs: this.BASE_PARTS.tabs,
});
}