private void On_Burn_OpenForm(CUIEvent uievent)
        {
            if (Singleton <CFunctionUnlockSys> .instance.FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_LIUGUOYUANZHENG))
            {
                if (Singleton <CMatchingSystem> .GetInstance().IsInMatching)
                {
                    Singleton <CUIManager> .GetInstance().OpenTips("PVP_Matching", true, 1f, null, new object[0]);
                }
                else
                {
                    MonoSingleton <NewbieGuideManager> .GetInstance().SetNewbieBit(0x10, true);

                    if (this.model._data == null)
                    {
                        BurnExpeditionNetCore.Send_Get_BURNING_PROGRESS_REQ();
                    }
                    if (this.view != null)
                    {
                        this.view.OpenForm();
                    }
                }
            }
            else
            {
                ResSpecialFucUnlock dataByKey = GameDataMgr.specialFunUnlockDatabin.GetDataByKey((uint)4);
                Singleton <CUIManager> .instance.OpenTips(Utility.UTF8Convert(dataByKey.szLockedTip), false, 1f, null, new object[0]);
            }
        }
Exemplo n.º 2
0
        private void On_Burn_OpenForm(CUIEvent uievent)
        {
            if (Singleton <CFunctionUnlockSys> .get_instance().FucIsUnlock(4))
            {
                if (!Singleton <SCModuleControl> .get_instance().GetActiveModule(4))
                {
                    Singleton <CUIManager> .get_instance().OpenMessageBox(Singleton <SCModuleControl> .get_instance().PvpAndPvpOffTips, false);

                    return;
                }
                if (Singleton <CMatchingSystem> .GetInstance().IsInMatching)
                {
                    Singleton <CUIManager> .GetInstance().OpenTips("PVP_Matching", true, 1.5f, null, new object[0]);

                    return;
                }
                MonoSingleton <NewbieGuideManager> .GetInstance().SetNewbieBit(16, true, false);

                if (this.model._data == null)
                {
                    BurnExpeditionNetCore.Send_Get_BURNING_PROGRESS_REQ();
                }
                if (this.view != null)
                {
                    this.view.OpenForm();
                }
            }
            else
            {
                ResSpecialFucUnlock dataByKey = GameDataMgr.specialFunUnlockDatabin.GetDataByKey(4u);
                Singleton <CUIManager> .get_instance().OpenTips(Utility.UTF8Convert(dataByKey.szLockedTip), false, 1.5f, null, new object[0]);
            }
        }
        private void On_Burn_OpenForm(CUIEvent uievent)
        {
            if (Singleton <CFunctionUnlockSys> .instance.FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_LIUGUOYUANZHENG))
            {
                if (!Singleton <SCModuleControl> .instance.GetActiveModule(COM_CLIENT_PLAY_TYPE.COM_CLIENT_PLAY_BURNING))
                {
                    Singleton <CUIManager> .instance.OpenMessageBox(Singleton <SCModuleControl> .instance.PvpAndPvpOffTips, false);

                    return;
                }
                if (Singleton <CMatchingSystem> .GetInstance().IsInMatching)
                {
                    Singleton <CUIManager> .GetInstance().OpenTips("PVP_Matching", true, 1.5f, null, new object[0]);

                    return;
                }
                MonoSingleton <NewbieGuideManager> .GetInstance().SetNewbieBit(16, true, false);

                if (this.model._data == null)
                {
                    BurnExpeditionNetCore.Send_Get_BURNING_PROGRESS_REQ();
                }
                if (this.view != null)
                {
                    this.view.OpenForm();
                }
                MonoSingleton <NewbieGuideManager> .GetInstance().CheckTriggerTime(NewbieGuideTriggerTimeType.onEnterBurn, new uint[0]);
            }
            else
            {
                ResSpecialFucUnlock dataByKey = GameDataMgr.specialFunUnlockDatabin.GetDataByKey(4u);
                Singleton <CUIManager> .instance.OpenTips(Utility.UTF8Convert(dataByKey.szLockedTip), false, 1.5f, null, new object[0]);
            }
        }