소스 검색

背包,恭喜获得,服装分解添加品质框

huangxiaoyue 2 년 전
부모
커밋
a1dc56f69b

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Bag/BagView.cs

@@ -101,6 +101,7 @@ namespace GFGGame
             //item.m_txtCount.SetVar("count", itemData.num.ToString()).FlushVars();
             item.m_txtCount.text = itemData.num.ToString();
             item.target.data = itemCfg;
+            item.m_QualityType.selectedIndex = itemCfg.rarity - 1;
             //是礼包就加入红点
             if ((itemCfg.itemType == ConstItemType.USEABLE &&
                  itemCfg.subType == ConstItemSubType.USEABLE_GIFT_BAG_SELECTABLE) ||

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/ClothingDecompose/ClothingDecomposeView.cs

@@ -116,6 +116,7 @@ namespace GFGGame
             long itemHasCount = DecomposeDataManager.Instance.ItemCanDecomposeCount(itemCfg.id);
             long itemCount = _decomposeData.ContainsKey(_clothingDatas[index]) ? _decomposeData[_clothingDatas[index]] : 0;
             item.m_txtDecomHasCount.text ="/" + itemHasCount;
+            item.m_QualityType.selectedIndex = itemCfg.rarity - 1;
             item.m_txtDecomCount.text = itemCount.ToString();
 
             if (itemCount > 0)

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/RewardView.cs

@@ -156,6 +156,7 @@ namespace GFGGame
             // 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_loaIcon.url = ResPathUtil.GetIconPath(iconRes, ext);
+            item.m_QualityType.selectedIndex = itemCfg.rarity - 1;
 
             item.m_imgOnceBonus.visible = _listItemDatas[index].isOnceBonus;
             //特效("ui_ck", "ui_ck_zl");