Pārlūkot izejas kodu

卡牌合成补充

zhangyuqian 1 gadu atpakaļ
vecāks
revīzija
2b0473e537

+ 9 - 0
GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

@@ -176,6 +176,15 @@ namespace GFGGame
                 _ui.m_btnRight.grayed = false;
                 _ui.m_btnRight.touchable = true;
             }
+            ItemCfg item = ItemCfgArray.Instance.GetCfg(_cardData.id);
+            if (item.syntheticTimes > 0)
+            {
+                _ui.m_cardSyntheticBtn.visible = true;
+            }
+            else
+            {
+                _ui.m_cardSyntheticBtn.visible = false;
+            }
         }
 
         private void OnClickBtnLeft()