|
@@ -136,6 +136,9 @@ namespace GFGGame
|
|
string name = "";
|
|
string name = "";
|
|
string iconRes = "";
|
|
string iconRes = "";
|
|
string ext = "png";
|
|
string ext = "png";
|
|
|
|
+ int rarity = 0;
|
|
|
|
+ int id = 0;
|
|
|
|
+ bool isSuit = false;
|
|
|
|
|
|
SuitCfg suitCfg = SuitCfgArray.Instance.GetCfg(_listItemDatas[index].id);
|
|
SuitCfg suitCfg = SuitCfgArray.Instance.GetCfg(_listItemDatas[index].id);
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(_listItemDatas[index].id);
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(_listItemDatas[index].id);
|
|
@@ -144,19 +147,29 @@ namespace GFGGame
|
|
{
|
|
{
|
|
name = suitCfg.name;
|
|
name = suitCfg.name;
|
|
iconRes = suitCfg.res;
|
|
iconRes = suitCfg.res;
|
|
|
|
+ rarity = suitCfg.rarity;
|
|
|
|
+ id = suitCfg.id;
|
|
|
|
+ isSuit = true;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
name = itemCfg.name;
|
|
name = itemCfg.name;
|
|
ext = ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType, true);
|
|
ext = ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType, true);
|
|
iconRes = itemCfg.res;
|
|
iconRes = itemCfg.res;
|
|
|
|
+ id = itemCfg.id;
|
|
|
|
+ isSuit = false;
|
|
|
|
+ if (itemCfg.itemType == ConstItemType.DRESS_UP)
|
|
|
|
+ rarity = itemCfg.rarity;
|
|
}
|
|
}
|
|
|
|
|
|
item.m_txtName.text = name;
|
|
item.m_txtName.text = name;
|
|
// item.m_txtCount.text = _listItemDatas[index].num==1?"": string.Format("{0}", _listItemDatas[index].num);
|
|
// item.m_txtCount.text = _listItemDatas[index].num==1?"": string.Format("{0}", _listItemDatas[index].num);
|
|
item.m_txtCount.text = string.Format("{0}", _listItemDatas[index].num);
|
|
item.m_txtCount.text = string.Format("{0}", _listItemDatas[index].num);
|
|
item.m_loaIcon.url = ResPathUtil.GetIconPath(iconRes, ext);
|
|
item.m_loaIcon.url = ResPathUtil.GetIconPath(iconRes, ext);
|
|
- item.m_QualityType.selectedIndex = itemCfg.rarity - 1;
|
|
|
|
|
|
+ if(rarity > 0)
|
|
|
|
+ item.m_QualityType.selectedIndex = rarity - 1;
|
|
|
|
+
|
|
|
|
+ RarityIconController.UpdateRarityIcon(item.m_loaRarity, id, false, isSuit);
|
|
|
|
|
|
item.m_imgOnceBonus.visible = _listItemDatas[index].isOnceBonus;
|
|
item.m_imgOnceBonus.visible = _listItemDatas[index].isOnceBonus;
|
|
//特效("ui_ck", "ui_ck_zl");
|
|
//特效("ui_ck", "ui_ck_zl");
|