Пример #1
0
        public unsafe void PlayAnimation(int ribbonMessageID, Action <FightInfoMessageRibbon> callback)
        {
            //IL_005c: Unknown result type (might be due to invalid IL or missing references)
            //IL_0080: Unknown result type (might be due to invalid IL or missing references)
            //IL_00e0: Unknown result type (might be due to invalid IL or missing references)
            //IL_0113: Unknown result type (might be due to invalid IL or missing references)
            //IL_016d: Unknown result type (might be due to invalid IL or missing references)
            //IL_0177: Expected O, but got Unknown
            this.get_gameObject().SetActive(true);
            m_playerOriginalTextField.SetText(ribbonMessageID, GetProvider());
            m_fieldView.set_alpha(0f);
            m_visualRoot.get_transform().set_localPosition(new Vector3(0f, -100f, 0f));
            m_visualRoot.get_transform().set_localScale(new Vector3(3f, 3f, 3f));
            Sequence obj = DOTween.Sequence();

            TweenSettingsExtensions.Insert(obj, 0f, DOTween.To(new DOGetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), new DOSetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), 1f, 0.5f));
            TweenSettingsExtensions.Insert(obj, 0f, DOTween.To(new DOGetter <Vector3>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), new DOSetter <Vector3>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), Vector3.get_zero(), 0.5f));
            TweenSettingsExtensions.Insert(obj, 0f, DOTween.To(new DOGetter <Vector3>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), new DOSetter <Vector3>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), Vector3.get_one(), 0.3f));
            TweenSettingsExtensions.Insert(obj, 2f, TweenSettingsExtensions.SetDelay <TweenerCore <float, float, FloatOptions> >(DOTween.To(new DOGetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), new DOSetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), 0f, 0.3f), 2f));
            _003C_003Ec__DisplayClass9_0 _003C_003Ec__DisplayClass9_;

            TweenSettingsExtensions.OnComplete <Sequence>(obj, new TweenCallback((object)_003C_003Ec__DisplayClass9_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            TweenExtensions.Play <Sequence>(obj);
            this.get_transform().SetAsLastSibling();
        }
    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();
            }
        });
    }
Пример #3
0
        protected unsafe virtual Sequence TweenOutSequence()
        {
            //IL_0093: Unknown result type (might be due to invalid IL or missing references)
            //IL_00af: Unknown result type (might be due to invalid IL or missing references)
            //IL_00f3: Unknown result type (might be due to invalid IL or missing references)
            //IL_0105: Unknown result type (might be due to invalid IL or missing references)
            //IL_010f: Expected O, but got Unknown
            //IL_0157: Unknown result type (might be due to invalid IL or missing references)
            //IL_0192: Unknown result type (might be due to invalid IL or missing references)
            //IL_019c: Expected O, but got Unknown
            Sequence val = m_currentTweenSequence = DOTween.Sequence();

            enableScrollButtons = false;
            float num = (m_config.outTweenDelayByElement >= 0f) ? m_config.outTweenDelayByElement : ((0f - m_config.outTweenDelayByElement) * (float)(m_elements.Count - 1));

            for (int i = 0; i < m_elements.Count; i++)
            {
                T element = m_elements[i];
                TweenSettingsExtensions.Insert(val, num, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(element.get_transform(), m_outPosition.get_localPosition(), m_config.outTweenDuration, false), m_config.outTweenEase));
                _003C_003Ec__DisplayClass49_0 _003C_003Ec__DisplayClass49_;
                TweenSettingsExtensions.Insert(val, num, TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScaleX(element.get_transform(), m_config.outScale, m_config.outTweenDuration), m_config.outTweenEase), new TweenCallback((object)_003C_003Ec__DisplayClass49_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)));
                Sequence obj  = val;
                float    num2 = num;
                T        val2 = element;
                TweenSettingsExtensions.Insert(obj, num2, TweenSettingsExtensions.SetEase <TweenerCore <float, float, FloatOptions> >(DOTween.To(new DOGetter <float>((object)val2, (IntPtr)(void *) /*OpCode not supported: LdVirtFtn*/), new DOSetter <float>((object)_003C_003Ec__DisplayClass49_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), 0f, m_config.outTweenDuration), m_config.outTweenEase));
                num += m_config.outTweenDelayByElement;
            }
            TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            return(val);
        }
