private void ChangeFocusButton(UIButton button)
 {
     if (this.mButton_CurrentFocus != null)
     {
         bool flag = this.mButton_CurrentFocus.Equals(button);
         if (flag)
         {
             return;
         }
     }
     this.mButton_CurrentFocus = button;
     if (this.mButton_CurrentFocus != null)
     {
         bool flag2 = this.mButton_ShipAlbum.Equals(this.mButton_CurrentFocus);
         if (flag2)
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
             TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mTexture_Focus.get_transform(), -240f, 0.3f, false), this.mTexture_Focus);
         }
         else
         {
             bool flag3 = this.mButton_SlotItemAlbum.Equals(this.mButton_CurrentFocus);
             if (flag3)
             {
                 SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
                 TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mTexture_Focus.get_transform(), 240f, 0.3f, false), this.mTexture_Focus);
             }
         }
     }
 }
 public void Hide()
 {
     if (DOTween.IsTweening(UIInteriorFurnitureDetail.TweenAnimationType.ShowHide))
     {
         DOTween.Kill(UIInteriorFurnitureDetail.TweenAnimationType.ShowHide, false);
     }
     TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), 960f, 0.3f, false), UIInteriorFurnitureDetail.TweenAnimationType.ShowHide);
 }
Пример #3
0
        public void Hide()
        {
            this.mOnClickEventSender_Back.SetClickable(false);
            this.mOnClickEventSender_Next.SetClickable(false);
            if (DOTween.IsTweening(UIInteriorFurnitureChangeScrollListNew.TweenAnimationType.ShowHide))
            {
                DOTween.Kill(UIInteriorFurnitureChangeScrollListNew.TweenAnimationType.ShowHide, false);
            }
            Sequence sequence = DOTween.Sequence();
            Tween    tween    = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), -960f, 0.6f, false), 21);

            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.SetId <Sequence>(sequence, UIInteriorFurnitureChangeScrollListNew.TweenAnimationType.ShowHide);
        }
Пример #4
0
    private Tween GenerateTweenMove(UILabel from, float toAlpha, Vector3 toPosition, Vector3 toScale, float duration)
    {
        Sequence sequence = DOTween.Sequence();
        Tween    tween    = ShortcutExtensions.DOLocalMoveX(from.get_transform(), toPosition.x, duration, false);
        Tween    tween2   = ShortcutExtensions.DOScale(from.get_transform(), toScale, duration);
        Tween    tween3   = DOVirtual.Float(from.alpha, toAlpha, duration, delegate(float alpha)
        {
            from.alpha = alpha;
        });

        TweenSettingsExtensions.Append(sequence, tween);
        TweenSettingsExtensions.Join(sequence, tween2);
        TweenSettingsExtensions.Join(sequence, tween3);
        return(sequence);
    }
    public void Hide()
    {
        if (DOTween.IsTweening(UIInteriorFurnitureChangeScrollList.TweenAnimationType.ShowHide))
        {
            DOTween.Kill(UIInteriorFurnitureChangeScrollList.TweenAnimationType.ShowHide, false);
        }
        Sequence sequence = DOTween.Sequence();
        Tween    tween    = DOVirtual.Float(this.mTexture_TouchBackArea.alpha, 1E-06f, 0.15f, delegate(float alpha)
        {
            this.mTexture_TouchBackArea.alpha = alpha;
        });
        Tween tween2 = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), -960f, 0.6f, false), 21);

        TweenSettingsExtensions.Append(sequence, tween2);
        TweenSettingsExtensions.Join(sequence, tween);
        TweenSettingsExtensions.SetId <Sequence>(sequence, UIInteriorFurnitureChangeScrollList.TweenAnimationType.ShowHide);
    }
