Ejemplo n.º 1
0
 public void ShowWhisperDlg()
 {
     if (this.RoomList.Count > 0 && !this.m_bWindowClose)
     {
         NoticeIconDlg.SetIcon(ICON_TYPE.WHISPER, true);
     }
 }
Ejemplo n.º 2
0
    public void DelRoom(int roomunique)
    {
        if (!this.RoomList.ContainsKey(roomunique))
        {
            return;
        }
        this.RoomList.Remove(roomunique);
        if (this.RoomList.Count == 0)
        {
            NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.WHISPER_DLG);

            NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.WHISPER_ROOMLIST_DLG);

            NoticeIconDlg.SetIcon(ICON_TYPE.WHISPER, false);
            NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.WHISPER_COLOR_DLG);
        }
        else
        {
            using (Dictionary <int, WhisperRoom> .ValueCollection.Enumerator enumerator = this.RoomList.Values.GetEnumerator())
            {
                if (enumerator.MoveNext())
                {
                    WhisperRoom current = enumerator.Current;
                    this.ChangeRoom(current.Room);
                }
            }
        }
        GS_CHAT_EXIT_REQ gS_CHAT_EXIT_REQ = new GS_CHAT_EXIT_REQ();

        gS_CHAT_EXIT_REQ.nRoomUnique = roomunique;
        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_CHAT_EXIT_REQ, gS_CHAT_EXIT_REQ);
    }
Ejemplo n.º 3
0
    public static void SetIcon(ICON_TYPE type, bool bOn)
    {
        if (Scene.IsCurScene(Scene.Type.WORLD))
        {
            NoticeIconDlg noticeIconDlg = (NoticeIconDlg)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MAIN_UI_ICON);

            if (noticeIconDlg != null)
            {
                if (type == ICON_TYPE.ATTEND_REWARD)
                {
                    noticeIconDlg.SetIconOnOff(type, false);
                    noticeIconDlg.SetIconStatus(type, false);
                }
                else
                {
                    noticeIconDlg.SetIconOnOff(type, bOn);
                    noticeIconDlg.SetIconStatus(type, bOn);
                }
                if (!NrTSingleton <NkQuestManager> .Instance.IsCompletedFirstQuest())
                {
                    noticeIconDlg.Hide();
                }
            }
        }
        else if (bOn)
        {
            NoticeIconDlg.AddTempNotice(type);
        }
    }
Ejemplo n.º 4
0
    public void ShowTempNotice()
    {
        if (!this.IsTempNotice())
        {
            return;
        }
        NoticeIconDlg noticeIconDlg = (NoticeIconDlg)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MAIN_UI_ICON);

        for (int i = 0; i < 5; i++)
        {
            if (NoticeIconDlg.tempicontype[i] >= 0)
            {
                if (noticeIconDlg != null)
                {
                    noticeIconDlg.SetIconOnOff((ICON_TYPE)NoticeIconDlg.tempicontype[i], true);
                    noticeIconDlg.SetIconStatus((ICON_TYPE)NoticeIconDlg.tempicontype[i], true);
                    if (!NrTSingleton <NkQuestManager> .Instance.IsCompletedFirstQuest())
                    {
                        noticeIconDlg.Hide();
                    }
                }
            }
        }
        this.InitTempNotice();
    }
Ejemplo n.º 5
0
    public void SetDailyAttendNotify()
    {
        NrMyCharInfo  kMyCharInfo   = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
        NoticeIconDlg noticeIconDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MAIN_UI_ICON) as NoticeIconDlg;

        if (noticeIconDlg != null && kMyCharInfo != null && NrTSingleton <ContentsLimitManager> .Instance.IsAttend())
        {
            return;
        }
    }
Ejemplo n.º 6
0
    private void ExecuteGuide()
    {
        NoticeIconDlg.SetIcon(ICON_TYPE.GAMEGUIDE, false);
        NrTSingleton <FormsManager> .Instance.Main_UI_Show(FormsManager.eMAIN_UI_VISIBLE_MODE.COMMON);

        NrTSingleton <NkCharManager> .Instance.ShowHideAll(true, true, true);

        if (null != this.m_WorldCamera)
        {
            this.m_WorldCamera.RestoreCameraInfo();
        }
        NrTSingleton <FormsManager> .Instance.AddReserveDeleteForm(base.WindowID);
    }
