|
@@ -86,17 +86,18 @@ namespace GFGGame
|
|
|
protected override void OnShown()
|
|
|
{
|
|
|
base.OnShown();
|
|
|
+ DecomposeDataManager.Instance.TidyDecomposeData();
|
|
|
_ui.m_c1.selectedIndex = 0;
|
|
|
_ui.m_listTab.selectedIndex = 0;
|
|
|
|
|
|
_valueBarController.OnShown();
|
|
|
// _valueBarController.Controller(6);
|
|
|
OnClickBtnRarity(ConstDressRarity.Rarity_FANPIN);
|
|
|
- if (GuideDataManager.currentGuideId == GuideCfgArray.Instance.GetCfg(ConstGuideId.CLOTHING_DECOMPOSE).id)
|
|
|
- {
|
|
|
- _ui.m_listTab.selectedIndex = 0;
|
|
|
- OnClickBtnRarity(ConstDressRarity.Rarity_FANPIN);
|
|
|
- }
|
|
|
+ //if (GuideDataManager.currentGuideId == GuideCfgArray.Instance.GetCfg(ConstGuideId.CLOTHING_DECOMPOSE).id)
|
|
|
+ //{
|
|
|
+ // _ui.m_listTab.selectedIndex = 0;
|
|
|
+ // OnClickBtnRarity(ConstDressRarity.Rarity_FANPIN);
|
|
|
+ //}
|
|
|
Timers.inst.AddUpdate(CheckGuide);
|
|
|
}
|
|
|
|
|
@@ -110,7 +111,7 @@ namespace GFGGame
|
|
|
private void OnClickBtnRarity(int rarity)
|
|
|
{
|
|
|
_curRarity = rarity;
|
|
|
- if(_ui.m_c1.selectedIndex == 0)
|
|
|
+ if (_ui.m_c1.selectedIndex == 0)
|
|
|
_clothingDatas = DecomposeDataManager.Instance.GetDecomposeDataByRarity(rarity);
|
|
|
else if (_ui.m_c1.selectedIndex == 1)
|
|
|
_clothingDatas = DecomposeDataManager.Instance.GetDecomposeMaterialByRarity(rarity);
|
|
@@ -126,6 +127,7 @@ namespace GFGGame
|
|
|
private void ListItemRander(int index, GObject obj)
|
|
|
{
|
|
|
UI_ComItem item = UI_ComItem.Proxy(obj);
|
|
|
+
|
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(_clothingDatas[index]);
|
|
|
RarityIconController.UpdateRarityIcon(item.m_loaRarity, itemCfg.id, false);
|
|
|
string ext = ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType, true);
|