Пример #4
0
        public void PlayExpAnimation(Action onFinished)
        {
            float num  = 1.3f;
            float num2 = 0.4f;
            float maxGaugeTextureWidth = 90f;

            this.mTexture_GaugeExp.width = (int)(maxGaugeTextureWidth * ((float)this.mShipExpModel.ExpRateBefore * 0.01f));
            int num3         = Enumerable.Sum(this.mShipExpModel.ExpRateAfter);
            int currentLevel = this.mShipExpModel.LevelBefore;

            TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(DOVirtual.Float((float)this.mShipExpModel.ExpRateBefore, (float)num3, (float)(num3 / 90) * num2, delegate(float exp)
            {
                this.mTexture_GaugeExp.width = (int)(maxGaugeTextureWidth * (exp % 100f * 0.01f));
                int num4 = (int)(exp / 100f);
                if (currentLevel != num4 + this.mShipExpModel.LevelBefore)
                {
                    currentLevel           = num4 + this.mShipExpModel.LevelBefore;
                    this.mLabel_Level.text = currentLevel.ToString();
                }
            }), num), delegate
            {
                if (this.mShipExpModel.LevelBefore != this.mShipExpModel.LevelAfter)
                {
                    SoundUtils.PlaySE(SEFIleInfos.SE_058);
                    this.PlayLevelUpAnimation();
                }
                if (onFinished != null)
                {
                    onFinished.Invoke();
                }
            });
        }
 public void SwitchToHome(Action onFinishedAnimation)
 {
     DOTween.Kill(this, false);
     TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(0f, 1f, 0.3f, delegate(float alpha)
     {
         this.mPanelThis.alpha = alpha;
     }), this);
     this.mUIFurnitureYousei.Initialize(UIFurnitureYousei.YouseiType.Room);
     this.mUIFurnitureYousei.StartWalk();
     this.mUIFurnitureYousei.get_transform().set_localPosition(Vector3.get_zero());
     this.mUIFurnitureYousei.get_transform().set_localScale(Vector3.get_zero());
     TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mUIFurnitureYousei.get_transform(), 12.5f, 0.2f, false), 30, 1), this);
     TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mUIFurnitureYousei.get_transform(), Vector3.get_one(), 0.6f), 15), delegate
     {
         TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOScale(this.mUIFurnitureYousei.get_transform(), new Vector3(2f, 2f, 2f), 1f), 0.5f), this);
         TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(DOVirtual.Float(this.mUIFurnitureYousei.alpha, 0f, 0.6f, delegate(float alpha)
         {
             this.mUIFurnitureYousei.alpha = alpha;
         }), 0.5f), 18), delegate
         {
             TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(1f, 0f, 0.3f, delegate(float alpha)
             {
                 this.mPanelThis.alpha = alpha;
             }), this);
             if (onFinishedAnimation != null)
             {
                 onFinishedAnimation.Invoke();
             }
         }), this);
     }), this);
 }
Пример #6
0
    public void Focus()
    {
        DOTween.Kill(this, false);
        this.mSprite_Yousei.spriteName = "mini_08_a_01";
        this.mButton_Menu.SetState(UIButtonColor.State.Hover, true);
        Sequence sequence = DOTween.Sequence();
        Tween    tween    = ShortcutExtensions.DOLocalMoveY(this.mSprite_Yousei.get_transform(), 50f, 0.3f, false);
        Tween    tween2   = DOVirtual.Float(this.mSprite_Yousei.fillAmount, 1f, 0.3f, delegate(float percentage)
        {
            this.mSprite_Yousei.fillAmount = percentage;
        });
        Tween tween3 = DOVirtual.Float(0.2f, 1f, 0.3f, delegate(float percentage)
        {
            this.mTexture_Area.alpha = percentage;
        });

        this.mTexture_Area.get_transform().set_localScale(new Vector3(0.1f, 0.1f));
        Tween tween4 = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Area.get_transform(), Vector3.get_one(), 0.1f), 18);

        TweenSettingsExtensions.Append(sequence, tween);
        TweenSettingsExtensions.Join(sequence, tween2);
        TweenSettingsExtensions.Join(sequence, tween3);
        TweenSettingsExtensions.Join(sequence, tween4);
        TweenSettingsExtensions.OnComplete <Sequence>(sequence, delegate
        {
            Tween tween5 = TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(1f, 0.5f, 1.5f, delegate(float percentage)
            {
                this.mTexture_Area.alpha = percentage;
            }), this), 2147483647, 1), 21);
        });
        TweenSettingsExtensions.SetId <Sequence>(sequence, this);
    }
Пример #7
0
 public void Show()
 {
     TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOLocalMove(this.mTexture_Akashi.get_transform(), this.mVector3_Akashi_ShowLocalPosition, 0.4f, false), delegate
     {
         this.mShown = true;
     }), 3);
 }
Пример #8
0
        public override void OnSelectAnimation(Action onAnimationFinished)
        {
            Sequence sequence        = DOTween.Sequence();
            UISprite spriteFormation = Util.Instantiate(this.mSprite_Formation.get_gameObject(), base.get_transform().get_gameObject(), false, false).GetComponent <UISprite>();

            spriteFormation.get_transform().set_localScale(this.mSprite_Formation.get_transform().get_localScale());
            spriteFormation.get_transform().set_localPosition(this.mSprite_Formation.get_transform().get_localPosition());
            Tween tween = DOVirtual.Float(spriteFormation.alpha, 0f, 1f, delegate(float alpha)
            {
                spriteFormation.alpha = alpha;
            });
            Tween tween2 = ShortcutExtensions.DOScale(spriteFormation.get_transform(), new Vector3(1.5f, 1.5f), 1f);

            this.mTexture_Background_Circle.get_transform().localScale(new Vector3(0.3f, 0.3f));
            ShortcutExtensions.DOScale(this.mTexture_Background_Circle.get_transform(), Vector3.get_one(), 0.3f);
            Tween tween3 = DOVirtual.Float(0f, 1f, 0.3f, delegate(float alpha)
            {
                this.mTexture_Background_Circle.alpha = alpha;
            });
            Tween tween4 = ShortcutExtensions.DOScale(this.mTexture_Background_Circle.get_transform(), Vector3.get_one(), 0.3f);

            TweenSettingsExtensions.SetEase <Tween>(tween4, 27);
            TweenCallback tweenCallback = delegate
            {
                if (onAnimationFinished != null)
                {
                    onAnimationFinished.Invoke();
                }
            };

            TweenSettingsExtensions.OnComplete <Sequence>(TweenSettingsExtensions.AppendInterval(TweenSettingsExtensions.Join(TweenSettingsExtensions.Append(sequence, tween3), tween4), 1f), tweenCallback);
        }
        private void OnPortMenuButtonClickEventListener(UIPortMenuButton calledObject)
        {
            bool flag         = -1 < Array.IndexOf <UIPortMenuButton>(this.mUIPortMenuButtons_Current, calledObject);
            bool isSelectable = calledObject.IsSelectable;
            bool flag2        = this.mStateManager.CurrentState == UserInterfacePortMenuManager.State.MainMenu || this.mStateManager.CurrentState == UserInterfacePortMenuManager.State.SubMenu;
            bool flag3        = this.IsControllable();

            if (flag2 && flag && isSelectable && flag3)
            {
                this.mStateManager.PushState(UserInterfacePortMenuManager.State.CallingNextScene);
                this.ChangeFocusButton(calledObject);
                Tween tween = calledObject.GenerateTweenClick();
                TweenSettingsExtensions.OnComplete <Tween>(tween, delegate
                {
                    bool flag4 = this.mUIPortMenuButton_Current is UIPortMenuButton.CompositeMenu;
                    if (this.mStateManager.CurrentState == UserInterfacePortMenuManager.State.SubMenu && !flag4)
                    {
                        this.mUIPortMenuAnimation.Initialize(calledObject);
                        this.mUIPortMenuAnimation.PlayCollectSubAnimation();
                    }
                    else
                    {
                        this.OnSelectedScene(calledObject.GetScene());
                    }
                });
            }
        }
Пример #10
0
 private void OnMoveView(View view, Vector3 moveTo)
 {
     this.mIsAnimationNow = true;
     TweenExtensions.PlayForward(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(view.get_transform(), moveTo, this.ANIMATION_TIME_MOVE, false), this.ANIMATION_EASE_MOVE), delegate
     {
         this.mIsAnimationNow = false;
     }));
 }
