|
@@ -80,16 +80,8 @@ namespace GFGGame
|
|
_ui.m_c1.selectedIndex = 0;
|
|
_ui.m_c1.selectedIndex = 0;
|
|
_ui.m_listType1.scrollPane.SetPercX(0,false);
|
|
_ui.m_listType1.scrollPane.SetPercX(0,false);
|
|
|
|
|
|
- if (first)
|
|
|
|
- {
|
|
|
|
- first = false;
|
|
|
|
- FirstLoad();
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- UpdateItemIdListByType1(0);
|
|
|
|
- UpdateItemListUI();
|
|
|
|
- }
|
|
|
|
|
|
+ UpdateItemIdListByType1(0);
|
|
|
|
+ UpdateItemListUI();
|
|
|
|
|
|
if (_startInAnim)
|
|
if (_startInAnim)
|
|
{
|
|
{
|
|
@@ -106,22 +98,6 @@ namespace GFGGame
|
|
DressUpMenuItemDataManager.Clear();
|
|
DressUpMenuItemDataManager.Clear();
|
|
}
|
|
}
|
|
|
|
|
|
- private void FirstLoad()
|
|
|
|
- {
|
|
|
|
- _lastClickIndex.typeIndex = 1;
|
|
|
|
- _lastClickIndex.index = 0;
|
|
|
|
- ViewManager.Show<ModalStatusView>("加载中...");
|
|
|
|
- Timers.inst.StartCoroutine(DressUpMenuItemDataManager.GetAllDressUpGuideIdListBySubTypeAsync(FirstLoadCompleteAction));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- private void FirstLoadCompleteAction(List<int> l)
|
|
|
|
- {
|
|
|
|
- ViewManager.Hide<ModalStatusView>();
|
|
|
|
- //_itemIdList = DressUpMenuItemDataManager.GetAllDressUpGuideIdListBySubType(0);
|
|
|
|
- _itemIdList = l;
|
|
|
|
- UpdateItemListUI();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 一级菜单的点击
|
|
/// 一级菜单的点击
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -138,6 +114,7 @@ namespace GFGGame
|
|
}
|
|
}
|
|
|
|
|
|
UpdateItemIdListByType1(index);
|
|
UpdateItemIdListByType1(index);
|
|
|
|
+
|
|
UpdateItemListUI();
|
|
UpdateItemListUI();
|
|
_ui.m_Refresh.Play();
|
|
_ui.m_Refresh.Play();
|
|
}
|
|
}
|
|
@@ -275,8 +252,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
for (int i = 0; i < _itemIdList.Count; i++)
|
|
for (int i = 0; i < _itemIdList.Count; i++)
|
|
{
|
|
{
|
|
- ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(_itemIdList[i]);
|
|
|
|
- if (DressUpMenuItemDataManager.CheckHasItem(itemCfg.id))
|
|
|
|
|
|
+ if (DressUpMenuItemDataManager.CheckHasItem(_itemIdList[i]))
|
|
{
|
|
{
|
|
++haveCount;
|
|
++haveCount;
|
|
}
|
|
}
|