Exemplo n.º 1
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;
            }
        }