Пример #11
0
 private void Hide(float delay)
 {
     this.mTexture_Akashi.mainTexture = this.mTextureAkashi[1];
     TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOLocalMove(this.mTexture_Akashi.get_transform(), this.mVector3_Akashi_GoBackLocalPosition, 0.4f, false), delay), delegate
     {
         this.mShown = false;
         this.OnHidden();
     }), 3);
 }
Пример #12
0
        private unsafe void UpdateElements()
        {
            //IL_004c: Unknown result type (might be due to invalid IL or missing references)
            //IL_0051: Unknown result type (might be due to invalid IL or missing references)
            //IL_008b: Unknown result type (might be due to invalid IL or missing references)
            //IL_0090: Unknown result type (might be due to invalid IL or missing references)
            //IL_00af: Unknown result type (might be due to invalid IL or missing references)
            //IL_00c7: Unknown result type (might be due to invalid IL or missing references)
            //IL_00de: Unknown result type (might be due to invalid IL or missing references)
            //IL_00fe: Unknown result type (might be due to invalid IL or missing references)
            //IL_017c: Unknown result type (might be due to invalid IL or missing references)
            //IL_0186: Expected O, but got Unknown
            int num = m_displayedElements.Count - m_datas.maxElements;

            if (num > m_datas.maxHiddableElements)
            {
                int num2 = num - m_datas.maxHiddableElements;
                for (int i = 0; i < num2; i++)
                {
                    DeQueueVisibleElement();
                }
            }
            Tweener val  = null;
            Vector2 zero = Vector2.get_zero();

            for (int j = 0; j < m_displayedElements.Count; j++)
            {
                HistoryAbstractElement historyAbstractElement = m_displayedElements[m_displayedElements.Count - 1 - j];
                CanvasGroup            canvasGroup            = historyAbstractElement.canvasGroup;
                RectTransform          val2 = historyAbstractElement.get_transform() as RectTransform;
                Rect  rect   = val2.get_rect();
                float height = rect.get_height();
                ShortcutExtensions.DOKill(canvasGroup, false);
                ShortcutExtensions.DOKill(val2, false);
                val = TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(val2, zero, m_datas.positionTweenDuration, false), m_datas.postitionTweenEase);
                if (j == 0)
                {
                    ShortcutExtensions.DOPunchScale(val2, m_datas.inScalePunchValue, m_datas.inScalePunchDuration, 0, 0f);
                }
                else
                {
                    val2.set_localScale(Vector3.get_one());
                }
                if (j < m_datas.maxElements - 1)
                {
                    zero.y -= height + m_datas.spacing;
                }
                if (j >= m_datas.maxElements)
                {
                    DOTweenModuleUI.DOFade(canvasGroup, 0f, m_datas.outAlphaTweenDuration);
                }
            }
            if (val != null)
            {
                TweenSettingsExtensions.OnComplete <Tweener>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            }
        }
 public Tween PlayCount()
 {
     return(TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(DOVirtual.Float((float)this.mFrom, (float)this.mTo, this.mDurationSeconds, delegate(float currentValue)
     {
         this.mLabel_Target.text = ((int)currentValue).ToString();
     }), delegate
     {
         this.OnFinishedCallBack();
     }), 1));
 }
Пример #14
0
 public void MoveToButtonDefaultFocus(Action onFinishedAnimation)
 {
     TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mButton_BattlePractice.get_transform(), this.mVector3_DefaultPositionBattlePractice, 0.4f, false), 21);
     TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOLocalMove(this.mButton_DeckPractice.get_transform(), this.mVector3_DefaultPositionDeckPractice, 0.4f, false), delegate
     {
         if (onFinishedAnimation != null)
         {
             onFinishedAnimation.Invoke();
         }
     }), 21);
 }
Пример #15
0
 public static void AnimationOnFocus(Transform target, Action onFinished)
 {
     target.get_transform().set_localScale(new Vector3(1.1f, 1.1f, 1.1f));
     TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOScale(target, new Vector3(1f, 1f, 1f), 0.1f), delegate
     {
         if (onFinished != null)
         {
             onFinished.Invoke();
         }
     });
 }
 public void Hide(Action onFinishedAnimation)
 {
     this.mTexture_Ohyodo.mainTexture = this.mTextureOhyodo[1];
     TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOLocalMove(this.mTexture_Ohyodo.get_transform(), this.mVector3_Ohyodo_GoBackLocalPosition, 0.4f, false), 0.5f), delegate
     {
         if (onFinishedAnimation != null)
         {
             onFinishedAnimation.Invoke();
         }
     }), 3);
 }
 public void Show(Action onFinishedAnimation)
 {
     ShipUtils.PlayPortVoice(1);
     TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOLocalMove(this.mTexture_Ohyodo.get_transform(), this.mVector3_Ohyodo_ShowLocalPosition, 0.4f, false), delegate
     {
         if (onFinishedAnimation != null)
         {
             onFinishedAnimation.Invoke();
         }
     }), 3);
 }
