Exemple #1
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);
    }
        private Tween GenerateTweenSmoke(UITexture smokeTexture, float duration)
        {
            bool flag = DOTween.IsTweening(smokeTexture);

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

            TweenSettingsExtensions.SetId <Sequence>(sequence, sequence);
            Sequence sequence2 = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            Tween    tween     = DOVirtual.Float(0f, 1f, duration * 0.5f, delegate(float alpha)
            {
                smokeTexture.alpha = alpha;
            });
            Tween tween2 = DOVirtual.Float(1f, 0f, duration * 0.5f, delegate(float alpha)
            {
                smokeTexture.alpha = alpha;
            });

            TweenSettingsExtensions.Append(sequence2, tween);
            TweenSettingsExtensions.Append(sequence2, tween2);
            Tween tween3 = ShortcutExtensions.DOLocalMoveY(smokeTexture.get_transform(), smokeTexture.get_transform().get_localPosition().y + 10f, duration, false);

            TweenSettingsExtensions.Append(sequence, sequence2);
            TweenSettingsExtensions.Join(sequence, tween3);
            return(sequence);
        }
Exemple #3
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     if (!m_destroying)
     {
         ShortcutExtensions.DOLocalMoveY(m_effectTarget, 5f, 0.1f, false);
         AudioManager.PlayOneShot(m_overSound);
     }
 }
 public void DeadDown()
 {
     this.bHittedColor = false;
     Dictionary <EElementType, BodyElementData> .Enumerator enumerator = this.ElementColor.GetEnumerator();
     while (enumerator.MoveNext())
     {
         KeyValuePair <EElementType, BodyElementData> current = enumerator.Current;
         current.Value.count = 0;
     }
     if (this.RotateMask.transform.localPosition.y > 0f)
     {
         ShortcutExtensions.DOKill(this.RotateMask.transform, false);
         ShortcutExtensions.DOLocalMoveY(this.RotateMask.transform, 0f, 0.3f, false);
     }
 }
Exemple #5
0
    public void SetGold(long gold)
    {
        this.KillSequence();
        this.seq = DOTween.Sequence();
        this.child.localPosition = Vector3.zero;
        this.mCanvasGroup.alpha  = 1f;
        TweenSettingsExtensions.Append(this.seq, ShortcutExtensions.DOLocalMoveY(this.child, 100f, 1f, false));
        TweenSettingsExtensions.Join(this.seq, TweenSettingsExtensions.Append(TweenSettingsExtensions.AppendInterval(DOTween.Sequence(), 0.5f), ShortcutExtensions46.DOFade(this.mCanvasGroup, 0f, 0.5f)));
        TweenSettingsExtensions.AppendCallback(this.seq, new TweenCallback(this, this.< SetGold > m__0));
        object[] args = new object[] { gold };
        this.text.text = Utils.FormatString("+{0}", args);
        float num  = this.imageRect.sizeDelta.x + this.text.preferredWidth;
        float x    = -num / 2f;
        float num3 = x + this.imageRect.sizeDelta.x;

        this.imageRect.anchoredPosition = new Vector2(x, this.imageRect.anchoredPosition.y);
        this.text.get_rectTransform().anchoredPosition = new Vector2(num3, this.text.get_rectTransform().anchoredPosition.y);
    }
Exemple #6
0
    public void RemoveFocus()
    {
        DOTween.Kill(this, false);
        this.mSprite_Yousei.spriteName = "mini_08_a_02";
        this.mButton_Menu.SetState(UIButtonColor.State.Normal, true);
        Sequence sequence = DOTween.Sequence();
        Tween    tween    = ShortcutExtensions.DOLocalMoveY(this.mSprite_Yousei.get_transform(), -25f, 0.3f, false);
        Tween    tween2   = DOVirtual.Float(this.mSprite_Yousei.fillAmount, 0.5f, 0.3f, delegate(float percentage)
        {
            this.mSprite_Yousei.fillAmount = percentage;
        });
        Tween tween3 = DOVirtual.Float(this.mTexture_Area.alpha, 0f, 0.5f, delegate(float percentage)
        {
            this.mTexture_Area.alpha = percentage;
        });

        TweenSettingsExtensions.Append(sequence, tween);
        TweenSettingsExtensions.Join(sequence, tween2);
        TweenSettingsExtensions.Join(sequence, tween3);
        TweenSettingsExtensions.SetId <Sequence>(sequence, this);
    }
        public IEnumerator PlayEnterAnimation()
        {
            SafeArea.set_localPosition(new Vector3(0f, 1080f, 0f));
            Sequence val = DOTween.Sequence();

            TweenSettingsExtensions.Append(val, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(SafeArea, 0f, 0.25f, false), 30));
            TweenExtensions.Play <Sequence>(val);
            yield return(TweenExtensions.WaitForKill(val));
        }