Ejemplo n.º 7
0
    public void RemoveGuide(GameGuideType Type)
    {
        if (this.m_kCurrentGameGuideInfo == null)
        {
            return;
        }
        if (!NrTSingleton <GameGuideManager> .Instance.ExecuteGuide && this.m_kCurrentGameGuideInfo.m_eType == Type)
        {
            NrTSingleton <GameGuideManager> .Instance.InitGameGuide();

            NoticeIconDlg.SetIcon(ICON_TYPE.GAMEGUIDE, false);
            NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.BUBBLEGAMEGUIDE_DLG);
        }
    }
Ejemplo n.º 8
0
    public void UpdatePosition()
    {
        if (!this.battleType)
        {
            Vector3       zero          = Vector3.zero;
            NoticeIconDlg noticeIconDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MAIN_UI_ICON) as NoticeIconDlg;

            if (noticeIconDlg != null)
            {
                if (TsPlatform.IsWeb)
                {
                    zero.x = noticeIconDlg.GetLocationX() + noticeIconDlg.GetButtonLocationX(ICON_TYPE.GAMEGUIDE) * 0.7f - this.width;
                }
                else
                {
                    zero.x = noticeIconDlg.GetLocationX() + noticeIconDlg.GetButtonLocationX(ICON_TYPE.GAMEGUIDE) - this.width;
                }
                zero.y = noticeIconDlg.GetLocationY() - noticeIconDlg.GetSizeY() - 25f;
            }
            base.SetLocation(zero.x, zero.y, noticeIconDlg.GetLocation().z - 1f);
        }
    }
Ejemplo n.º 9
0
 public override void CloseForm(IUIObject obj)
 {
     this.Hide();
     NrTSingleton <WhisperManager> .Instance.WindowClose = true;
     NoticeIconDlg.SetIcon(ICON_TYPE.WHISPER, false);
 }
Ejemplo n.º 10
0
    public void SetList(GS_MINE_BATTLE_RESULT_LIST_ACK _ACK, NkDeserializePacket kDeserializePacket)
    {
        if (_ACK.i16Page != 1 && _ACK.ui8Count == 0)
        {
            return;
        }
        if (_ACK.i16Page == 1 && _ACK.ui8Count == 0)
        {
            NoticeIconDlg.SetIcon(ICON_TYPE.MINE_RECORED, false);
        }
        string empty = string.Empty;

        this.m_Box_Page.Text = _ACK.i16Page.ToString();
        this.m_nlbRecordList.Clear();
        this.m_page = _ACK.i16Page;
        for (int i = 0; i < (int)_ACK.ui8Count; i++)
        {
            NewListItem             newListItem = new NewListItem(this.m_nlbRecordList.ColumnNum, true, string.Empty);
            MINE_BATTLE_RESULT_INFO packet      = kDeserializePacket.GetPacket <MINE_BATTLE_RESULT_INFO>();
            if (i == 0)
            {
                NrTSingleton <MineManager> .Instance.m_i64FirstLegionActionID_By_List = packet.i64LegionActionID;
            }
            NrTSingleton <MineManager> .Instance.m_i64LastLegionActionID_By_List = packet.i64LegionActionID;
            newListItem.Data = packet;
            if (packet.i64BattleTime >= 0L)
            {
                DateTime dueDate = PublicMethod.GetDueDate(packet.i64BattleTime);
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                {
                    NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("602"),
                    "year",
                    dueDate.Year,
                    "month",
                    dueDate.Month,
                    "day",
                    dueDate.Day
                });

                newListItem.SetListItemData(1, empty, null, null, null);
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                {
                    NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1527"),
                    "hour",
                    string.Format("{0:00}", dueDate.Hour),
                    "min",
                    string.Format("{0:00}", dueDate.Minute),
                    "sec",
                    string.Format("{0:00}", dueDate.Second)
                });

                newListItem.SetListItemData(2, empty, null, null, null);
            }
            newListItem.SetListItemData(3, this.GetListText(packet), null, null, null);
            newListItem.SetListItemData(4, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1088"), packet, new EZValueChangedDelegate(this.OnClickBattleResult), null);
            if (packet.i32ItemUnique > 0 && packet.i32ItemNum != 0)
            {
                newListItem.SetListItemData(6, new ITEM
                {
                    m_nItemUnique = packet.i32ItemUnique,
                    m_nItemNum    = packet.i32ItemNum
                }, null, null, null);
            }
            else
            {
                UIBaseInfoLoader loader = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary("Win_I_Attack");

                newListItem.SetListItemData(6, loader, null, null, null);
            }
            this.m_nlbRecordList.Add(newListItem);
        }
        this.m_nlbRecordList.RepositionItems();
    }
