Browse Source

战斗词牌选中框修改

huangxiaoyue 1 year ago
parent
commit
993aa997ff

+ 5 - 3
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryCardChoose.cs

@@ -132,7 +132,6 @@ namespace GFGGame
 
         private void UpdateView(int index)
         {
-
             // CardData cardData = cardList[index];
             _ui.m_loaScore.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + _scoreType);
             int cardId;
@@ -171,9 +170,7 @@ namespace GFGGame
             item.m_txtLv.text = SkillDataManager.Instance
                 .GetCardSkillLv(skillCfgs[index].cardId, skillCfgs[index].skillId).ToString();
             if (item.target.data == null)
-            {
                 item.target.onClick.Add(OnSkillItemClick);
-            }
 
             item.target.data = index; // skillCfgs[index];
             UI_ListCardSkillItem.ProxyEnd();
@@ -233,6 +230,11 @@ namespace GFGGame
                 // _effects.Add(_effectUI);
             }
 
+            item.target.asCom.RemoveChild(_comSelected);
+            if (_selectedIndex == index) { 
+                item.target.asCom.AddChild(_comSelected);
+            }
+
             UI_ListCardFightItem.ProxyEnd();
             // UI_ComStar.ProxyEnd();
         }

BIN
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes