Actor sheet -> working !!!

This commit is contained in:
2026-06-06 15:48:18 +02:00
parent 9b77a0c552
commit 891769816a
13 changed files with 129 additions and 69 deletions
@@ -39,6 +39,14 @@ export class VermineCreatureSheetV2 extends VermineBaseActorSheet {
return context
}
changeTab(tab, group, options = {}) {
super.changeTab(tab, group, options)
if (group === "sheet") {
const main = this.element?.querySelector('[data-group="sheet"][data-tab="main"]')
if (main) main.classList.add("active")
}
}
async _preparePartContext(partId, context) {
const doc = this.document
switch (partId) {