fix:修复物品没有描述时文本显示的问题

This commit is contained in:
ShakeFlower 2026-02-13 09:47:06 +08:00
parent 305b43e07c
commit 9902f22258

View File

@ -3721,8 +3721,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
const itemsUsedCount = core.getFlag('itemsUsedCount', {}); const itemsUsedCount = core.getFlag('itemsUsedCount', {});
core.fillText(ctx, itemsUsedCount[itemId] || 0, 80, 113, 'rgb(47, 49, 54)', '14px Verdana'); core.fillText(ctx, itemsUsedCount[itemId] || 0, 80, 113, 'rgb(47, 49, 54)', '14px Verdana');
} }
const rawItemText = core.replaceText(item.text) ?? "";
const itemText = core.replaceText(item.text) + ((UI.type === "equips") ? this.getEquipCompareInfo(item) : ""); // 物品描述信息 const itemText = rawItemText + ((UI.type === "equips") ? this.getEquipCompareInfo(item) : ""); // 物品描述信息
core.drawTextContent(ctx, itemText, { core.drawTextContent(ctx, itemText, {
left: 20, left: 20,
top: 125, top: 125,