public void Update_Notice() { this.m_dtSkillLevelNotice.Visible = false; this.m_dtTicketNotice.Visible = false; this.m_lbTicketCount.Visible = false; NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (charPersonInfo != null && 0 < charPersonInfo.GetUpgradeBattleSkillNum()) { this.m_dtSkillLevelNotice.Visible = true; } int num = NkUserInventory.GetInstance().GetFunctionItemNum(eITEM_SUPPLY_FUNCTION.SUPPLY_GETSOLDIER); if (0 < num) { if (99 < num) { num = 99; } this.m_dtTicketNotice.Visible = true; this.m_lbTicketCount.Visible = true; this.m_lbTicketCount.SetText(NrTSingleton <CTextParser> .Instance.GetTextColor("1002") + num.ToString()); } }
public override bool CheckGameGuideOnce() { NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); return(charPersonInfo != null && 0 < charPersonInfo.GetUpgradeBattleSkillNum()); }
private ListItem GetListItem(BookmarkDlg.TYPE type) { ListItem listItem = new ListItem(); switch (type) { case BookmarkDlg.TYPE.HERO: { NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (charPersonInfo != null) { listItem.SetColumnGUIContent(0, string.Empty, "Main_B_CharInfoBM", type, new EZValueChangedDelegate(this.ClickList)); listItem.SetColumnGUIContent(1, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1490")); bool flag = false; if (0 < charPersonInfo.GetUpgradeBattleSkillNum()) { flag = true; } if (flag) { listItem.SetColumnGUIContent(2, string.Empty, "Win_I_Notice01"); listItem.SetColumnGUIContent(3, string.Empty, "Win_I_Notice04"); } listItem.Key = type; } break; } case BookmarkDlg.TYPE.ADVENTURE: { listItem.SetColumnGUIContent(0, string.Empty, "Main_B_WorldMapBM", type, new EZValueChangedDelegate(this.ClickList)); listItem.SetColumnGUIContent(1, string.Format("{0}{1}", NrTSingleton <CTextParser> .Instance.GetTextColor("2002"), NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3459"))); bool flag2 = false; if (NrTSingleton <NkAdventureManager> .Instance.IsAcceptQuest()) { flag2 = true; } if (NrTSingleton <NrTable_BurnningEvent_Manager> .Instance.IsGet_DailyDungeonReward()) { flag2 = true; } if (flag2) { listItem.SetColumnGUIContent(2, string.Empty, "Win_I_Notice01"); listItem.SetColumnGUIContent(3, string.Empty, "Win_I_Notice04"); } listItem.Key = type; break; } case BookmarkDlg.TYPE.BATTLE: { listItem.SetColumnGUIContent(0, string.Empty, "Main_B_InfiBattleBM", type, new EZValueChangedDelegate(this.ClickList)); listItem.SetColumnGUIContent(1, string.Format("{0}{1}", NrTSingleton <CTextParser> .Instance.GetTextColor("2002"), NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3460"))); bool flag3 = false; if (NrTSingleton <MythRaidManager> .Instance.CanGetReward) { flag3 = true; } NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo != null) { if (myCharInfo.InfiBattleReward == 0) { flag3 = true; } if (myCharInfo.ColosseumOldRank > 0) { flag3 = true; } } if (NrTSingleton <NewExplorationManager> .Instance.CanGetTreasureData() != null || NrTSingleton <NewExplorationManager> .Instance.CanGetEndReward()) { flag3 = true; } if (flag3) { listItem.SetColumnGUIContent(2, string.Empty, "Win_I_Notice01"); listItem.SetColumnGUIContent(3, string.Empty, "Win_I_Notice04"); } listItem.Key = type; break; } case BookmarkDlg.TYPE.NEWGUILD: listItem.SetColumnGUIContent(0, string.Empty, "Main_B_GuildBM", BookmarkDlg.TYPE.NEWGUILD, new EZValueChangedDelegate(this.ClickNewGuild)); listItem.SetColumnGUIContent(1, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("17")); if (0L < NrTSingleton <NewGuildManager> .Instance.GetGuildID()) { int num = NrTSingleton <NewGuildManager> .Instance.GetReadyApplicantCount(); bool flag4 = false; bool guildBossRewardInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetGuildBossRewardInfo(); if (guildBossRewardInfo) { flag4 = true; } bool guildBossCheck = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetGuildBossCheck(); if (guildBossCheck) { flag4 = true; } bool flag5 = NrTSingleton <NewGuildManager> .Instance.CanGetGoldenEggReward(); if (flag5) { flag4 = true; } if (0 < num || flag4) { if (99 < num) { num = 99; } if (0 < num) { listItem.SetColumnGUIContent(2, string.Empty, "Win_I_Notice01"); listItem.SetColumnStr(3, NrTSingleton <CTextParser> .Instance.GetTextColor("1002") + num.ToString()); } else if (flag4) { listItem.SetColumnGUIContent(2, string.Empty, "Win_I_Notice04"); } } else if (NrTSingleton <GuildWarManager> .Instance.CanGetGuildWarReward()) { listItem.SetColumnGUIContent(2, string.Empty, "Win_I_Notice04"); } } listItem.Key = type; break; case BookmarkDlg.TYPE.INVEN: listItem.SetColumnGUIContent(0, string.Empty, "Main_B_InventoryBM", type, new EZValueChangedDelegate(this.ClickList)); listItem.SetColumnGUIContent(1, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1771")); listItem.Key = type; break; case BookmarkDlg.TYPE.COMMUNITY: listItem.SetColumnGUIContent(0, string.Empty, "Main_B_FriendBM", type, new EZValueChangedDelegate(this.ClickList)); listItem.SetColumnGUIContent(1, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("210")); if (0 < NrTSingleton <NkCharManager> .Instance.AddExpHelpsolCount()) { listItem.SetColumnGUIContent(2, string.Empty, "Win_I_Notice01"); listItem.SetColumnStr(3, NrTSingleton <CTextParser> .Instance.GetTextColor("1002") + string.Format("{0}", NrTSingleton <NkCharManager> .Instance.AddExpHelpsolCount())); } listItem.Key = type; break; case BookmarkDlg.TYPE.HEROBATTLE: if (NrTSingleton <ContentsLimitManager> .Instance.IsHeroBattle()) { listItem.SetColumnGUIContent(0, string.Empty, "Main_B_InfiBattleBM", type, new EZValueChangedDelegate(this.ClickList)); listItem.SetColumnGUIContent(1, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("43")); listItem.Key = type; } else { listItem = null; } break; case BookmarkDlg.TYPE.EXPLORATION: if (NrTSingleton <ContentsLimitManager> .Instance.IsExploration()) { listItem.SetColumnGUIContent(0, string.Empty, "Main_B_ExploreBM", type, new EZValueChangedDelegate(this.ClickList)); listItem.SetColumnGUIContent(1, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("846")); listItem.Key = type; } else { listItem = null; } break; default: listItem = null; break; } return(listItem); }