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
+20 -2
View File
@@ -1640,6 +1640,7 @@ var CDECharacterSheet = class extends CDEBaseActorSheet {
this.#bindPrefs();
this.#bindRollButtons();
this.#bindComponentRandomize();
this.#bindDiagramZoom();
}
#bindInitiativeControls() {
const buttons = this.element?.querySelectorAll(".click-initiative");
@@ -1718,6 +1719,16 @@ var CDECharacterSheet = class 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;
@@ -2010,7 +2021,8 @@ var CDELoksyuApp = class _CDELoksyuApp extends foundry.applications.api.Handleba
position: { width: 520, height: "auto" },
actions: {
resetElement: _CDELoksyuApp.#onResetElement,
resetAll: _CDELoksyuApp.#onResetAll
resetAll: _CDELoksyuApp.#onResetAll,
zoomVisual: _CDELoksyuApp.#onZoomVisual
}
};
static PARTS = {
@@ -2093,6 +2105,12 @@ var CDELoksyuApp = class _CDELoksyuApp extends foundry.applications.api.Handleba
for (const k of KEYS) data[k] = { yin: 0, yang: 0 };
await setLoksyuData(data);
}
static #onZoomVisual(_event, target) {
new ImagePopout(target.src, {
title: game.i18n.localize("CDE.LoksyuDiagramTitle"),
shareable: false
}).render(true);
}
};
// src/ui/apps/tinji-app.js
@@ -2108,7 +2126,7 @@ var CDETinjiApp = class _CDETinjiApp extends foundry.applications.api.Handlebars
resizable: false
},
classes: ["cde-app", "cde-tinji-standalone"],
position: { width: 320, height: "auto" },
position: { width: 380, height: "auto" },
actions: {
increment: _CDETinjiApp.#onIncrement,
decrement: _CDETinjiApp.#onDecrement,
+2 -2
View File
File diff suppressed because one or more lines are too long