Пример #18
0
        private unsafe void Hide()
        {
            //IL_0035: Unknown result type (might be due to invalid IL or missing references)
            //IL_003f: Expected O, but got Unknown
            Tweener tweener = m_tweener;

            if (tweener != null)
            {
                TweenExtensions.Kill(tweener, false);
            }
            m_tweener = TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleSprite.DOFade(m_spriteRenderer, 0f, 355f / (678f * MathF.PI)), 6), new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
        }
Пример #19
0
 public override void OnOutDisplay(float animationTime, Ease easeType, Action onFinished)
 {
     base.OnOutDisplay(animationTime, easeType, onFinished);
     TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mSprite_Formation.get_transform(), this.mOnOutDisplayScale, animationTime), easeType), delegate
     {
         if (onFinished != null)
         {
             onFinished.Invoke();
         }
         this.mSprite_Formation.alpha = 0.5f;
     });
 }
Пример #20
0
 public override void OnInDisplay(float animationTime, Ease animationEase, Action onFinished)
 {
     base.OnInDisplay(animationTime, animationEase, onFinished);
     this.mSprite_Formation.alpha = 0.7f;
     TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mSprite_Formation.get_transform(), this.mOnOtherThanCenterScale, animationTime), animationEase), delegate
     {
         if (onFinished != null)
         {
             onFinished.Invoke();
         }
     });
 }
 public void ClickAnimation(Action onFinished)
 {
     TweenExtensions.PlayForward(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mButton_GoStage.get_transform(), new Vector3(0.8f, 0.8f, 0f), 0.15f), 20), delegate
     {
         TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mButton_GoStage.get_transform(), new Vector3(1f, 1f, 0f), 0.15f), 21), delegate
         {
             if (onFinished != null)
             {
                 onFinished.Invoke();
             }
         });
     }));
 }
        public void Initialize(ShipModel model)
        {
            if (model == null)
            {
                return;
            }
            this.mTexture_ShipCard.mainTexture = SingletonMonoBehaviour <ResourceManager> .Instance.ShipTexture.Load(model.MstId, 3);

            TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOShakePosition(this.mTexture_ShipCard.get_transform(), 0.3f, 5f, 10, 90f, false), delegate
            {
                ShortcutExtensions.DOLocalMove(this.mTexture_ShipCard.get_transform(), this.mVector3ShipCardDefaultPosition, 0.1f, false);
            });
        }
Пример #23
0
    private void ChangeOrientation(UserInterfaceAlbumShipViewer.Orientation changeToOrientation, Action onFinished)
    {
        this.mDisplayOrientation = changeToOrientation;
        Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), UserInterfaceAlbumShipViewer.AnimationType.RotateDisplay);
        Tween    tween    = null;

        if (changeToOrientation != UserInterfaceAlbumShipViewer.Orientation.Vertical)
        {
            if (changeToOrientation == UserInterfaceAlbumShipViewer.Orientation.Horizontal)
            {
                Screen.set_orientation(3);
                Tween tween2 = ShortcutExtensions.DOLocalMove(this.mCamera_Main.get_transform(), Vector3.get_zero(), 0.3f, false);
                Tween tween3 = DOVirtual.Float(this.mCamera_Main.get_orthographicSize(), 1f, 0.9f, delegate(float size)
                {
                    this.mCamera_Main.set_orthographicSize(size);
                });
                Tween tween4 = TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DORotate(this.mCamera_Main.get_transform(), new Vector3(0f, 0f, 0f), 0.9f, 0), delegate
                {
                    this.mCamera_Main.get_transform().set_rotation(Quaternion.Euler(0f, 0f, 0f));
                });
                TweenSettingsExtensions.Append(sequence, tween4);
                TweenSettingsExtensions.Join(sequence, tween);
                TweenSettingsExtensions.Join(sequence, tween2);
                TweenSettingsExtensions.Join(sequence, tween3);
            }
        }
        else
        {
            Screen.set_orientation(1);
            Tween tween2 = ShortcutExtensions.DOLocalMove(this.mCamera_Main.get_transform(), Vector3.get_zero(), 0.3f, false);
            Tween tween3 = DOVirtual.Float(this.mCamera_Main.get_orthographicSize(), (float)this.DISPLAY_HEIGHT / (float)this.DISPLAY_WIDTH, 0.9f, delegate(float size)
            {
                this.mCamera_Main.set_orthographicSize(size);
            });
            Tween tween4 = TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DORotate(this.mCamera_Main.get_transform(), new Vector3(0f, 0f, 90f), 0.9f, 0), delegate
            {
                this.mCamera_Main.get_transform().set_rotation(Quaternion.Euler(0f, 0f, 90f));
            });
            TweenSettingsExtensions.Append(sequence, tween3);
            TweenSettingsExtensions.Join(sequence, tween);
            TweenSettingsExtensions.Join(sequence, tween2);
            TweenSettingsExtensions.Join(sequence, tween4);
        }
        TweenSettingsExtensions.OnComplete <Sequence>(sequence, delegate
        {
            if (onFinished != null)
            {
                onFinished.Invoke();
            }
        });
    }
