public static NewGuildConstant_Manager GetInstance() { if (NewGuildConstant_Manager.Instance == null) { NewGuildConstant_Manager.Instance = new NewGuildConstant_Manager(); } return(NewGuildConstant_Manager.Instance); }
public void RefreshInfo() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; this.m_lbMyGold.SetText(ANNUALIZED.Convert(kMyCharInfo.m_Money)); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1302"), "count", NrTSingleton <NewGuildManager> .Instance.GetAgitLevel() }); this.m_lbLevel.SetText(this.m_strText); short agitLevel = NrTSingleton <NewGuildManager> .Instance.GetAgitLevel(); AgitInfoData agitData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitData(agitLevel.ToString()); if (agitData != null) { long num = NrTSingleton <NewGuildManager> .Instance.GetAgitExp(); float num2 = (float)num / (float)agitData.i64Exp; if (num2 >= 1f) { num2 = 1f; num = agitData.i64Exp; this.m_btLevelUp.controlIsEnabled = true; if (this.m_goLevelUp != null) { this.m_goLevelUp.SetActive(true); } } else { this.m_btLevelUp.controlIsEnabled = false; if (this.m_goLevelUp != null) { this.m_goLevelUp.SetActive(false); } } this.m_dtExp.SetSize(this.m_fExpWidth * num2, this.m_dtExp.GetSize().y); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("603"), "count1", num, "count2", agitData.i64Exp }); NEWGUILD_CONSTANT data = NewGuildConstant_Manager.GetInstance().GetData(eNEWGUILD_CONSTANT.eNEWGUILD_CONSTANT_AGIT_MAX_LEVEL); if ((long)agitLevel >= data.i64Value) { this.m_lbExp1.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("286")); } else { this.m_lbExp1.SetText(this.m_strText); } } else { this.m_dtExp.width = 0f; this.m_lbExp1.SetText(string.Empty); this.m_btLevelUp.controlIsEnabled = false; if (this.m_goLevelUp != null) { this.m_goLevelUp.SetActive(false); } } NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3258"), "guildgold", ANNUALIZED.Convert(NrTSingleton <NewGuildManager> .Instance.GetFund()) }); this.m_lbGuildFund.SetText(this.m_strText); int agitNPCSubDataCount = NrTSingleton <NewGuildManager> .Instance.GetAgitNPCSubDataCount(); this.m_nlbNPCList.Clear(); for (int i = 0; i < agitNPCSubDataCount; i++) { AGIT_NPC_SUB_DATA agitNPCSubData = NrTSingleton <NewGuildManager> .Instance.GetAgitNPCSubData(i); if (agitNPCSubData != null) { this.MakeNPCItem(agitNPCSubData); } } this.m_nlbNPCList.RepositionItems(); if (agitData != null) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2688"), "count1", agitNPCSubDataCount, "count2", agitData.i8NPCNum }); this.m_lbNPCInfo.SetText(this.m_strText); } else { this.m_lbNPCInfo.SetText(string.Empty); } this.m_lbMonsterInfo.SetText(string.Empty); }