소스 검색

合成材料功能的点击热区优化

zhaoyang 3 년 전
부모
커밋
b72684a7b3
1개의 변경된 파일9개의 추가작업 그리고 4개의 파일을 삭제
  1. 9 4
      GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/ClothingSyntheticView.cs

+ 9 - 4
GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/ClothingSyntheticView.cs

@@ -359,8 +359,8 @@ namespace GFGGame
                     listItem.m_groupCount.m_txtProgess.text = numSynthetic + "/" + itemData.num;
                     listItem.m_loaderIcon.visible = true;
                     listItem.m_groupCount.target.visible = true;
-                    listItem.m_groupCount.target.onClick.Clear();
-                    listItem.m_groupCount.target.onClick.Add(OnClickMateriasItemPlus);
+                    listItem.target.onClick.Clear();
+                    listItem.target.onClick.Add(OnClickMateriasItemPlus);
                     listItem.target.data = itemData;
 
                 }
@@ -377,8 +377,13 @@ namespace GFGGame
 
         private void OnClickMateriasItemPlus(EventContext context)
         {
-            UI_Component3 groupCount = UI_Component3.Proxy(context.sender as GObject);
-            UI_MateriasListItem listItem = UI_MateriasListItem.Proxy(groupCount.target.parent);
+            GuideCfg cfg = GuideCfgArray.Instance.GetCfg(ConstGuideId.CLOTHING_SYNTHETIC);
+            if (GuideDataManager.currentGuideId == cfg.id)
+            {
+                return;
+            }
+            // UI_Component3 groupCount = UI_Component3.Proxy(context.sender as GObject);
+            UI_MateriasListItem listItem = UI_MateriasListItem.Proxy(context.sender as GObject);
             ItemData itemData = listItem.target.data as ItemData;
             int num = ItemDataManager.GetItemNum(itemData.id);
             int needCount = (itemData.num + 1 - num) > 0 ? itemData.num + 1 - num : 1;