Migration vers datamodels

This commit is contained in:
2026-02-25 15:49:55 +01:00
parent 64eb40abfb
commit f1ab04bf32
95 changed files with 7418 additions and 593 deletions

View File

@@ -0,0 +1,24 @@
import EcrymeBaseItemSheet from "./base-item-sheet.js"
export default class EcrymeManeuverSheet extends EcrymeBaseItemSheet {
/** @override */
static DEFAULT_OPTIONS = {
classes: ["maneuver"],
position: { width: 520 },
}
/** @override */
static PARTS = {
header: { template: "systems/fvtt-ecryme/templates/items/partials/item-header.hbs" },
tabs: { template: "templates/generic/tab-navigation.hbs" },
description: { template: "systems/fvtt-ecryme/templates/items/partials/item-description.hbs" },
details: { template: "systems/fvtt-ecryme/templates/items/item-maneuver-details.hbs" },
}
/** @override */
async _preparePartContext(partId, context) {
context = await super._preparePartContext(partId, context)
if (partId === "details") context.tab = context.tabs.details
return context
}
}