Пример #6
0
        private Tween GenerateSlotInTween(UIRevampRecipeScrollChildNew slot)
        {
            slot.alpha = 0f;
            slot.get_transform().localPositionX(-300f);
            Sequence sequence = DOTween.Sequence();
            Tween    tween    = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(slot.get_transform(), 0f, this.duration, false), this.easing);
            Tween    tween2   = DOVirtual.Float(0f, 1f, this.duration, delegate(float alpha)
            {
                slot.alpha = alpha;
            });

            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.Join(sequence, tween2);
            TweenSettingsExtensions.OnStart <Sequence>(sequence, delegate
            {
                SoundUtils.PlaySE(SEFIleInfos.SE_019);
            });
            return(sequence);
        }
Пример #7
0
    private Tween GenerateTweenArrow(UIBattleFormationKindSelectManager.Arrow arrow, Direction direction)
    {
        int       num       = 0;
        UITexture arrowBack = Object.Instantiate <UITexture>(arrow.mTexture_ArrowBack);

        arrowBack.get_transform().set_parent(arrow.mTexture_ArrowBack.get_transform().get_parent());
        arrowBack.get_transform().set_localScale(arrow.mTexture_ArrowBack.get_transform().get_localScale());
        arrowBack.get_transform().set_localPosition(arrow.mTexture_ArrowBack.get_transform().get_localPosition());
        UITexture arrowFront = Object.Instantiate <UITexture>(arrow.mTexture_ArrowFront);

        arrowFront.get_transform().set_parent(arrow.mTexture_ArrowFront.get_transform().get_parent());
        arrowFront.get_transform().set_localScale(arrow.mTexture_ArrowFront.get_transform().get_localScale());
        arrowFront.get_transform().set_localPosition(arrow.mTexture_ArrowFront.get_transform().get_localPosition());
        switch (direction + 1)
        {
        case Direction.Toggle:
            num = 20;
            break;

        case (Direction)2:
            num = -20;
            break;
        }
        Sequence sequence = DOTween.Sequence();
        Tween    tween    = ShortcutExtensions.DOLocalMoveX(arrowBack.get_transform(), arrowBack.get_transform().get_localPosition().x + (float)num, this.arrowDuration, false);
        Tween    tween2   = ShortcutExtensions.DOLocalMoveX(arrowFront.get_transform(), arrowFront.get_transform().get_localPosition().x + (float)num, this.arrowDuration, false);
        Tween    tween3   = DOVirtual.Float(arrowBack.alpha, 0f, this.arrowAlpha, delegate(float alpha)
        {
            arrowBack.alpha  = alpha;
            arrowFront.alpha = alpha;
        });
        TweenCallback tweenCallback = delegate
        {
            Object.Destroy(arrowBack.get_gameObject());
            Object.Destroy(arrowFront.get_gameObject());
        };

        TweenSettingsExtensions.Append(sequence, tween);
        TweenSettingsExtensions.Join(sequence, tween2);
        TweenSettingsExtensions.Join(sequence, tween3);
        TweenSettingsExtensions.OnComplete <Sequence>(sequence, tweenCallback);
        return(sequence);
    }
Пример #8
0
        public void StartRoll()
        {
            bool flag = DOTween.IsTweening(this);

            if (flag)
            {
                DOTween.Kill(this, false);
            }
            Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);

            this.mLabel_Title.get_transform().localPositionX(this.mRight + (float)(this.mLabel_Title.width / 2));
            Tween tween  = ShortcutExtensions.DOLocalMoveX(this.mLabel_Title.get_transform(), (float)(this.mLabel_Title.width / 2), 3f, false);
            Tween tween2 = TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mLabel_Title.get_transform(), this.mLeft, 3f, false), delegate
            {
                this.mLabel_Title.get_transform().localPositionX(this.mRight + (float)(this.mLabel_Title.width / 2));
            }), 1);

            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.AppendInterval(sequence, 1.5f);
            TweenSettingsExtensions.Append(sequence, tween2);
            TweenSettingsExtensions.AppendInterval(sequence, 0.5f);
            TweenSettingsExtensions.SetLoops <Sequence>(sequence, 2147483647, 0);
        }
