Migration datamodels !

This commit is contained in:
2026-01-10 16:05:56 +01:00
parent 627ccc707b
commit 438caf3b1c
3946 changed files with 318813 additions and 3453 deletions

View File

@@ -0,0 +1,32 @@
import WastelandItemSheet from "./base-item-sheet.mjs"
export default class WastelandOrigineSheet extends WastelandItemSheet {
static DEFAULT_OPTIONS = {
classes: ["origine"],
position: { width: 620 },
window: { contentClasses: ["origine-content"] },
}
static PARTS = {
main: { template: "systems/fvtt-wasteland/templates/item-origine-sheet.hbs" },
}
tabGroups = { primary: "description" }
#getTabs() {
const tabs = {
description: { id: "description", group: "primary", label: "Description" }
}
for (const v of Object.values(tabs)) {
v.active = this.tabGroups[v.group] === v.id
v.cssClass = v.active ? "active" : ""
}
return tabs
}
async _prepareContext() {
const context = await super._prepareContext()
context.tabs = this.#getTabs()
return context
}
}