瀏覽代碼

获得奖励的物品根据品质显示框

zhangyuqian 1 年之前
父節點
當前提交
a588828ac3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/RewardView.cs

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

@@ -158,7 +158,7 @@ namespace GFGGame
                 iconRes = itemCfg.res;
                 id = itemCfg.id;
                 isSuit = false;
-                if (itemCfg.itemType == ConstItemType.DRESS_UP)
+                //if (itemCfg.itemType == ConstItemType.DRESS_UP)
                     rarity = itemCfg.rarity;
             }
 
@@ -166,7 +166,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);
-            if(rarity > 0)
+            if (rarity > 0)
                 item.m_QualityType.selectedIndex = rarity - 1;
 
             RarityIconController.UpdateRarityIcon(item.m_loaRarity, id, false, isSuit);