Пример #9
0
        private Tween GenerateTweenYouseiMove()
        {
            Sequence sequence = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence, this);
            TweenCallback tweenCallback = delegate
            {
                this.mTransform_YouseiOffset.localPositionX(250f);
                this.mTransform_YouseiOffset.set_localRotation(Quaternion.Euler(Vector3.get_zero()));
            };
            Tween tween  = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mTransform_YouseiOffset, -380f, 5f, false), 1);
            Tween tween2 = ShortcutExtensions.DOLocalRotate(this.mTransform_YouseiOffset, new Vector3(0f, 180f, 0f), 1f, 0);
            Tween tween3 = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mTransform_YouseiOffset, 250f, 5f, false), 1);
            Tween tween4 = ShortcutExtensions.DOLocalRotate(this.mTransform_YouseiOffset, new Vector3(0f, 0f, 0f), 1f, 0);

            TweenSettingsExtensions.OnPlay <Sequence>(sequence, tweenCallback);
            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.Append(sequence, tween2);
            TweenSettingsExtensions.Append(sequence, tween3);
            TweenSettingsExtensions.Append(sequence, tween4);
            TweenSettingsExtensions.SetLoops <Sequence>(sequence, 2147483647, 0);
            return(sequence);
        }
        private IEnumerator OnFinishedPlayVoiceAndLive2DMotionCoroutine()
        {
            mUIDeckPracticeProductionManager.PlayProduction();
            yield return(new WaitForEndOfFrame());

            mUIDeckPracticeProductionManager.PlayShipBannerIn();
            yield return(new WaitForEndOfFrame());

            Sequence sequence          = DOTween.Sequence();
            Tween    tweenMoveMenu     = mPracticeMenu.transform.DOLocalMoveX(960f, 0.5f).SetEase(Ease.InCubic);
            Tween    tweenMoveManager  = mUIDeckPracticeManager.transform.DOLocalMoveX(960f, 0.5f).SetEase(Ease.InCubic);
            Vector3  enterPosition     = StrategyTopTaskManager.Instance.UIModel.Character.getEnterPosition();
            Tween    tweenMoveFlagShip = ShortcutExtensions.DOLocalMoveX(endValue: (int)enterPosition.x, target: StrategyTopTaskManager.Instance.UIModel.Character.transform, duration: 0.5f).SetEase(Ease.InCubic);

            sequence.Append(tweenMoveMenu);
            sequence.Join(tweenMoveManager);
            sequence.Join(tweenMoveFlagShip);
            yield return(sequence.WaitForCompletion());

            if (SingletonMonoBehaviour <Live2DModel> .exist())
            {
                SingletonMonoBehaviour <Live2DModel> .Instance.Play();
            }
        }
        private Tween GenerateTweenMoveLevelUp()
        {
            Sequence sequence = DOTween.Sequence();

            TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), base.get_transform().get_localPosition().x + (float)this.xMovePos, this.xMoveTime, false), this.xMoveEase), this));
            TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), base.get_transform().get_localPosition().x, this.mxMoveTime, false), 30), this));
            TweenSettingsExtensions.AppendInterval(sequence, this.xxMoveTimeDelay);
            TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), base.get_transform().get_localPosition().x + (float)this.xxMovePos, this.xxMoveTime, false), this));
            TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), base.get_transform().get_localPosition().x, this.mxxMoveTime, false), 30), this));
            TweenSettingsExtensions.Join(sequence, this.GenerateTweenLevelUp());
            return(sequence);
        }
    public void Play()
    {
        ShortcutExtensions.DOKill(base.get_transform(), false);
        Sequence sequence  = DOTween.Sequence();
        Sequence sequence2 = DOTween.Sequence();

        ShortcutExtensions.DOKill(this.mTexture_Background.get_transform(), false);
        TweenSettingsExtensions.Append(sequence2, TweenSettingsExtensions.OnPlay <Tweener>(ShortcutExtensions.DOScaleY(this.mTexture_Background.get_transform(), 1f, 0.8f), delegate
        {
            this.mTexture_Background.alpha = 1f;
        }));
        Sequence sequence3 = DOTween.Sequence();

        ShortcutExtensions.DOKill(this.mTexture_Text.get_transform(), false);
        TweenSettingsExtensions.Join(sequence3, TweenSettingsExtensions.OnPlay <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mTexture_Text.get_transform(), -208f, 0.8f, false), 21), delegate
        {
            this.mTexture_Text.alpha = 1f;
        }));
        ShortcutExtensions.DOKill(this.mTexture_Result.get_transform(), false);
        TweenSettingsExtensions.Join(sequence3, TweenSettingsExtensions.OnPlay <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Result.get_transform(), Vector3.get_one(), 0.5f), 0.9f), 30), delegate
        {
            this.mTexture_Result.alpha = 1f;
        }));
        TweenSettingsExtensions.Append(sequence, sequence2);
        TweenSettingsExtensions.Append(sequence, sequence3);
        TweenSettingsExtensions.OnComplete <Sequence>(sequence, delegate
        {
            if (this.mOnFinishedAnimationListener != null)
            {
                this.mOnFinishedAnimationListener.Invoke();
            }
        });
    }
