矿架 5×4、拖电子元件升级、状态面板;型号鉴定统一为一个指出型号按钮

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ZHU MINCHAOandClaude Sonnet 5.5 committed 2026-11-04 19:50:46 +08:00
1 parent f40436b7d2
commit ed7d2bd088
16 files changed
+109 -30

No files matched your search

+5 -4
View File
@@ -238,15 +238,16 @@ namespace Decentralized
{
text = Show(real);
bool lied = row == CardLabels.RowSpec ? claim.Value.Model != real.Model : claim.Value.Get(row) != real.Get(row);
if (lied) { color = new Color(1f, 0.45f, 0.4f); text += L.T("lbl.said", Show(claim.Value)); }
if (lied) { color = new Color(1f, 0.45f, 0.4f); if (!CardLabels.IsAuth(row)) text += L.T("lbl.said", Show(claim.Value)); }
else color = new Color(0.5f, 1f, 0.55f);
}
else text = Show(claim.Value);
rowText[i].text = text;
rowText[i].color = color;
bool editable = row != CardLabels.RowCount && row != CardLabels.RowPin;
rowButton[i].gameObject.SetActive(canEdit ? editable : canPoint && (exposed & row) == 0);
rowButtonText[i].text = L.T(canEdit ? "lbl.edit" : "lbl.point");
bool editable = row == CardLabels.RowSpec || !CardLabels.IsAuth(row);
bool hasButton = row == CardLabels.RowSpec || !CardLabels.IsAuth(row);
rowButton[i].gameObject.SetActive(hasButton && (canEdit ? editable : canPoint && (exposed & row) == 0));
rowButtonText[i].text = L.T(canEdit ? "lbl.edit" : row == CardLabels.RowSpec ? "lbl.point.model" : "lbl.point");
}
if (priceText != null) priceText.text = L.T("lbl.price", item.unitValue);
if (flipText != null) flipText.text = L.T(Items.IsBack(item) ? "inspect.flip.front" : "inspect.flip.back");