Correction compendiums

This commit is contained in:
2026-04-27 17:49:00 +02:00
parent d12a7debdf
commit 1e252ff6f2
136 changed files with 38971 additions and 345 deletions
+12
View File
@@ -77,6 +77,7 @@ export class CDECharacterSheet extends CDEBaseActorSheet {
this.#bindPrefs()
this.#bindRollButtons()
this.#bindComponentRandomize()
this.#bindDiagramZoom()
}
#bindInitiativeControls() {
@@ -159,6 +160,17 @@ export class CDECharacterSheet extends CDEBaseActorSheet {
})
}
#bindDiagramZoom() {
const img = this.element?.querySelector("[data-action='zoom-diagram']")
if (!img) return
img.addEventListener("click", () => {
new ImagePopout(img.src, {
title: game.i18n.localize("CDE.NghangDiagramTitle"),
shareable: false,
}).render(true)
})
}
#bindComponentRandomize() {
const btn = this.element?.querySelector("[data-action='randomize-component']")
if (!btn) return