Пример #13
0
 private void InitCloud()
 {
     if (!this.bCloudInit)
     {
         this.bCloudInit   = true;
         this.randomheight = 9.5f;
         Mode_LevelData mInitData = this.mInitData as Mode_LevelData;
         if ((mInitData != null) && (mInitData.room != null))
         {
             this.randomheight = ((float)mInitData.room.RoomHeight) / 2.2f;
         }
         if (GameLogic.Random(0, 100) < 50)
         {
             this.mCloud01MoveTime = GameLogic.Random((float)70f, (float)90f);
             this.mCloud02MoveTime = GameLogic.Random((float)120f, (float)140f);
         }
         else
         {
             this.mCloud02MoveTime = GameLogic.Random((float)70f, (float)90f);
             this.mCloud01MoveTime = GameLogic.Random((float)120f, (float)140f);
         }
         if (this.cloud01 != null)
         {
             this.RandomCloudY(ref this.cloud01y, this.cloud02y);
             this.cloud01.localPosition = new Vector3(15f, 0f, this.cloud01y);
             TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(TweenSettingsExtensions.OnStepComplete <Tweener>(ShortcutExtensions.DOLocalMoveX(this.cloud01, -15f, this.mCloud01MoveTime, false), new TweenCallback(this, this.< InitCloud > m__0)), -1), 1);
         }
         if (this.cloud02 != null)
         {
             float x    = GameLogic.Random((float)-5f, (float)5f);
             float num2 = (x + 15f) / 30f;
             this.RandomCloudY(ref this.cloud02y, this.cloud01y);
             this.cloud02.localPosition = new Vector3(x, 0f, this.cloud02y);
             TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(this.cloud02, -15f, this.mCloud02MoveTime * num2, false), 1), new TweenCallback(this, this.< InitCloud > m__1));
         }
     }
 }
Пример #14
0
 public static void DOLocalMoveX(Transform target, float endValue, float duration, TweenCallback action)
 {
     OnComplete(ShortcutExtensions.DOLocalMoveX(target, endValue, duration), action);
 }
