public void SetIndunInfo(float fStayTime, int nUserNum) { INDUN_INFO castedTarget = NrTSingleton <NkIndunManager> .Instance.IndunInfo.CastedTarget; if (castedTarget == null && !castedTarget.m_bShowUI) { this.Close(); return; } this.m_bSetBackTexture = false; this.m_lbTitle.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromMap(castedTarget.szTextKey)); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1583"), "rewardgold", castedTarget.m_nRewardGold.ToString() }); this.m_lbRewardGold.SetText(empty); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1600"), "usernum", nUserNum.ToString(), "maxuser", castedTarget.m_nMaxUser.ToString() }); this.m_lbJoinPeopleNum.SetText(empty); int num = (int)(castedTarget.m_fPlayTime / 3600f); int num2 = (int)((castedTarget.m_fPlayTime - (float)num * 3600f) / 60f); int num3 = (int)((castedTarget.m_fPlayTime - (float)num * 3600f - (float)num2 * 60f) % 60f); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1527"), "hour", num.ToString(), "min", num2.ToString(), "sec", num3.ToString() }); this.m_lbLimitLineTime.SetText(empty); this.m_fStartTime = Time.time; this.m_fEndTime = this.m_fStartTime + fStayTime; if (!this.m_bSetBackTexture && NrTSingleton <NkIndunManager> .Instance.LoadUIBackTexture) { this.m_dtBackTexture.SetTexture(NrTSingleton <NkIndunManager> .Instance.IndunUIBackTexture); this.m_bSetBackTexture = true; } if (!NrLoadPageScreen.IsShow()) { this.Show(); } }
public override void Update() { if (Mathf.Abs(Time.time - this.m_fUpdateTime) < 1f) { return; } if (NrLoadPageScreen.IsShow()) { base.AllHideLayer(); this.m_fStartTime = Time.time; return; } float num = this.m_fEndTime - Time.time; int num2 = (int)(num / 3600f); int num3 = (int)((num - (float)num2 * 3600f) / 60f); int num4 = (int)((num - (float)num2 * 3600f - (float)num3 * 60f) % 60f); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1527"), "hour", num2.ToString(), "min", num3.ToString(), "sec", num4.ToString() }); if (this.m_eShowMode == IndunTime_DLG.eSHOW_MODE.eSHOW_MODE_NORMAL) { if (Mathf.Abs(Time.time - this.m_fStartTime) < this.m_fChangeTime) { base.ShowLayer(1); this.m_lbTime.SetText(empty); } else { base.ShowLayer(2); base.SetLocation(GUICamera.width / 2f - base.GetSize().x / 2f, this.m_fTopY); this.m_eShowMode = IndunTime_DLG.eSHOW_MODE.eSHOW_MODE_SMALL; this.m_bxStayTime.SetText(empty); } } else if (this.m_eShowMode == IndunTime_DLG.eSHOW_MODE.eSHOW_MODE_SMALL) { base.ShowLayer(2); this.m_bxStayTime.SetText(empty); } this.m_fUpdateTime = Time.time; }
public override void Update() { if (Mathf.Abs(Time.time - this.m_fUpdateTime) < 1f) { return; } if (NrLoadPageScreen.IsShow()) { base.AllHideLayer(); this.m_fStartTime = Time.time; return; } if (!this.visible) { this.Show(); } float num = this.m_fEndTime - Time.time; int num2 = (int)(num / 3600f); int num3 = (int)((num - (float)num2 * 3600f) / 60f); int num4 = (int)((num - (float)num2 * 3600f - (float)num3 * 60f) % 60f); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1527"), "hour", num2.ToString(), "min", num3.ToString(), "sec", num4.ToString() }); this.m_lbProgressTimeNum.SetText(empty); this.m_fUpdateTime = Time.time; if (!this.m_bSetBackTexture && NrTSingleton <NkIndunManager> .Instance.LoadUIBackTexture) { this.m_dtBackTexture.SetTexture(NrTSingleton <NkIndunManager> .Instance.IndunUIBackTexture); this.m_bSetBackTexture = true; } }
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; }