public static void IncreaseProgress(float cnt) { if (cnt <= 0f || NrLoadPageScreen._maxLoadCnt <= 0f) { return; } NrLoadPageScreen._curLoadCnt += cnt; if (NrLoadPageScreen._curLoadCnt > NrLoadPageScreen._maxLoadCnt) { NrLoadPageScreen._maxLoadCnt = NrLoadPageScreen._curLoadCnt; } float progressValue = NrLoadPageScreen._mainStepAccum + NrLoadPageScreen._curLoadCnt / NrLoadPageScreen._maxLoadCnt * NrLoadPageScreen._mainStepRatio; if (!NrLoadPageScreen.CustomLoadingProgress) { NrLoadPageScreen.SetProgressValue(progressValue); } }
public static void ShowHideLoadingImg(bool bShow) { if (bShow == NrLoadPageScreen.IsShow()) { return; } TsLog.Log("LSC === ShowHideLodingImg({0})", new object[] { bShow }); if (bShow) { NrLoadPageScreen.SetLogicProgress(0f); NrLoadPageScreen.SetProgressValue(0f); } else { NrLoadPageScreen._IsCaptureLock = false; } NewLoaingDlg newLoaingDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.DLG_LOADINGPAGE) as NewLoaingDlg; if (newLoaingDlg != null) { if (NrTSingleton <NrGlobalReference> .Instance.IsEnableLog) { TsLog.Log(string.Concat(new object[] { "Profile Frame[", Time.frameCount, ":", Time.fixedTime, "] ShowHideLodingImg :", bShow }), new object[0]); } newLoaingDlg.SetShowHide(bShow); } StageWorld.s_bIsShowRegionName = !bShow; }