Пример #15
0
    protected override void OnInit()
    {
        this.adx = this.mAdTurnCtrl.transform.localPosition.x;
        this.mTurnCtrl.TurnEnd = delegate(TurnTableData data) {
            this.resultType = data.type;
            if (LocalSave.Instance.BattleAd_CanShow())
            {
                SdkManager.send_event_ad(ADSource.eTurntable, "SHOW", 0, 0, string.Empty, string.Empty);
                TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.AppendInterval(TweenSettingsExtensions.Append(TweenSettingsExtensions.AppendInterval(TweenSettingsExtensions.SetUpdate <Sequence>(this.mSeqPool.Get(), true), 0.5f), TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(this.gameturnparent.transform, -this.adx, 0.5f, false), 0x1b)), 0.5f), new TweenCallback(this, this.< OnInit > m__3));
            }
            else
            {
                WindowUI.CloseWindow(WindowID.WindowID_GameTurnTable);
            }
        };
        RectTransform transform  = base.transform as RectTransform;
        RectTransform transform2 = this.gameturnparent.transform as RectTransform;

        transform2.sizeDelta = transform.sizeDelta;
        RectTransform transform3 = this.mAdTurnCtrl.transform as RectTransform;

        transform3.sizeDelta = transform.sizeDelta;
        this.mAdTurnCtrl.Init();
        if (< > f__am$cache0 == null)
        {
Пример #16
0
        private void ChangeFocus(UIArsenalSelector.SelectType selectType)
        {
            Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);

            if (this.mSelectType == selectType)
            {
                return;
            }
            switch (this.mSelectType)
            {
            case UIArsenalSelector.SelectType.None:
                this.mTexture_RevampTextHover.alpha  = 0f;
                this.mTexture_ArsenalTextHover.alpha = 0f;
                break;

            case UIArsenalSelector.SelectType.Arsenal:
            {
                Tween tween = TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(this.mTexture_ArsenalTextHover.alpha, 0f, 0.3f, delegate(float alpha)
                    {
                        this.mTexture_ArsenalTextHover.alpha = alpha;
                    }), this);
                TweenSettingsExtensions.Join(sequence, tween);
                break;
            }

            case UIArsenalSelector.SelectType.Revamp:
            {
                Tween tween = TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(this.mTexture_RevampTextHover.alpha, 0f, 0.3f, delegate(float alpha)
                    {
                        this.mTexture_RevampTextHover.alpha = alpha;
                    }), this);
                TweenSettingsExtensions.Join(sequence, tween);
                break;
            }
            }
            this.mSelectType = selectType;
            switch (this.mSelectType)
            {
            case UIArsenalSelector.SelectType.None:
                this.mTexture_RevampTextHover.alpha  = 0f;
                this.mTexture_ArsenalTextHover.alpha = 0f;
                break;

            case UIArsenalSelector.SelectType.Arsenal:
            {
                Tween tween2 = ShortcutExtensions.DOLocalMoveX(this.mTexture_Focus.get_transform(), this.mTransform_Arsenal.get_transform().get_localPosition().x, 0.3f, false);
                Tween tween3 = TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(this.mTexture_ArsenalTextHover.alpha, 1f, 0.3f, delegate(float alpha)
                    {
                        this.mTexture_ArsenalTextHover.alpha = alpha;
                    }), this);
                TweenSettingsExtensions.Join(sequence, tween3);
                TweenSettingsExtensions.Join(sequence, tween2);
                break;
            }

            case UIArsenalSelector.SelectType.Revamp:
            {
                Tween tween2 = ShortcutExtensions.DOLocalMoveX(this.mTexture_Focus.get_transform(), this.mTransform_Revamp.get_transform().get_localPosition().x, 0.3f, false);
                Tween tween3 = TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(this.mTexture_RevampTextHover.alpha, 1f, 0.3f, delegate(float alpha)
                    {
                        this.mTexture_RevampTextHover.alpha = alpha;
                    }), this);
                TweenSettingsExtensions.Join(sequence, tween3);
                TweenSettingsExtensions.Join(sequence, tween2);
                break;
            }
            }
        }
        private Tween GenerateTweenMoveNormal()
        {
            Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);

            TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), base.get_transform().get_localPosition().x + (float)this.xMovePos, this.xMoveTime, false), this.xMoveEase), this));
            TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), base.get_transform().get_localPosition().x, this.mxMoveTime, false), 30), this));
            return(sequence);
        }
