|
@@ -13,7 +13,7 @@ namespace GFGGame
|
|
private UI_SuitGuideDetailUI _ui;
|
|
private UI_SuitGuideDetailUI _ui;
|
|
private List<int> _suitIds;
|
|
private List<int> _suitIds;
|
|
private int _suitTypeId;
|
|
private int _suitTypeId;
|
|
-
|
|
|
|
|
|
+ private Dictionary<int, EffectUI> _effectUIDic = new Dictionary<int, EffectUI>();
|
|
public override void Dispose()
|
|
public override void Dispose()
|
|
{
|
|
{
|
|
if (_ui != null)
|
|
if (_ui != null)
|
|
@@ -64,6 +64,13 @@ namespace GFGGame
|
|
protected override void OnHide()
|
|
protected override void OnHide()
|
|
{
|
|
{
|
|
base.OnHide();
|
|
base.OnHide();
|
|
|
|
+
|
|
|
|
+ foreach (var v in _effectUIDic)
|
|
|
|
+ {
|
|
|
|
+ EffectUIPool.Recycle(v.Value);
|
|
|
|
+ }
|
|
|
|
+ _effectUIDic.Clear();
|
|
|
|
+
|
|
DressUpMenuItemDataManager.Clear();
|
|
DressUpMenuItemDataManager.Clear();
|
|
|
|
|
|
// 清空服装过滤界面选择
|
|
// 清空服装过滤界面选择
|
|
@@ -136,6 +143,12 @@ namespace GFGGame
|
|
_ui.m_progress.m_rate.SetVar("rate", "0").FlushVars();
|
|
_ui.m_progress.m_rate.SetVar("rate", "0").FlushVars();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ foreach (var v in _effectUIDic)
|
|
|
|
+ {
|
|
|
|
+ EffectUIPool.Recycle(v.Value);
|
|
|
|
+ }
|
|
|
|
+ _effectUIDic.Clear();
|
|
|
|
+
|
|
_ui.m_listSuit.numItems = _suitIds.Count;
|
|
_ui.m_listSuit.numItems = _suitIds.Count;
|
|
_ui.m_listSuit.scrollPane.ScrollTop();
|
|
_ui.m_listSuit.scrollPane.ScrollTop();
|
|
}
|
|
}
|
|
@@ -148,6 +161,8 @@ namespace GFGGame
|
|
listItem.m_txtName.text = suitCfg.name;
|
|
listItem.m_txtName.text = suitCfg.name;
|
|
listItem.m_loaderPic.url = ResPathUtil.GetFieldGuideIconPath(suitCfg.res);
|
|
listItem.m_loaderPic.url = ResPathUtil.GetFieldGuideIconPath(suitCfg.res);
|
|
listItem.m_c1.SetSelectedIndex(suitCfg.rarity - 1);
|
|
listItem.m_c1.SetSelectedIndex(suitCfg.rarity - 1);
|
|
|
|
+
|
|
|
|
+ _effectUIDic.Add(index, EffectUIPool.CreateEffectUI(listItem.m_holderBg, "ui_KP", "KP_Other_Gold_Frame"));
|
|
RarityIconController.UpdateRarityIcon(listItem.m_rarity, suitId, false, true);
|
|
RarityIconController.UpdateRarityIcon(listItem.m_rarity, suitId, false, true);
|
|
|
|
|
|
listItem.target.data = suitId;
|
|
listItem.target.data = suitId;
|