Exemple #8
0
 public void OnTouchYousei()
 {
     if (!DOTween.IsTweening(this.mTexture_Yousei))
     {
         Tween tween = TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mTransform_YouseiOffset, (float)Random.Range(55, 80), 0.5f, false), 9), 2, 1), this.mTexture_Yousei);
     }
 }
 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);
 }
Exemple #10
0
 public static void DOLocalMoveY(Transform target, float endValue, float duration, TweenCallback action)
 {
     OnComplete(ShortcutExtensions.DOLocalMoveY(target, endValue, duration), action);
 }
Exemple #11
0
        public void PlayAnimation()
        {
            if (DOTween.IsTweening(this))
            {
                DOTween.Kill(this, false);
            }
            Sequence sequence = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence, this);
            this.mTexture_Yousei.alpha = 1E-06f;
            this.mTexture_Yousei.get_transform().localPositionY(-90f);
            this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_Off;
            this.mTexture_Deck.alpha         = 1E-06f;
            this.mTexture_Deck.get_transform().localPositionY(-10f);
            Sequence sequence2 = DOTween.Sequence();
            float    num       = 1f;
            Tween    tween     = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mTexture_Yousei.get_transform(), -50f, num, false), 27);
            Tween    tween2    = DOVirtual.Float(0f, 1f, num, delegate(float alpha)
            {
                this.mTexture_Yousei.alpha = alpha;
            });

            TweenSettingsExtensions.Append(sequence2, tween);
            TweenSettingsExtensions.Join(sequence2, tween2);
            TweenSettingsExtensions.Append(sequence, sequence2);
            Sequence      sequence3     = DOTween.Sequence();
            TweenCallback tweenCallback = delegate
            {
                this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_On;
            };
            Sequence sequence4 = DOTween.Sequence();
            Tween    tween3    = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mTexture_Deck.get_transform(), 20f, num, false), 27);
            Tween    tween4    = DOVirtual.Float(0f, 1f, num, delegate(float alpha)
            {
                this.mTexture_Deck.alpha = alpha;
            });

            TweenSettingsExtensions.OnPlay <Sequence>(sequence4, tweenCallback);
            TweenSettingsExtensions.Append(sequence4, tween3);
            TweenSettingsExtensions.Join(sequence4, tween4);
            TweenSettingsExtensions.Append(sequence, sequence4);
            Sequence      sequence5      = DOTween.Sequence();
            Sequence      sequence6      = DOTween.Sequence();
            TweenCallback tweenCallback2 = delegate
            {
                this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_On;
            };
            TweenCallback tweenCallback3 = delegate
            {
                this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_Off;
            };

            TweenSettingsExtensions.AppendInterval(sequence6, 0.3f);
            TweenSettingsExtensions.AppendCallback(sequence6, tweenCallback3);
            TweenSettingsExtensions.AppendInterval(sequence6, 0.3f);
            TweenSettingsExtensions.AppendCallback(sequence6, tweenCallback2);
            TweenSettingsExtensions.SetLoops <Sequence>(sequence6, 2147483647);
            TweenSettingsExtensions.Append(sequence5, sequence6);
            Sequence sequence7 = DOTween.Sequence();
            Tween    tween5    = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mTexture_Deck.get_transform(), 24f, 1.5f, false), 6);
            Tween    tween6    = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mTexture_Deck.get_transform(), 20f, 1.5f, false), 6);

            TweenSettingsExtensions.Append(sequence7, tween5);
            TweenSettingsExtensions.Append(sequence7, tween6);
            TweenSettingsExtensions.SetLoops <Sequence>(sequence7, 2147483647);
            TweenSettingsExtensions.Join(sequence5, sequence7);
            TweenSettingsExtensions.Append(sequence, sequence5);
        }
