Browse Source

词牌材料即时刷新

zhaoyang 3 years ago
parent
commit
5cd254637c
1 changed files with 9 additions and 1 deletions
  1. 9 1
      GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

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

@@ -102,7 +102,13 @@ namespace GFGGame
             });
 
             EventAgent.AddEventListener(ConstMessage.CARD_UP_SKILL, UpdateUpSkillView);
-            // EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, OnItemChangeListener);
+            EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, () =>
+            {
+                // _ui.m_ComFosterBottom.m_listStarConsume.numItems = _ui.m_ComFosterBottom.m_listStarConsume.numItems;
+                _ui.m_ComFosterBottom.m_listLvConsume.numItems = _ui.m_ComFosterBottom.m_listLvConsume.numItems;
+                // this.UpdateUpLvView();
+                this.UpdateUpStarView();
+            });
 
         }
 
@@ -221,6 +227,8 @@ namespace GFGGame
         /***********************************************************升级***************************************************/
         private void UpdateUpLvView(bool isPreview = false, int lv = 0, int exp = 0)
         {
+            // _comLvConsumeGold = UI_ComCostCurrency.Proxy(_comFosterBottom.m_ComLvConsumeGold);
+
             _showLv = isPreview == true ? lv : _cardData.lv;
             _showExp = isPreview == true ? exp : _cardData.exp;
             CardLvlCfg cardLvCfg = CardLvlCfgArray.Instance.GetCfg(_showLv, _cardData.itemCfg.rarity);