Пример #24
0
 public void Click()
 {
     this.mSprite_Yousei.spriteName = "mini_08_a_03";
     TweenSettingsExtensions.OnComplete <Tween>(TweenSettingsExtensions.SetId <Tween>(DOVirtual.DelayedCall(0.1f, delegate
     {
         this.mSprite_Yousei.spriteName = "mini_08_a_04";
     }, true), this), delegate
     {
         if (this.mOnClickListener != null)
         {
             this.mOnClickListener.Invoke();
         }
     });
 }
Пример #25
0
 public void Hide()
 {
     this.RemoveHideCoroutine();
     this.mHideCoroutine = base.StartCoroutine(this.HideCoroutine(delegate
     {
         this.RemoveHideCoroutine();
         TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(base.get_transform(), this.SHOW_START_SCALE, 0.4f), 20), delegate
         {
             this.OnCallEventCoroutine(UIBaseDialog.EventType.Hidden, this);
         });
         DOVirtual.Float(this.mPanelThis.alpha, 0.01f, 0.4f, delegate(float alpha)
         {
             this.mPanelThis.alpha = alpha;
         });
     }));
 }
    private void OnBackAlbumDetailListener(Tween closeTween)
    {
        bool flag = this.mStateManager.CurrentState == UserInterfaceSlotItemAlbumManager.State.SlotItemDetail;

        if (flag)
        {
            this.mKeyController.ClearKeyAll();
            this.mKeyController.firstUpdate = true;
            this.mUISlotItemAlbumDetail.SetKeyController(null);
            TweenSettingsExtensions.OnComplete <Tween>(closeTween, delegate
            {
                this.mStateManager.PopState();
                this.mStateManager.ResumeState();
                this.mUISlotItemAlbumDetail.SetActive(false);
            });
        }
    }
    public Tween PlayWithRandom()
    {
        int digit = this.mTo.ToString().get_Length();

        return(TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(DOVirtual.Float((float)this.mFrom, (float)this.mTo, this.mDurationSeconds, delegate(float currentValue)
        {
            string text = string.Empty;
            for (int i = 0; i < digit; i++)
            {
                text += Random.Range(0, 9).ToString();
            }
            this.mLabel_Target.text = text;
        }), delegate
        {
            this.mLabel_Target.text = this.mTo.ToString();
            this.OnFinishedCallBack();
        }), 1));
    }
