|
@@ -86,8 +86,11 @@ namespace GFGGame
|
|
|
|
|
|
if (DressUpMenuItemDataManager.isLoading)
|
|
if (DressUpMenuItemDataManager.isLoading)
|
|
{
|
|
{
|
|
- ViewManager.Show<ModalStatusView>("加载中...");
|
|
|
|
|
|
+ //ViewManager.Show<ModalStatusView>("加载中...");
|
|
|
|
+ ViewManager.Show<LoadingView>();
|
|
|
|
+ DressUpConfigUtil.LoadCount = 0;
|
|
DressUpMenuItemDataManager.GetAllDressUpGuideIdListBySubTypeAsync();
|
|
DressUpMenuItemDataManager.GetAllDressUpGuideIdListBySubTypeAsync();
|
|
|
|
+ Timers.inst.StartCoroutine(UpdateLoadProgress());
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -134,6 +137,17 @@ namespace GFGGame
|
|
UI_Button21.ProxyEnd();
|
|
UI_Button21.ProxyEnd();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private IEnumerator UpdateLoadProgress()
|
|
|
|
+ {
|
|
|
|
+ LoadingView.Instance.SetDesc("正在加载服装数据...");
|
|
|
|
+ while (DressUpMenuItemDataManager.isLoading)
|
|
|
|
+ {
|
|
|
|
+ int sum = GlobalCfgArray.globalCfg.ClothingPartsCount;
|
|
|
|
+ LoadingView.Instance.SetProgress(FieldGuideView.ProgressCalculate(DressUpConfigUtil.LoadCount, sum));
|
|
|
|
+ yield return new WaitForEndOfFrame();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
private void RenderListDressUpItem(int index, GObject item)
|
|
private void RenderListDressUpItem(int index, GObject item)
|
|
{
|
|
{
|
|
UI_ListDressUpPartsItem listItem = UI_ListDressUpPartsItem.Proxy(item);
|
|
UI_ListDressUpPartsItem listItem = UI_ListDressUpPartsItem.Proxy(item);
|
|
@@ -345,7 +359,8 @@ namespace GFGGame
|
|
{
|
|
{
|
|
UpdateItemIdListByType1(0);
|
|
UpdateItemIdListByType1(0);
|
|
UpdateItemListUI();
|
|
UpdateItemListUI();
|
|
- ViewManager.Hide<ModalStatusView>();
|
|
|
|
|
|
+ //ViewManager.Hide<ModalStatusView>();
|
|
|
|
+ ViewManager.Hide<LoadingView>();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|