Exemplo n.º 1
0
        // Token: 0x06009BC0 RID: 39872 RVA: 0x002C50BC File Offset: 0x002C32BC
        private void ArenaSelectUIController_OnShowOfflineArena()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ArenaSelectUIController_OnShowOfflineArena_hotfix != null)
            {
                this.m_ArenaSelectUIController_OnShowOfflineArena_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;

            if (projectLPlayerContext.IsArenaInSettleTime())
            {
                CommonUIController.Instance.ShowErrorMessage(-2017, 2f, null, true);
                return;
            }
            CommonUIController.Instance.StartShowFadeOutLoadingFadeIn(delegate
            {
                CommonUIController.Instance.HideFadeOutLoadingFadeIn();
                WorldUITask.WorldUIController_ShowHide(true, false);
                base.Pause();
                if (this.EventOnShowArena != null)
                {
                    this.EventOnShowArena(ArenaUIType.Offline, this.m_isBattleReport, this.m_currIntent);
                }
            }, FadeStyle.Black, -1f, -1f);
        }
Exemplo n.º 2
0
 // Token: 0x06009BC2 RID: 39874 RVA: 0x002C51F4 File Offset: 0x002C33F4
 private void ArenaSelectUIController_OnClose()
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ArenaSelectUIController_OnClose_hotfix != null)
     {
         this.m_ArenaSelectUIController_OnClose_hotfix.call(new object[]
         {
             this
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     WorldUITask.WorldUIController_ShowHide(true, false);
     this.m_arenaSelectUIController.Close(delegate
     {
         base.Pause();
         base.ReturnPrevUITask();
     });
 }
Exemplo n.º 3
0
 // Token: 0x06009BC1 RID: 39873 RVA: 0x002C5170 File Offset: 0x002C3370
 private void ArenaSelectUIController_OnShowOnlineArena()
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ArenaSelectUIController_OnShowOnlineArena_hotfix != null)
     {
         this.m_ArenaSelectUIController_OnShowOnlineArena_hotfix.call(new object[]
         {
             this
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     CommonUIController.Instance.StartShowFadeOutLoadingFadeIn(delegate
     {
         CommonUIController.Instance.HideFadeOutLoadingFadeIn();
         WorldUITask.WorldUIController_ShowHide(true, false);
         base.Pause();
         if (this.EventOnShowArena != null)
         {
             this.EventOnShowArena(ArenaUIType.Online, this.m_isBattleReport, this.m_currIntent);
         }
     }, FadeStyle.Black, -1f, -1f);
 }
Exemplo n.º 4
0
        // Token: 0x06009BBF RID: 39871 RVA: 0x002C4FC8 File Offset: 0x002C31C8
        protected override void UpdateView()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateView_hotfix != null)
            {
                this.m_UpdateView_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            if (base.IsOpeningUI())
            {
                this.m_arenaSelectUIController.Open();
                WorldUITask.WorldUIController_ShowHide(false, false);
            }
            UIIntentCustom uiintentCustom = this.m_currIntent as UIIntentCustom;

            if (uiintentCustom != null)
            {
                ArenaUIType structParam = uiintentCustom.GetStructParam <ArenaUIType>("ArenaUIType");
                this.m_isBattleReport = uiintentCustom.GetStructParam <bool>("IsBattleReport");
                uiintentCustom.SetParam("ArenaUIType", ArenaUIType.None);
                uiintentCustom.SetParam("IsBattleReport", false);
                if (structParam != ArenaUIType.None)
                {
                    if (structParam == ArenaUIType.Offline)
                    {
                        this.ArenaSelectUIController_OnShowOfflineArena();
                    }
                    else if (structParam == ArenaUIType.Online)
                    {
                        this.ArenaSelectUIController_OnShowOnlineArena();
                    }
                }
            }
        }