Ejemplo n.º 11
0
    public void ChangeScene()
    {
        if (Scene.CurScene == Scene.Type.WORLD)
        {
            if (NrTSingleton <NkQuestManager> .Instance.IsCompletedFirstQuest())
            {
                BookmarkDlg bookmarkDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BOOKMARK_DLG) as BookmarkDlg;

                if (bookmarkDlg == null)
                {
                    bookmarkDlg = (NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.BOOKMARK_DLG) as BookmarkDlg);
                }
                else
                {
                    bookmarkDlg.SetBookmarkInfo();
                }
                if (bookmarkDlg != null)
                {
                    bookmarkDlg.Show();
                    bookmarkDlg.CheckHideBookmark();
                }
                this.m_kForm = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MENUICON_DLG);

                if (this.m_kForm != null)
                {
                    this.m_kForm.Show();
                }
                NoticeIconDlg noticeIconDlg = (NoticeIconDlg)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MAIN_UI_ICON);

                if (noticeIconDlg != null)
                {
                    noticeIconDlg.ShowTempNotice();
                    noticeIconDlg.Show();
                }
                this.m_kForm = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MYCHARINFO_DLG);

                if (this.m_kForm != null)
                {
                    this.m_kForm.Show();
                }
                if (NrTSingleton <NkClientLogic> .Instance.GetAuthPlatformType() == 6)
                {
                    this.m_kForm = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.GOOGLEPLAY_DLG);

                    if (this.m_kForm != null)
                    {
                        this.m_kForm.Show();
                    }
                }
                else if (StageLoginMobile.m_bConnectGameCenter)
                {
                    this.m_kForm = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.GOOGLEPLAY_DLG);

                    if (this.m_kForm != null)
                    {
                        this.m_kForm.Show();
                    }
                }
                this.m_kForm = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.CHAT_MAIN_DLG);

                if (this.m_kForm != null)
                {
                    this.m_kForm.Show();
                }
                if (NrTSingleton <MapManager> .Instance.GetMapNameAndOST() != string.Empty)
                {
                    ChatNoticeDlg chatNoticeDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.CHAT_NOTICE_DLG) as ChatNoticeDlg;

                    if (chatNoticeDlg != null)
                    {
                        chatNoticeDlg.AddText(NrTSingleton <MapManager> .Instance.GetMapNameAndOST());
                    }
                }
                NrTSingleton <WhisperManager> .Instance.ShowWhisperDlg();

                if (TsPlatform.IsMobile)
                {
                    this.m_kForm = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.JOYSTICK_DLG);

                    if (this.m_kForm != null)
                    {
                        this.m_kForm.Show();
                    }
                }
                NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
                if (kMyCharInfo.ColosseumMatching)
                {
                    this.m_kForm = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.COLOSSEUMNOTICE_DLG);

                    if (this.m_kForm != null)
                    {
                        this.m_kForm.Show();
                    }
                }
                RightMenuQuestUI rightMenuQuestUI = (RightMenuQuestUI)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MAIN_QUEST);

                if (rightMenuQuestUI != null)
                {
                    rightMenuQuestUI.QuestUpdate();
                    rightMenuQuestUI.Show();
                }
                NrTSingleton <NkQuestManager> .Instance.ShowMsg();

                if (StageWorld.BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_ATTACK_MAKEUP || StageWorld.BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_DEFENCE_MAKEUP || StageWorld.BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_ATTACK_INFIBATTLE_MAKEUP || StageWorld.BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_DEFENSE_INFIBATTLE_MAKEUP)
                {
                    if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.PLUNDERMAIN_DLG))
                    {
                        PlunderMainDlg plunderMainDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.PLUNDERMAIN_DLG) as PlunderMainDlg;

                        if (plunderMainDlg != null)
                        {
                            plunderMainDlg.Show();
                        }
                    }
                }
                else if (StageWorld.BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_PVP_MAKEUP || StageWorld.BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_PVP_MAKEUP2)
                {
                    if (!NrTSingleton <FormsManager> .Instance.IsShow(G_ID.COLOSSEUMMAIN_DLG))
                    {
                        ColosseumDlg colosseumDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.COLOSSEUMMAIN_DLG) as ColosseumDlg;

                        if (colosseumDlg != null)
                        {
                            colosseumDlg.Show();
                        }
                    }
                }
                else if (StageWorld.BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_GUILDBOSS_MAKEUP)
                {
                    BabelGuildBossDlg babelGuildBossDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.BABEL_GUILDBOSS_MAIN_DLG) as BabelGuildBossDlg;

                    if (babelGuildBossDlg != null)
                    {
                        babelGuildBossDlg.ShowList();
                    }
                }
                else if (StageWorld.BATCH_MODE != eSOLDIER_BATCH_MODE.MODE_EXPEDITION_MAKEUP)
                {
                    if (StageWorld.BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_MYTHRAID)
                    {
                        NrTSingleton <MythRaidManager> .Instance.Init();

                        NrTSingleton <MythRaidManager> .Instance.ShowLobbyDlg();

                        NrTSingleton <MythRaidManager> .Instance.MythRaidBGMOn();
                    }
                }
                StageWorld.BATCH_MODE = eSOLDIER_BATCH_MODE.MODE_MAX;
                if (StageWorld.MINEMSG_TYPE == eMINE_MESSAGE.eMINE_MESSAGE_GO_MILITARY_SUCCESS)
                {
                    Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("328"), SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE);
                }
                else if (StageWorld.MINEMSG_TYPE == eMINE_MESSAGE.eMINE_MESSAGE_GO_MILITARY_FAIL01)
                {
                    Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("330"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                }
                else if (StageWorld.MINEMSG_TYPE == eMINE_MESSAGE.eMINE_MESSAGE_GO_MILITARY_FAIL03)
                {
                    Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("330"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                }
                else if (StageWorld.MINEMSG_TYPE == eMINE_MESSAGE.eMINE_MESSAGE_GO_MILITARY_FAIL02)
                {
                    Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("327"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                }
                else if (StageWorld.MINEMSG_TYPE == eMINE_MESSAGE.eMINE_MESSAGE_GO_MILITARY_FAIL04)
                {
                    Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("429"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                }
                if (StageWorld.PLUNDERMSG_TYPE == ePLUNDER_MESSAGE.ePLUNDER_MESSAGE_MATCH_FAIL)
                {
                    Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("120"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                    PlunderMainDlg plunderMainDlg2 = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.PLUNDERMAIN_DLG) as PlunderMainDlg;

                    if (plunderMainDlg2 != null)
                    {
                        plunderMainDlg2.Show();
                    }
                }
                StageWorld.PLUNDERMSG_TYPE = ePLUNDER_MESSAGE.ePLUNDER_MESSAGE_DEFAULT;
                StageWorld.MINEMSG_TYPE    = eMINE_MESSAGE.eMINE_MESSAGE_DEFAULT;
                if (StageWorld.BATTLEROOM_TYPE == eBATTLE_ROOMTYPE.eBATTLE_ROOMTYPE_PREVIEW)
                {
                    if (NrTSingleton <NkClientLogic> .Instance.GidPrivewHero == 166)
                    {
                        NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.SOLGUIDE_DLG);
                    }
                    else if (NrTSingleton <NkClientLogic> .Instance.GidPrivewHero == 82)
                    {
                        NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.SOLMILITARYGROUP_DLG);
                    }
                    else if (NrTSingleton <NkClientLogic> .Instance.GidPrivewHero == 324)
                    {
                        if (!NrTSingleton <FormsManager> .Instance.IsForm(G_ID.ITEMMALL_DLG))
                        {
                            ItemMallDlg itemMallDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.ITEMMALL_DLG) as ItemMallDlg;

                            if (itemMallDlg != null)
                            {
                                itemMallDlg.SetShowMode(ItemMallDlg.eMODE.eMODE_NORMAL);
                                itemMallDlg.SetShowType(eITEMMALL_TYPE.BUY_HERO);
                            }
                        }
                    }
                    else if (NrTSingleton <NkClientLogic> .Instance.GidPrivewHero == 418)
                    {
                        if (NrTSingleton <ContentsLimitManager> .Instance.IsTimeShop())
                        {
                            NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.TIMESHOP_DLG);
                        }
                    }
                    else if (NrTSingleton <NkClientLogic> .Instance.GidPrivewHero == 433)
                    {
                        NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.HEROCOLLECT_DLG);

                        NrTSingleton <FormsManager> .Instance.ShowForm(G_ID.MYTH_EVOLUTION_MAIN_DLG);
                    }
                }
            }
        }
        else if (Scene.CurScene == Scene.Type.BATTLE || Scene.CurScene == Scene.Type.SOLDIER_BATCH)
        {
            this.m_kForm = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.GAMEGUIDE_DLG);

            if (this.m_kForm != null)
            {
                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.GAMEGUIDE_DLG);
            }
            this.m_kForm = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BOOKMARK_DLG);

            if (this.m_kForm != null)
            {
                this.m_kForm.Hide();
            }
            this.m_kForm = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.DLG_CHARINFO);

            if (this.m_kForm != null)
            {
                this.m_kForm.Hide();
            }
            this.m_kForm = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MYCHARINFO_DLG);

            if (this.m_kForm != null)
            {
                this.m_kForm.Hide();
            }
            if (NrTSingleton <NkClientLogic> .Instance.GetAuthPlatformType() == 6)
            {
                this.m_kForm = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.GOOGLEPLAY_DLG);

                if (this.m_kForm != null)
                {
                    this.m_kForm.Hide();
                }
            }
            else if (StageLoginMobile.m_bConnectGameCenter)
            {
                this.m_kForm = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.GOOGLEPLAY_DLG);

                if (this.m_kForm != null)
                {
                    this.m_kForm.Hide();
                }
            }
            this.m_kForm = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MAIN_QUEST);

            if (this.m_kForm != null)
            {
                this.m_kForm.Hide();
            }
            this.m_kForm = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MENUICON_DLG);

            if (this.m_kForm != null)
            {
                this.m_kForm.Hide();
            }
            NoticeIconDlg noticeIconDlg2 = (NoticeIconDlg)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MAIN_UI_ICON);

            if (noticeIconDlg2 != null)
            {
                noticeIconDlg2.ShowTempNotice();
                noticeIconDlg2.Show();
            }
            this.m_kForm = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.CHAT_MAIN_DLG);

            if (this.m_kForm != null)
            {
                this.m_kForm.Hide();
            }
        }
        CustomQuality.GetInstance().ChangeCameraClipPlane(TsQualityManager.Instance.CurrLevel);
    }
