Exemplo n.º 1
0
        // Token: 0x0600CE24 RID: 52772 RVA: 0x0038BB10 File Offset: 0x00389D10
        private void __callDele_EventOnGotoButtonClick(GetPathData obj)
        {
            Action <GetPathData> eventOnGotoButtonClick = this.EventOnGotoButtonClick;

            if (eventOnGotoButtonClick != null)
            {
                eventOnGotoButtonClick(obj);
            }
        }
Exemplo n.º 2
0
        // Token: 0x0600CEB6 RID: 52918 RVA: 0x0038D460 File Offset: 0x0038B660
        private void __callDele_m_onGotoGetPathAction(GetPathData arg1, NeedGoods arg2)
        {
            Action <GetPathData, NeedGoods> onGotoGetPathAction = this.m_onGotoGetPathAction;

            if (onGotoGetPathAction != null)
            {
                onGotoGetPathAction(arg1, arg2);
            }
        }
 // Token: 0x0600FF93 RID: 65427 RVA: 0x004310CC File Offset: 0x0042F2CC
 private void EquipmentForge_OnGotoGetPath(GetPathData getPath, NeedGoods needGoods = null)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_EquipmentForge_OnGotoGetPathGetPathDataNeedGoods_hotfix != null)
     {
         this.m_EquipmentForge_OnGotoGetPathGetPathDataNeedGoods_hotfix.call(new object[]
         {
             this,
             getPath,
             needGoods
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     base.Pause();
     WorldUITask.StartGetPathTargetUITask(getPath, this.m_currIntent, needGoods);
 }
Exemplo n.º 4
0
 // Token: 0x0600CE0C RID: 52748 RVA: 0x0038B714 File Offset: 0x00389914
 private void OnGetPathItemGotoButtonClick(GetPathData getPathInfo)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnGetPathItemGotoButtonClickGetPathData_hotfix != null)
     {
         this.m_OnGetPathItemGotoButtonClickGetPathData_hotfix.call(new object[]
         {
             this,
             getPathInfo
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     if (this.EventOnGotoButtonClick != null)
     {
         this.EventOnGotoButtonClick(getPathInfo);
     }
 }
Exemplo n.º 5
0
        // Token: 0x0600CE9A RID: 52890 RVA: 0x0038D154 File Offset: 0x0038B354
        private void GetPathUIController_OnGotoButtonClick(GetPathData getPathInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GetPathUIController_OnGotoButtonClickGetPathData_hotfix != null)
            {
                this.m_GetPathUIController_OnGotoButtonClickGetPathData_hotfix.call(new object[]
                {
                    this,
                    getPathInfo2
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GetPathData   getPathInfo = getPathInfo2;
            GetPathUITask $this       = this;
            int?          num         = new int?(0);
            FadeStyle     style       = FadeStyle.Black;
            int           num2        = WorldUITask.CanGotoGetPath(getPathInfo, ref style);

            if (num2 <= 0)
            {
                num = new int?(num2);
                if (num == 0 || num == -402)
                {
                    CommonUIController.Instance.StartFadeOut(delegate
                    {
                        $this.Pause();
                        if ($this.m_onGotoGetPathAction != null)
                        {
                            NeedGoods arg = null;
                            if ($this.m_goodsNeedCount > 0)
                            {
                                arg = new NeedGoods($this.m_goodsType, $this.m_goodsID, $this.m_goodsNeedCount);
                            }
                            $this.m_onGotoGetPathAction(getPathInfo, arg);
                        }
                    }, style, -1f);
                }
                else
                {
                    CommonUIController.Instance.ShowErrorMessage(num.Value, 2f, null, true);
                }
                return;
            }
        }
        // Token: 0x0600905F RID: 36959 RVA: 0x0029F4CC File Offset: 0x0029D6CC
        private void OpenServiceActivityUIController_OnMissionGoto(GetPathData getPathInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OpenServiceActivityUIController_OnMissionGotoGetPathData_hotfix != null)
            {
                this.m_OpenServiceActivityUIController_OnMissionGotoGetPathData_hotfix.call(new object[]
                {
                    this,
                    getPathInfo2
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GetPathData getPathInfo         = getPathInfo2;
            OpenServiceActivityUITask $this = this;
            int?      num   = new int?(0);
            FadeStyle style = FadeStyle.Black;
            int       num2  = WorldUITask.CanGotoGetPath(getPathInfo, ref style);

            if (num2 <= 0)
            {
                num = new int?(num2);
                if (num == 0)
                {
                    CommonUIController.Instance.StartFadeOut(delegate
                    {
                        $this.Pause();
                        WorldUITask.StartGetPathTargetUITask(getPathInfo, $this.m_currIntent, null);
                    }, style, -1f);
                }
                else
                {
                    CommonUIController.Instance.ShowErrorMessage(num.Value, 2f, null, true);
                }
                return;
            }
        }
Exemplo n.º 7
0
 // Token: 0x0600CE52 RID: 52818 RVA: 0x0038C020 File Offset: 0x0038A220
 public void OnGetPathItemGotoButtonClick(GetPathData getPathInfo)
 {
     this.m_owner.OnGetPathItemGotoButtonClick(getPathInfo);
 }
Exemplo n.º 8
0
 // Token: 0x0600CE3C RID: 52796 RVA: 0x0038BEC0 File Offset: 0x0038A0C0
 public void __clearDele_EventOnGotoButtonClick(GetPathData obj)
 {
     this.m_owner.__clearDele_EventOnGotoButtonClick(obj);
 }
Exemplo n.º 9
0
 // Token: 0x0600CE25 RID: 52773 RVA: 0x0038BB34 File Offset: 0x00389D34
 private void __clearDele_EventOnGotoButtonClick(GetPathData obj)
 {
     this.EventOnGotoButtonClick = null;
 }
        // Token: 0x0600CE55 RID: 52821 RVA: 0x0038C0BC File Offset: 0x0038A2BC
        public void SetGetPath(GetPathData getPathInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetGetPathGetPathData_hotfix != null)
            {
                this.m_SetGetPathGetPathData_hotfix.call(new object[]
                {
                    this,
                    getPathInfo
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;
            IConfigDataLoader     configDataLoader      = GameManager.Instance.ConfigDataLoader as IConfigDataLoader;

            this.GetPathInfo = getPathInfo;
            ConfigDataStringTableForListInfo configDataStringTableForListInfo = configDataLoader.GetConfigDataStringTableForListInfo(getPathInfo.Name);

            this.m_nameText.text = configDataStringTableForListInfo.Content;
            int  num   = 0;
            int  num2  = 0;
            bool flag  = false;
            bool flag2 = true;

            switch (getPathInfo.PathType)
            {
            case GetPathType.GetPathType_Rift:
            {
                flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_Rift);
                RiftLevelStatus riftLevelStatus = projectLPlayerContext.GetRiftLevelStatus(getPathInfo.ID);
                flag2 = (flag2 && riftLevelStatus == RiftLevelStatus.Open);
                ConfigDataRiftLevelInfo configDataRiftLevelInfo = configDataLoader.GetConfigDataRiftLevelInfo(getPathInfo.ID);
                num  = projectLPlayerContext.GetRiftLevelCanChallengeNums(configDataRiftLevelInfo);
                num2 = projectLPlayerContext.GetRiftLevelCanChallengeMaxNums(configDataRiftLevelInfo);
                flag = true;
                break;
            }

            case GetPathType.GetPathType_Aniki:
                flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_AnikiGym);
                break;

            case GetPathType.GetPathType_ThearchyTrial:
                flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_ThearchyTrial);
                break;

            case GetPathType.GetPathType_Summon1:
            case GetPathType.GetPathType_Summon2:
            case GetPathType.GetPathType_Summon3:
                flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_SelectCard);
                break;

            case GetPathType.GetPathType_MemoryCorridor:
                flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_MemoryCorridor);
                break;

            case GetPathType.GetPathType_HeroTraining:
                flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_HeroTrainning);
                break;

            case GetPathType.GetPathType_Drill1:
            case GetPathType.GetPathType_Drill2:
                flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_TrainingGround);
                break;

            case GetPathType.GetPathType_Fetter:
                flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_Fetters);
                break;

            case GetPathType.GetPathType_Arena:
                flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_ArenaBattle);
                break;

            case GetPathType.GetPathType_Friend:
                flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_Friend);
                break;

            case GetPathType.GetPathType_TreasureMap:
                flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_TreasureMap);
                break;

            case GetPathType.GetPathType_Mission:
                flag2 = projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_Mission);
                break;

            case GetPathType.GetPathType_HeroDungeon:
            {
                ConfigDataHeroDungeonLevelInfo configDataHeroDungeonLevelInfo = configDataLoader.GetConfigDataHeroDungeonLevelInfo(getPathInfo.ID);
                flag2 = (configDataHeroDungeonLevelInfo != null && projectLPlayerContext.IsGameFunctionOpened(GameFunctionType.GameFunctionType_HeroDungeon) && (projectLPlayerContext.CanAttackHeroDungeonLevel(getPathInfo.ID) == 0 || projectLPlayerContext.CanAttackHeroDungeonLevel(getPathInfo.ID) == -2905));
                num   = projectLPlayerContext.GetHeroDungeonLevelCanChallengeNum(configDataHeroDungeonLevelInfo);
                num2  = projectLPlayerContext.GetHeroDungeonLevelCanChallengeMaxNum(configDataHeroDungeonLevelInfo);
                flag  = true;
                break;
            }
            }
            if (flag2)
            {
                if (flag)
                {
                    this.m_stateCtrl.SetToUIState("Number", false, true);
                    this.m_timesValue.text    = num.ToString();
                    this.m_timesAllValue.text = num2.ToString();
                    if (num != 0)
                    {
                        this.m_timesStateCtrl.SetToUIState("Normal", false, true);
                    }
                    else
                    {
                        this.m_timesStateCtrl.SetToUIState("None", false, true);
                    }
                }
                else
                {
                    this.m_stateCtrl.SetToUIState("Normal", false, true);
                }
            }
            else
            {
                this.m_stateCtrl.SetToUIState("Lock", false, true);
            }
        }
