|
@@ -84,14 +84,16 @@ namespace GFGGame
|
|
|
|
|
|
private void RenderCardListItem(int index, GObject obj)
|
|
private void RenderCardListItem(int index, GObject obj)
|
|
{
|
|
{
|
|
- CardData data = CardDataManager.GetCardDataById(_cardList[index]);
|
|
|
|
UI_ListCardItem listItem = UI_ListCardItem.Proxy(obj);
|
|
UI_ListCardItem listItem = UI_ListCardItem.Proxy(obj);
|
|
|
|
+ CardData data = CardDataManager.GetCardDataById(_cardList[index]);
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(_cardList[index]);
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(_cardList[index]);
|
|
listItem.m_showType.selectedIndex = 1;
|
|
listItem.m_showType.selectedIndex = 1;
|
|
|
|
|
|
// Have card
|
|
// Have card
|
|
if (data != null)
|
|
if (data != null)
|
|
{
|
|
{
|
|
|
|
+ data.index = index;
|
|
|
|
+ data.pageIndex = _ui.m_listRole.selectedIndex;
|
|
listItem.m_unlockMask.visible = false;
|
|
listItem.m_unlockMask.visible = false;
|
|
listItem.m_comCard.m_loaCard.url = ResPathUtil.GetCardIconPath(data.resources[data.resIndex]);
|
|
listItem.m_comCard.m_loaCard.url = ResPathUtil.GetCardIconPath(data.resources[data.resIndex]);
|
|
int starLevelDodge = data.star / 5;
|
|
int starLevelDodge = data.star / 5;
|