Ejemplo n.º 12
0
    public static bool IsShowIcon(ICON_TYPE type)
    {
        NoticeIconDlg noticeIconDlg = (NoticeIconDlg)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MAIN_UI_ICON);

        return(noticeIconDlg.ShowIcon(type));
    }
Ejemplo n.º 13
0
    public void Update()
    {
        if (Scene.CurScene != Scene.Type.WORLD)
        {
            return;
        }
        if (Time.realtimeSinceStartup - this.checkTime > this.delayTime)
        {
            foreach (GameGuideInfo current in this.m_GameGuide)
            {
                if (current.m_eCheck == GameGuideCheck.CYCLECAL)
                {
                    if (this.m_kCurrentGameGuideInfo == null || this.m_kCurrentGameGuideInfo.m_eType != current.m_eType)
                    {
                        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

                        if (myCharInfo == null)
                        {
                            break;
                        }
                        if (current.GetMinLevel() <= myCharInfo.GetLevel() && current.GetMaxLevel() >= myCharInfo.GetLevel() && current.CheckGameGuide())
                        {
                            bool flag = false;
                            foreach (GameGuideInfo current2 in this.m_kReserveGuide)
                            {
                                if (current2.m_eType == current.m_eType)
                                {
                                    flag = true;
                                    break;
                                }
                            }
                            if (!flag)
                            {
                                this.m_kReserveGuide.Enqueue(current);
                                break;
                            }
                        }
                    }
                }
            }
            this.checkTime = Time.realtimeSinceStartup;
        }
        if (0f < this.totalCheckTime && !PlayerPrefs.HasKey("CheckFps") && Time.realtimeSinceStartup - this.totalCheckTime < 180f && TsQualityManager.Instance.CurrLevel != TsQualityManager.Level.LOWEST && !System_Option_Dlg.m_bSaveMode)
        {
            this.CheckFps();
            if (Time.realtimeSinceStartup - this.fpsCheckTime > 60f)
            {
                this.averageFps /= (float)this.count;
                if (this.averageFps <= 14f)
                {
                    foreach (GameGuideInfo current3 in this.m_GameGuide)
                    {
                        if (current3.m_eType == GameGuideType.CHECK_FPS)
                        {
                            if (this.m_kCurrentGameGuideInfo == null || this.m_kCurrentGameGuideInfo.m_eType != current3.m_eType)
                            {
                                this.m_kReserveGuide.Enqueue(current3);
                                break;
                            }
                        }
                    }
                }
                this.averageFps   = 0f;
                this.count        = 0;
                this.fpsCheckTime = Time.realtimeSinceStartup;
            }
        }
        if (0 < this.m_kReserveGuide.Count && this.m_kCurrentGameGuideInfo == null)
        {
            GameGuideInfo kCurrentGameGuideInfo = this.m_kReserveGuide.Dequeue();
            this.m_kCurrentGameGuideInfo = kCurrentGameGuideInfo;
            if (this.m_kCurrentGameGuideInfo.m_eType != GameGuideType.DEFAULT)
            {
                NoticeIconDlg.SetIcon(ICON_TYPE.GAMEGUIDE, true);
                this.SetBubbleGameGuide();
            }
            else
            {
                this.m_kCurrentGameGuideInfo = null;
            }
        }
    }