Пример #18
0
        private void OnFinishedCreateViewsCoroutine()
        {
            UIDutySummary[] summaryViews = this.GetSummaryViews();
            int             num          = 0;

            UIDutyGrid.ChangeType changeType = this.mListChangeType;
            int num2;

            if (changeType != UIDutyGrid.ChangeType.Left)
            {
                if (changeType != UIDutyGrid.ChangeType.Right)
                {
                    num2 = 0;
                }
                else
                {
                    num2 = 1;
                }
            }
            else
            {
                num2 = -1;
            }
            UIDutySummary[] array = summaryViews;
            for (int i = 0; i < array.Length; i++)
            {
                UIDutySummary uIDutySummary = array[i];
                uIDutySummary.SetDepth(summaryViews.Length - num);
                Vector3  localPosition = uIDutySummary.get_gameObject().get_transform().get_localPosition();
                Sequence sequence      = DOTween.Sequence();
                switch (this.mListChangeType)
                {
                case UIDutyGrid.ChangeType.None:
                {
                    uIDutySummary.get_gameObject().get_transform().set_localPosition(new Vector3(localPosition.x, 0f, localPosition.z));
                    Sequence sequence2 = DOTween.Sequence();
                    Tween    tween     = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(uIDutySummary.get_transform(), localPosition.y, 0.6f, false), 15);
                    TweenSettingsExtensions.Append(sequence2, tween);
                    UIDutySummary dsum = uIDutySummary;
                    if (num != 0)
                    {
                        Tween tween2 = DOVirtual.Float(0f, 1f, 0.6f, delegate(float alpha)
                            {
                                dsum.GetPanel().alpha = alpha;
                            });
                        TweenSettingsExtensions.Join(sequence2, tween2);
                    }
                    uIDutySummary.Show();
                    TweenSettingsExtensions.Join(sequence, sequence2);
                    break;
                }

                case UIDutyGrid.ChangeType.Left:
                case UIDutyGrid.ChangeType.Right:
                {
                    uIDutySummary.get_gameObject().get_transform().set_localPosition(new Vector3(960f * (float)num2, localPosition.y, localPosition.z));
                    Tween tween3 = TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOLocalMoveX(uIDutySummary.get_transform(), 0f, 0.6f, false), 0.05f * (float)num), 15);
                    uIDutySummary.Show();
                    TweenSettingsExtensions.Join(sequence, tween3);
                    break;
                }

                case UIDutyGrid.ChangeType.Update:
                {
                    uIDutySummary.get_gameObject().get_transform().set_localPosition(new Vector3(localPosition.x, 0f, localPosition.z));
                    Sequence sequence3 = DOTween.Sequence();
                    Tween    tween4    = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(uIDutySummary.get_transform(), localPosition.y, 0.6f, false), 15);
                    TweenSettingsExtensions.Append(sequence3, tween4);
                    UIDutySummary dsumt = uIDutySummary;
                    if (num != 0)
                    {
                        Tween tween5 = DOVirtual.Float(0f, 1f, 0.7f, delegate(float alpha)
                            {
                                dsumt.GetPanel().alpha = alpha;
                            });
                        TweenSettingsExtensions.Join(sequence3, tween5);
                    }
                    uIDutySummary.Show();
                    TweenSettingsExtensions.Join(sequence, sequence3);
                    break;
                }
                }
                num++;
            }
        }
 public Tween GenerateSlotOutAnimation()
 {
     return(TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), this.mVector3_DefaultLocalPosition.x, 0.15f, false), 0.075f), 9));
 }
Пример #20
0
 private void HideShortCutStateView()
 {
     ShortcutExtensions.DOKill(this.mTransform_UIPracticeShortCutSwitch, false);
     ShortcutExtensions.DOLocalMoveX(this.mTransform_UIPracticeShortCutSwitch, -600f, 0.3f, false);
 }