|
@@ -39,7 +39,7 @@ namespace GFGGame
|
|
|
|
|
|
_ui.m_comListCard.m_listCard.itemRenderer = RenderListCardItem;
|
|
_ui.m_comListCard.m_listCard.itemRenderer = RenderListCardItem;
|
|
_ui.m_comListCard.m_listCard.onClickItem.Add(OnClickListCardItem);
|
|
_ui.m_comListCard.m_listCard.onClickItem.Add(OnClickListCardItem);
|
|
- _ui.m_comListCard.m_listCard.SetVirtual();
|
|
|
|
|
|
+ //_ui.m_comListCard.m_listCard.SetVirtual();
|
|
|
|
|
|
_ui.m_listRole.itemRenderer = RenderListRoleItem;
|
|
_ui.m_listRole.itemRenderer = RenderListRoleItem;
|
|
_ui.m_listRole.onClickItem.Add(OnClickListRoleItem);
|
|
_ui.m_listRole.onClickItem.Add(OnClickListRoleItem);
|
|
@@ -119,11 +119,13 @@ namespace GFGGame
|
|
cardList = CardDataManager.FilterCardList(cardList);
|
|
cardList = CardDataManager.FilterCardList(cardList);
|
|
}
|
|
}
|
|
cardList = CardDataManager.SortItemList(cardList);
|
|
cardList = CardDataManager.SortItemList(cardList);
|
|
|
|
+
|
|
foreach (var v in _effectUIDic)
|
|
foreach (var v in _effectUIDic)
|
|
{
|
|
{
|
|
EffectUIPool.Recycle(v.Value);
|
|
EffectUIPool.Recycle(v.Value);
|
|
}
|
|
}
|
|
_effectUIDic.Clear();
|
|
_effectUIDic.Clear();
|
|
|
|
+
|
|
_ui.m_comListCard.m_listCard.data = cardList;
|
|
_ui.m_comListCard.m_listCard.data = cardList;
|
|
_ui.m_comListCard.m_listCard.numItems = cardList.Count;
|
|
_ui.m_comListCard.m_listCard.numItems = cardList.Count;
|
|
|
|
|
|
@@ -146,26 +148,17 @@ namespace GFGGame
|
|
listItem.m_txtName.text = data.itemCfg.name;
|
|
listItem.m_txtName.text = data.itemCfg.name;
|
|
RedDotController.Instance.SetComRedDot(listItem.target, RedDotDataManager.Instance.GetCardRed(data.id), "", 5, -10);
|
|
RedDotController.Instance.SetComRedDot(listItem.target, RedDotDataManager.Instance.GetCardRed(data.id), "", 5, -10);
|
|
|
|
|
|
- //if (data.itemCfg.rarity == 4)
|
|
|
|
- //{
|
|
|
|
- // listItem.m_holderGoldBg.visible = true;
|
|
|
|
- // listItem.m_holderPurpleBg.visible = false;
|
|
|
|
- // if (!_effectUIDic.ContainsKey("gold" + obj.id))
|
|
|
|
- // _effectUIDic.Add("gold" + obj.id, EffectUIPool.CreateEffectUI(listItem.m_holderGoldBg, "ui_KP", "KP_Gold_Frame"));
|
|
|
|
- //}
|
|
|
|
- //else if (data.itemCfg.rarity == 3)
|
|
|
|
- //{
|
|
|
|
- // listItem.m_holderPurpleBg.visible = true;
|
|
|
|
- // listItem.m_holderGoldBg.visible = false;
|
|
|
|
- // if (!_effectUIDic.ContainsKey("purple" + obj.id))
|
|
|
|
- // _effectUIDic.Add("purple" + obj.id, EffectUIPool.CreateEffectUI(listItem.m_holderPurpleBg, "ui_KP", "KP_Purple_Frame"));
|
|
|
|
- //}
|
|
|
|
- //else
|
|
|
|
- //{
|
|
|
|
- // listItem.m_holderGoldBg.visible = false;
|
|
|
|
- // listItem.m_holderPurpleBg.visible = false;
|
|
|
|
- //}
|
|
|
|
-
|
|
|
|
|
|
+ if (data.itemCfg.rarity == 4)
|
|
|
|
+ {
|
|
|
|
+ if (!_effectUIDic.ContainsKey("gold" + index))
|
|
|
|
+ _effectUIDic.Add("gold" + index, EffectUIPool.CreateEffectUI(listItem.m_holderGoldBg, "ui_KP", "KP_Gold_Frame"));
|
|
|
|
+ }
|
|
|
|
+ else if (data.itemCfg.rarity == 3)
|
|
|
|
+ {
|
|
|
|
+ if (!_effectUIDic.ContainsKey("purple" + index))
|
|
|
|
+ _effectUIDic.Add("purple" + index, EffectUIPool.CreateEffectUI(listItem.m_holderPurpleBg, "ui_KP", "KP_Purple_Frame"));
|
|
|
|
+ }
|
|
|
|
+
|
|
int starLevelDodge = data.star / 5;
|
|
int starLevelDodge = data.star / 5;
|
|
listItem.m_starNumType.selectedIndex = data.itemCfg.starDescArr.Length - 1;
|
|
listItem.m_starNumType.selectedIndex = data.itemCfg.starDescArr.Length - 1;
|
|
for (int i = 0; i < data.itemCfg.starDescArr.Length; i++)
|
|
for (int i = 0; i < data.itemCfg.starDescArr.Length; i++)
|