Exemplo n.º 11
0
 // Token: 0x0600CEEF RID: 52975 RVA: 0x0038D9F0 File Offset: 0x0038BBF0
 public void GetPathUIController_OnGotoButtonClick(GetPathData getPathInfo)
 {
     this.m_owner.GetPathUIController_OnGotoButtonClick(getPathInfo);
 }
Exemplo n.º 12
0
 // Token: 0x0600CED3 RID: 52947 RVA: 0x0038D850 File Offset: 0x0038BA50
 public void __clearDele_m_onGotoGetPathAction(GetPathData arg1, NeedGoods arg2)
 {
     this.m_owner.__clearDele_m_onGotoGetPathAction(arg1, arg2);
 }
Exemplo n.º 13
0
 // Token: 0x0600CEB7 RID: 52919 RVA: 0x0038D484 File Offset: 0x0038B684
 private void __clearDele_m_onGotoGetPathAction(GetPathData arg1, NeedGoods arg2)
 {
     this.m_onGotoGetPathAction = null;
 }
Exemplo n.º 14
0
 // Token: 0x0600FFEA RID: 65514 RVA: 0x00431BD0 File Offset: 0x0042FDD0
 public void EquipmentForge_OnGotoGetPath(GetPathData getPath, NeedGoods needGoods)
 {
     this.m_owner.EquipmentForge_OnGotoGetPath(getPath, needGoods);
 }
Exemplo n.º 15
0
 // Token: 0x06012116 RID: 74006 RVA: 0x004A868C File Offset: 0x004A688C
 public void MissionUIController_OnShowGotoLayer(GetPathData getPathInfo)
 {
     this.m_owner.MissionUIController_OnShowGotoLayer(getPathInfo);
 }