Correction compendiums
This commit is contained in:
Vendored
+20
-2
@@ -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,
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user