Exemple #12
0
        public unsafe override Sequence DestroySequence()
        {
            //IL_0017: Unknown result type (might be due to invalid IL or missing references)
            Sequence obj = DOTween.Sequence();

            TweenSettingsExtensions.Insert(obj, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(this.get_transform(), ((IntPtr)(void *)this.get_transform().get_localPosition()).y + 40f, 0.25f, false), 3));
            TweenSettingsExtensions.Insert(obj, 0f, DOTweenModuleUI.DOFade(m_canvasGroup, 0f, 0.25f));
            return(obj);
        }
        private Tween GenerateTweenParameterUp()
        {
            float    y        = 0f;
            float    num      = 20f;
            float    num2     = 1.5f;
            float    num3     = 0.5f;
            Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);

            this.mTexture_ParameterUp.alpha = 0f;
            this.mTexture_ParameterUp.get_transform().localPositionY(y);
            Tween tween = TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(DOVirtual.Float(1f, 0f, num2, delegate(float alpha)
            {
                this.mTexture_ParameterUp.alpha = alpha;
            }), num3), this);

            TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mTexture_ParameterUp.get_transform(), num, num2, false), this));
            TweenSettingsExtensions.Join(sequence, tween);
            TweenSettingsExtensions.OnPlay <Sequence>(sequence, delegate
            {
                this.mTexture_ParameterUp.alpha = 1f;
            });
            return(sequence);
        }
Exemple #14
0
 public void OnPointerExit(PointerEventData eventData)
 {
     ShortcutExtensions.DOLocalMoveY(m_effectTarget, 0f, 0.1f, false);
 }
Exemple #15
0
    public override void OnHandleNotification(INotification notification)
    {
        string name = notification.Name;
        object body = notification.Body;

        if (name != null)
        {
            if (name == "PUB_UI_UPDATE_CURRENCY")
            {
                this.UpdateCurrency();
            }
            else if (name == "CurrencyKeyRotate")
            {
                if (this.keyrotate != null)
                {
                    this.keyrotate.Play("KeyRotate");
                }
            }
            else if (name == "UseCurrencyKey")
            {
                this.SetUseKeyShow(true);
                if (this.mUseKey != null)
                {
                    this.mUseKey.alpha = 1f;
                    this.mUseKey.transform.localPosition = Vector3.zero;
                    TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.Join(TweenSettingsExtensions.Append(DOTween.Sequence(), ShortcutExtensions46.DOFade(this.mUseKey, 0.8f, 1f)), ShortcutExtensions.DOLocalMoveY(this.mUseKey.transform, -100f, 1f, false)), new TweenCallback(this, this.< OnHandleNotification > m__3));
                }
            }
            else if (name == "UseCurrency")
            {
                CurrencyFlyCtrl.CurrencyUseStruct struct2 = (CurrencyFlyCtrl.CurrencyUseStruct)body;
                if (this.mFlyCtrl == null)
                {
                    this.mFlyCtrl = new CurrencyFlyCtrl();
                }
                this.mFlyCtrl.UseAction(mCurrencyPathList[struct2.type], base.transform, this.GetUseStartPos(struct2.type), struct2.endpos, struct2.count, struct2.callback);
            }
            else if (name == "GetCurrency")
            {
                CurrencyFlyCtrl.CurrencyGetStruct struct3 = (CurrencyFlyCtrl.CurrencyGetStruct)body;
                if (this.mFlyCtrl == null)
                {
                    this.mFlyCtrl = new CurrencyFlyCtrl();
                }
                this.mFlyCtrl.UseAction(mCurrencyPathList[struct3.type], base.transform, struct3.startpos, this.GetUseStartPos(struct3.type), struct3.count, null);
            }
        }
    }
Exemple #16
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++;
            }
        }