|
@@ -86,11 +86,11 @@ namespace GFGGame
|
|
|
|
|
|
if (DressUpMenuItemDataManager.isLoading)
|
|
|
{
|
|
|
- //ViewManager.Show<ModalStatusView>("加载中...");
|
|
|
ViewManager.Show<LoadingView>();
|
|
|
+ LoadingView.Instance.SetDesc("正在加载服装数据...");
|
|
|
DressUpConfigUtil.LoadCount = 0;
|
|
|
- DressUpMenuItemDataManager.GetAllDressUpGuideIdListBySubTypeAsync();
|
|
|
Timers.inst.StartCoroutine(UpdateLoadProgress());
|
|
|
+ DressUpMenuItemDataManager.GetAllDressUpGuideIdListBySubTypeAsync();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -139,13 +139,14 @@ namespace GFGGame
|
|
|
|
|
|
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();
|
|
|
}
|
|
|
+
|
|
|
+ ViewManager.Hide<LoadingView>();
|
|
|
}
|
|
|
|
|
|
private void RenderListDressUpItem(int index, GObject item)
|
|
@@ -362,8 +363,6 @@ namespace GFGGame
|
|
|
{
|
|
|
UpdateItemIdListByType1(0);
|
|
|
UpdateItemListUI();
|
|
|
- //ViewManager.Hide<ModalStatusView>();
|
|
|
- ViewManager.Hide<LoadingView>();
|
|
|
}
|
|
|
}
|
|
|
}
|