removed unused processesseessess

This commit is contained in:
33333-33333 2026-06-29 16:21:58 +09:00
commit 4fdc567e08
158 changed files with 1317 additions and 3351 deletions

View file

@ -16,13 +16,12 @@
function groundDef(worldRef = null) {
const worldObj = activeWorld(worldRef);
const id = worldObj?.groundType || "soil";
return global.TarinaiGround?.definition?.(id) || (typeof GROUND_TYPES !== "undefined" ? GROUND_TYPES[id] || GROUND_TYPES.soil : { id: "soil", label: "\u7802", description: "\u666e\u901a\u306e\u5730\u9762\u3002" });
return global.TarinaiGround.definition(id);
}
function groundTip(worldRef = null) {
const def = groundDef(worldRef);
if (global.TarinaiGround?.tooltipText) return global.TarinaiGround.tooltipText(def.id);
return `${def.label || "\u5730\u9762"}\n${def.description || "\u30af\u30ea\u30c3\u30af\u3067\u5207\u308a\u66ff\u3048"}`;
return global.TarinaiGround.tooltipText(def.id);
}
function updateGroundUI(worldRef = null) {
@ -37,7 +36,7 @@
btnEl.dataset.tip = desc;
btnEl.removeAttribute("title");
btnEl.setAttribute("aria-label", desc ? `\u5730\u9762\u3092\u5207\u308a\u66ff\u3048\u308b\u3002\u73fe\u5728\u306f${label}\u3002${desc}` : `\u5730\u9762\u3092\u5207\u308a\u66ff\u3048\u308b\u3002\u73fe\u5728\u306f${label}`);
global.TarinaiTooltips?.refresh?.(btnEl);
global.TarinaiTooltips.refresh(btnEl);
}
}
@ -55,15 +54,14 @@
}
global.audio?.uiClick?.();
currentWorld.cycleGroundType();
global.TarinaiRender?.invalidateRenderCaches?.("ground-cycle");
global.TarinaiRender.invalidateRenderCaches("ground-cycle");
if (global.uiCache) {
global.uiCache.lastStatsGroundType = "";
if (global.uiCache.stats) global.uiCache.stats.groundType = "";
global.uiCache.lastChartDraw = "";
}
updateGroundUI(currentWorld);
global.renderStats?.();
global.render?.();
global.renderStats();
global.render();
}
function isGroundToggleTarget(target) {
@ -105,15 +103,12 @@
cycleGroundFromEvent(event, activeWorld(worldObj));
}, { capture: true, passive: false });
}
global.TarinaiTooltips?.bind?.(btn, () => groundTip(activeWorld(worldObj)));
global.TarinaiTooltips.bind(btn, () => groundTip(activeWorld(worldObj)));
updateGroundUI(activeWorld(worldObj));
}
global.TarinaiGroundUI = Object.freeze({
bind: bindGroundUI,
update: updateGroundUI,
tip: groundTip,
cycle: cycleGroundFromEvent,
});
global.bindGroundUI = bindGroundUI;
})(window);