浏览代码

套装培养bug修复

zhaoyang 3 年之前
父节点
当前提交
697c6b769b

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/SuitFosterView.cs

@@ -51,7 +51,7 @@ namespace GFGGame
             int has = ItemDataManager.GetItemNum(cfg.costId);
             int need = cfg.costNum;
             UI_ComConsumeCurrency comConsume = UI_ComConsumeCurrency.Proxy(_ui.m_ComConsume);
-            comConsume.m_txtNeed.text = StringUtil.GetColorText(has.ToString(), has >= need ? "#FFF8EA" : "#C9F1A5");
+            comConsume.m_txtNeed.text = StringUtil.GetColorText(need.ToString(), has >= need ? "#FFF8EA" : "#C9F1A5");
             comConsume.m_txtLine.text = "";
             if (_canFoster && has < need) _canFoster = false;
 
@@ -80,7 +80,7 @@ namespace GFGGame
         private void OnListMaterialsItem(EventContext context)
         {
             int itemId = (int)(context.data as GComponent).data;
-            GoodsItemTipsController.ShowItemTips(itemId);
+            // GoodsItemTipsController.ShowItemTips(itemId);
             ViewManager.Show(ViewName.APPROACH_OF_ITEM_VIEW, new object[] { itemId, new object[] { typeof(SuitFosterView).FullName, this.viewData } });
 
         }

+ 10 - 1
GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/SuitView.cs

@@ -115,6 +115,8 @@ namespace GFGGame
 
         private void UpdateView()
         {
+            SuitCfg cfg = SuitCfgArray.Instance.GetCfg(_suitId);
+            _ui.m_loaRarity.url = ResPathUtil.GetCommonGameResPath("hd_sxicon_" + (5 - cfg.rarity));// "ui://LuckyBox/;
             UpdateArrows();
             UpdateSuitView();
             UpdateFoster();
@@ -305,8 +307,15 @@ namespace GFGGame
         {
             int suitrarity = SuitCfgArray.Instance.GetCfg(_suitId).rarity;
             SuitRenewCfg renewCfg = SuitRenewCfgArray.Instance.GetCfg(suitrarity);
-            SuitFosterListCfg cfg = SuitFosterListCfgArray.Instance.GetCfg(_suitId);
             _ui.m_txtRenewShow.text = string.Format("套装所有部件属性+{0}%", renewCfg.addition * 100 / 10000);
+            _ui.m_comRenewRewardGet.target.visible = true;
+            SuitFosterListCfg cfg = SuitFosterListCfgArray.Instance.GetCfg(_suitId);
+            if (cfg.renewRewardsArr.Length <= 0)
+            {
+                _ui.m_comRenewRewardGet.target.visible = false;
+                return;
+            }
+
             ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(cfg.renewRewardsArr[0][0]);
             _ui.m_comRenewRewardGet.m_loaReward.url = ResPathUtil.GetIconPath(itemCfg);
 

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitPartsDetailView.cs

@@ -17,6 +17,7 @@ namespace GFGGame
         protected override void OnInit()
         {
             base.OnInit();
+            packageName = UI_SuitGuideUI.PACKAGE_NAME;
             _ui = UI_SuitPartsDetailUI.Create();
             this.viewCom = _ui.target;
             this.modal = true;