Пример #28
0
 public unsafe void PlayFeedback()
 {
     //IL_0027: Unknown result type (might be due to invalid IL or missing references)
     //IL_00d1: Unknown result type (might be due to invalid IL or missing references)
     //IL_00fe: Unknown result type (might be due to invalid IL or missing references)
     //IL_0108: Expected O, but got Unknown
     if (m_sequence != null && TweenExtensions.IsActive(m_sequence))
     {
         TweenExtensions.Kill(m_sequence, false);
     }
     this.get_transform().set_localScale(Vector3.get_one());
     SetAlpha(1f);
     m_target.set_enabled(true);
     m_sequence = DOTween.Sequence();
     TweenSettingsExtensions.Insert(m_sequence, 0f, DOTween.To(new DOGetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), new DOSetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), 0f, m_tweenDuration));
     TweenSettingsExtensions.Insert(m_sequence, 0f, TweenSettingsExtensions.SetDelay <TweenerCore <Vector3, Vector3, VectorOptions> >(DOTween.To(_003C_003Ec._003C_003E9__2_0 ?? (_003C_003Ec._003C_003E9__2_0 = new DOGetter <Vector3>((object)_003C_003Ec._003C_003E9, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)), new DOSetter <Vector3>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), new Vector3(5f, 5f, 5f), m_tweenDuration), 0f));
     TweenSettingsExtensions.OnComplete <Sequence>(m_sequence, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
 }
        public void PlayResult(Action onFinished)
        {
            this.mLabel_Exp.text     = "0";
            this.mLabel_Fuel.text    = "0";
            this.mLabel_Ammo.text    = "0";
            this.mLabel_Steel.text   = "0";
            this.mLabel_Bauxite.text = "0";
            this.mLabel_SPoint.text  = "0";
            Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            Tween    tween    = ShortcutExtensions.DOLocalMove(this.mTransform_ShipFrame, new Vector3(265f, 150f), 0.8f, false);

            this.mTransform_ResultBonusFrame.get_transform().localPositionX(128f);
            Tween    tween2           = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_ResultBonusFrame, Vector3.get_zero(), 0.4f, false), 21);
            UIWidget resultBonusAlpha = this.mTransform_ResultBonusFrame.GetComponent <UIWidget>();

            resultBonusAlpha.alpha = 0f;
            Tween tween3 = TweenSettingsExtensions.SetEase <Tweener>(DOVirtual.Float(0f, 1f, 0.3f, delegate(float alpha)
            {
                resultBonusAlpha.alpha = alpha;
            }), 20);
            Tween tween4 = DOVirtual.Float(0f, 1f, 0.8f, delegate(float part)
            {
                MaterialInfo materialInfo = this.mMissionResultModel.GetMaterialInfo();
                this.mLabel_Exp.text      = ((int)((float)this.mMissionResultModel.Exp * part)).ToString();
                this.mLabel_Fuel.text     = ((int)((float)materialInfo.Fuel * part)).ToString();
                this.mLabel_Ammo.text     = ((int)((float)materialInfo.Ammo * part)).ToString();
                this.mLabel_Steel.text    = ((int)((float)materialInfo.Steel * part)).ToString();
                this.mLabel_Bauxite.text  = ((int)((float)materialInfo.Baux * part)).ToString();
                this.mLabel_SPoint.text   = ((int)((float)this.mMissionResultModel.Spoint * part)).ToString();
            });

            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.AppendInterval(sequence, 0.5f);
            TweenSettingsExtensions.Append(sequence, tween4);
            TweenSettingsExtensions.Join(sequence, tween3);
            TweenSettingsExtensions.Join(sequence, tween2);
            TweenSettingsExtensions.OnComplete <Sequence>(sequence, delegate
            {
                if (onFinished != null)
                {
                    onFinished.Invoke();
                }
            });
        }
Пример #30
0
        public void Show()
        {
            DOTween.Kill(this, false);
            Sequence sequence = DOTween.Sequence();
            Tween    tween    = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_Arsenal.get_transform(), this.newVector3(-240f, 0f, 0f), 1f, false), 18);
            Tween    tween2   = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_Revamp.get_transform(), this.newVector3(240f, 0f, 0f), 1f, false), 18);
            Tween    tween3   = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_ShipFrame, this.ShipLocate, 1.2f, false), 27);

            TweenSettingsExtensions.SetId <Sequence>(sequence, this);
            TweenSettingsExtensions.SetId <Tween>(tween, this);
            TweenSettingsExtensions.SetId <Tween>(tween2, this);
            TweenSettingsExtensions.SetId <Tween>(tween3, this);
            TweenSettingsExtensions.Join(TweenSettingsExtensions.Join(TweenSettingsExtensions.Append(sequence, tween), tween2), tween3);
            TweenSettingsExtensions.OnComplete <Sequence>(sequence, delegate
            {
                this.mIsShown = true;
                this.ChangeFocus(UIArsenalSelector.SelectType.Arsenal);
            });
        }