From 5b1d01e622d2879b7c7ac5f928b184af185bf880 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期三, 27 八月 2025 18:19:23 +0800
Subject: [PATCH] 1.Slot显示Glass时,增加G1G2显示类型,方便调试观察;

---
 SourceCode/Bond/Servo/CEquipmentPage2.cpp |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/SourceCode/Bond/Servo/CEquipmentPage2.cpp b/SourceCode/Bond/Servo/CEquipmentPage2.cpp
index 14b46ac..984fa26 100644
--- a/SourceCode/Bond/Servo/CEquipmentPage2.cpp
+++ b/SourceCode/Bond/Servo/CEquipmentPage2.cpp
@@ -180,7 +180,17 @@
 
 			SERVO::CGlass* pGlass = (SERVO::CGlass*)pSlot->getContext();
 			if (pGlass != nullptr) {
-				m_listCtrl.SetItemText(index, 3, pGlass->getID().c_str());
+				CString strText;
+				if (pGlass->getType() == SERVO::MaterialsType::G1) {
+					strText.Format(_T("(G1)%s"), pGlass->getID().c_str());
+				}
+				else if (pGlass->getType() == SERVO::MaterialsType::G2) {
+					strText.Format(_T("(G2)%s"), pGlass->getID().c_str());
+				}
+				else {
+					strText.Format(_T("(%s"), pGlass->getID().c_str());
+				}
+				m_listCtrl.SetItemText(index, 3, strText);
 				SERVO::CGlass* pBuddy = pGlass->getBuddy();
 				if (pBuddy != nullptr) {
 					m_listCtrl.SetItemText(index, 4, pBuddy->getID().c_str());

--
Gitblit v1.9.3