Actor sheet -> working !!!, not WIP for rolls
This commit is contained in:
@@ -131,7 +131,12 @@ export class VermineBaseActorSheet extends HandlebarsApplicationMixin(foundry.ap
|
||||
// ── Actions ─────────────────────────────────────────────────────────
|
||||
|
||||
_onRender(context, options) {
|
||||
super._onRender(context, options)
|
||||
// Activate initial tabs (force to bypass changeTab's early-return when the
|
||||
// tab is already set as active in tabGroups — Foundry v12 doesn't call
|
||||
// changeTab on initial render, so the active class is never applied)
|
||||
for (const [group, tab] of Object.entries(this.tabGroups ?? {})) {
|
||||
this.changeTab(tab, group, {force: true})
|
||||
}
|
||||
this.#dragDrop.forEach(d => d.bind(this.element))
|
||||
this.element.querySelectorAll(".rollable").forEach(el => {
|
||||
el.addEventListener("click", this._onRoll.bind(this))
|
||||
|
||||
@@ -12,7 +12,6 @@ export class VermineCharacterSheetV2 extends VermineBaseActorSheet {
|
||||
}
|
||||
|
||||
static PARTS = {
|
||||
header: { template: "systems/vermine2047/templates/actor/appv2/character-header.hbs" },
|
||||
main: { template: "systems/vermine2047/templates/actor/appv2/character-main.hbs" },
|
||||
tabs: { template: "templates/generic/tab-navigation.hbs" },
|
||||
abilities: { template: "systems/vermine2047/templates/actor/appv2/character-abilities.hbs" },
|
||||
|
||||
Reference in New Issue
Block a user