public override bool ParseDataFromNDT(TsDataReader dr) { foreach (TsDataReader.Row data in dr) { NEWEXPLORATION_RESET_INFO nEWEXPLORATION_RESET_INFO = new NEWEXPLORATION_RESET_INFO(); nEWEXPLORATION_RESET_INFO.SetData(data); NrTSingleton <NewExplorationManager> .Instance.AddResetInfoData(nEWEXPLORATION_RESET_INFO); } return(true); }
public override void SetComponent() { this.m_btOk = (base.GetControl("Button_ok") as Button); Button expr_1C = this.m_btOk; expr_1C.Click = (EZValueChangedDelegate)Delegate.Combine(expr_1C.Click, new EZValueChangedDelegate(this.OnClickOk)); this.m_btCancel = (base.GetControl("Button_Cancel") as Button); Button expr_59 = this.m_btCancel; expr_59.Click = (EZValueChangedDelegate)Delegate.Combine(expr_59.Click, new EZValueChangedDelegate(this.OnClickCancel)); this.m_lbVipLv = (base.GetControl("LB_Lv") as Label); this.m_dtVIPMark = (base.GetControl("DT_VIPMark") as DrawTexture); this.m_btVip = (base.GetControl("Btn_VIP") as Button); Button expr_C2 = this.m_btVip; expr_C2.Click = (EZValueChangedDelegate)Delegate.Combine(expr_C2.Click, new EZValueChangedDelegate(this.OnClickVip)); this.m_lbResetCount = (base.GetControl("LB_Count") as Label); this.m_lbGemCount = (base.GetControl("LB_SoulGem") as Label); this.m_bResetCount = NrTSingleton <NewExplorationManager> .Instance.GetResetCount(); this.m_i8VipLevel = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.VipLevel; string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2790"), "level", this.m_i8VipLevel }); this.m_lbVipLv.SetText(empty); this.m_dtVIPMark.SetTextureFromBundle(string.Format("UI/etc/{0}", NrTSingleton <NrVipSubInfoManager> .Instance.GetIconPath(this.m_i8VipLevel))); this.m_bMaxResetCount = NrTSingleton <NewExplorationManager> .Instance.GetMaxResetCount(); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3482"), "count1", (int)this.m_bResetCount, "count2", this.m_bMaxResetCount }); this.m_lbResetCount.SetText(empty); int num = 0; this.m_ResetInfoData = NrTSingleton <NewExplorationManager> .Instance.GetResetInfoData((sbyte)((int)this.m_bResetCount + 1)); if (this.m_ResetInfoData != null) { num = this.m_ResetInfoData.i32ItemNum; this.m_btOk.enabled = false; } this.m_lbGemCount.SetText(num.ToString()); }
public void AddResetInfoData(NEWEXPLORATION_RESET_INFO data) { this.m_listResetInfoData[data.i16CountIndex] = data; }