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();
            }
        });
    }
Esempio n. 2
0
 private void update_progress()
 {
     if (((this.Progress_Me != null) && (this.Progress_Other != null)) && (this.Progress_Light != null))
     {
         if ((this.score_me == 0) && (this.score_other == 0))
         {
             this.Progress_Me.sizeDelta           = new Vector2(this.allwidth / 2f, this.height);
             this.Progress_Other.sizeDelta        = new Vector2(this.allwidth / 2f, this.height);
             this.Progress_Light.anchoredPosition = new Vector2(0f, 0f);
         }
         else if (this.score_other == 0)
         {
             this.Progress_Me.sizeDelta           = new Vector2(this.allwidth, this.height);
             this.Progress_Other.sizeDelta        = new Vector2(0f, this.height);
             this.Progress_Light.anchoredPosition = new Vector2(this.allwidth / 2f, 0f);
         }
         else
         {
             float num  = this.score_me + this.score_other;
             float num2 = ((float)this.score_me) / num;
             float x    = num2 * this.allwidth;
             this.Progress_Me.sizeDelta           = new Vector2(x, this.height);
             this.Progress_Other.sizeDelta        = new Vector2(this.allwidth - x, this.height);
             this.Progress_Light.anchoredPosition = new Vector2(x - (this.allwidth / 2f), 0f);
             Transform transform = null;
             if (this.score_other > this.score_me)
             {
                 transform = this.Text_Other_Name.transform;
             }
             else if (this.score_me > this.score_other)
             {
                 transform = this.Text_Me_Name.transform;
             }
             if (transform != null)
             {
                 if (transform != this.t_name)
                 {
                     this.KillSeq();
                     if (this.t_name != null)
                     {
                         this.t_name.localScale    = Vector3.one;
                         this.t_name.localRotation = Quaternion.identity;
                     }
                     this.t_name            = transform;
                     this.t_name.localScale = Vector3.one * 1.35f;
                     this.seq_name          = DOTween.Sequence();
                     TweenSettingsExtensions.Append(this.seq_name, ShortcutExtensions.DOScale(this.t_name, Vector3.one * 1.5f, 0.1f));
                     TweenSettingsExtensions.Join(this.seq_name, ShortcutExtensions.DOShakeRotation(this.t_name, 0.1f, 5f, 10, 90f, true));
                     TweenSettingsExtensions.SetEase <Sequence>(this.seq_name, 6);
                     TweenSettingsExtensions.SetLoops <Sequence>(this.seq_name, -1, 1);
                     TweenSettingsExtensions.SetUpdate <Sequence>(this.seq_name, true);
                 }
             }
             else
             {
                 this.KillSeq();
             }
         }
     }
 }
Esempio n. 3
0
    private void InitUI()
    {
        this.mCurrencyCtrl.gameObject.SetActive(false);
        this.mEquipCtrl.gameObject.SetActive(false);
        this.seq = DOTween.Sequence();
        PropType type = this.mTransfer.type;

        if (type == PropType.eCurrency)
        {
            this.mCurrencyCtrl.gameObject.SetActive(true);
            TweenSettingsExtensions.Append(this.seq, this.mCurrencyCtrl.Init(this.mTransfer));
        }
        else if (type == PropType.eEquip)
        {
            this.mEquipCtrl.gameObject.SetActive(true);
            LocalSave.EquipOne equip = new LocalSave.EquipOne {
                EquipID = this.mTransfer.id,
                Level   = 1,
                Count   = 1
            };
            TweenSettingsExtensions.Append(this.seq, this.mEquipCtrl.Init(equip, this.mTransfer.count));
        }
        else
        {
            object[] args = new object[] { this.mTransfer.ToString() };
            SdkManager.Bugly_Report("BoxOpenOneUICtrl", Utils.FormatString("InitUI {0}", args));
        }
        if (< > f__am$cache0 == null)
        {
Esempio n. 4
0
    private Tween GenerateSplayAnimation(UITexture texture)
    {
        Tween tween = TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(0f, 1f, 3f, delegate(float percentage)
        {
            texture.width = (int)((float)this.mDefaultSplayTailWidth + 30f * percentage);
        }), this);
        Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(TweenSettingsExtensions.Append(TweenSettingsExtensions.Append(DOTween.Sequence(), TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(0f, 1f, 1.5f, delegate(float percentage)
        {
            texture.alpha = percentage;
        }), this)), TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(1f, 0f, 1.5f, delegate(float percentage)
        {
            texture.alpha = percentage;
        }), this)), this);
        Sequence sequence2 = DOTween.Sequence();

        TweenSettingsExtensions.Join(sequence2, tween);
        TweenSettingsExtensions.Join(sequence2, sequence);
        TweenSettingsExtensions.OnPlay <Sequence>(sequence2, delegate
        {
            texture.alpha = 0f;
            texture.width = this.mDefaultSplayTailWidth;
        });
        TweenSettingsExtensions.SetId <Sequence>(sequence2, this);
        return(sequence2);
    }
        private void PlaySlotParamUpProduction()
        {
            List <int> randomIndexMap        = UIDeckPracticeProductionMovieClip.Util.GenerateRandomIndexMap(this.mDeckModel);
            Sequence   randomPowerUpSequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);

            ShipModel[] shipModels = this.mDeckPracticeResultModel.Ships;
            TweenSettingsExtensions.SetId <Tween>(DOVirtual.DelayedCall(3.5f, delegate
            {
                Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
                int num           = 0;
                using (List <int> .Enumerator enumerator = randomIndexMap.GetEnumerator())
                {
                    while (enumerator.MoveNext())
                    {
                        int current = enumerator.get_Current();
                        Tween tween = TweenSettingsExtensions.SetId <Tween>(this.GeneratePowerUpNotifyTween(shipModels[current], (float)num++), this);
                        TweenSettingsExtensions.Append(randomPowerUpSequence, tween);
                    }
                }
                TweenSettingsExtensions.Join(sequence, randomPowerUpSequence);
                TweenSettingsExtensions.Join(sequence, TweenSettingsExtensions.SetId <Tween>(DOVirtual.DelayedCall(7f, delegate
                {
                    this.FinishedProduction();
                }, true), this));
            }, true), this);
        }
Esempio n. 6
0
 private unsafe void ShowCategory(OptionCategory selectedCategory)
 {
     //IL_00a5: Unknown result type (might be due to invalid IL or missing references)
     //IL_00af: Expected O, but got Unknown
     //IL_00cb: Unknown result type (might be due to invalid IL or missing references)
     //IL_00d5: Expected O, but got Unknown
     if (selectedCategory == m_selectedCategory)
     {
         return;
     }
     if (m_transitionTweenSequence != null && TweenExtensions.IsActive(m_transitionTweenSequence))
     {
         TweenExtensions.Kill(m_transitionTweenSequence, false);
         if (m_previousCategory != null)
         {
             m_previousCategory.SetVisible(value: false);
         }
     }
     m_previousCategory        = m_selectedCategory;
     m_selectedCategory        = selectedCategory;
     m_transitionTweenSequence = DOTween.Sequence();
     if (m_previousCategory != null)
     {
         TweenSettingsExtensions.Append(m_transitionTweenSequence, m_previousCategory.DoFade(0f, m_transitionDuration));
         TweenSettingsExtensions.AppendCallback(m_transitionTweenSequence, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     }
     if (m_selectedCategory != null)
     {
         TweenSettingsExtensions.AppendCallback(m_transitionTweenSequence, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
         TweenSettingsExtensions.Append(m_transitionTweenSequence, m_selectedCategory.DoFade(1f, m_transitionDuration));
     }
 }
Esempio n. 7
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);
        }
Esempio n. 9
0
 private void PlaySelectAnimation(bool select, bool fullAnimation = true)
 {
     if (select)
     {
         m_listSelectionAnimator.SetBool("Selected", true);
         if (fullAnimation)
         {
             Sequence val = Sequence();
             TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(m_canvasGroup.get_transform(), m_minScale, 0.05f), 3));
             TweenSettingsExtensions.Append(val, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(m_canvasGroup.get_transform(), 1f, 0.1f), 3));
             if (m_editMode)
             {
                 TweenSettingsExtensions.Insert(val, 0f, Fade(visible: true));
             }
         }
         return;
     }
     m_listSelectionAnimator.SetBool("Selected", false);
     if (fullAnimation)
     {
         Sequence val2 = Sequence();
         if (m_editMode)
         {
             TweenSettingsExtensions.Insert(val2, 0f, Fade(visible: false));
         }
     }
 }
Esempio n. 10
0
    public Sequence GetTweener()
    {
        Sequence sequence = DOTween.Sequence();

        TweenSettingsExtensions.Append(sequence, ShortcutExtensions.DOScale(base.transform, Vector3.one * 1.3f, 0.2f));
        TweenSettingsExtensions.Append(sequence, ShortcutExtensions.DOScale(base.transform, Vector3.one, 0.1f));
        return(sequence);
    }
        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);
        }
Esempio n. 12
0
        private void Animation()
        {
            bool flag = DOTween.IsTweening(this);

            if (flag)
            {
                return;
            }
            Sequence sequence = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence, this);
            Sequence sequence2 = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence2, this);
            this.mTransform_Fuurin.set_localRotation(Quaternion.Euler(new Vector3(0f, 0f, -10f)));
            Tween tween  = ShortcutExtensions.DOLocalRotate(this.mTransform_Fuurin.get_transform(), Vector3.get_zero(), 0.6f, 0);
            Tween tween2 = ShortcutExtensions.DOLocalRotate(this.mTransform_Fuurin.get_transform(), new Vector3(0f, 0f, -5f), 0.6f, 0);
            Tween tween3 = ShortcutExtensions.DOLocalRotate(this.mTransform_Fuurin.get_transform(), Vector3.get_zero(), 0.3f, 0);

            TweenSettingsExtensions.Append(sequence2, tween);
            TweenSettingsExtensions.Append(sequence2, tween2);
            TweenSettingsExtensions.Append(sequence2, tween3);
            Sequence sequence3 = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence3, this);
            TweenCallback tweenCallback = delegate
            {
                this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_2;
            };

            TweenSettingsExtensions.OnPlay <Sequence>(sequence3, tweenCallback);
            TweenSettingsExtensions.AppendInterval(sequence3, 0.1f);
            TweenCallback tweenCallback2 = delegate
            {
                this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_0;
            };
            Tween tween4 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, -4f), 0.2f, 0);
            Tween tween5 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, 25f), 0.8f, 0);
            Tween tween6 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, -12.5f), 0.8f, 0);
            Tween tween7 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, 0f), 0.8f, 0);

            TweenSettingsExtensions.Append(sequence3, tween4);
            TweenSettingsExtensions.Append(sequence3, tween5);
            TweenSettingsExtensions.Append(sequence3, tween6);
            TweenSettingsExtensions.Append(sequence3, tween7);
            TweenSettingsExtensions.AppendCallback(sequence3, delegate
            {
                this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_1;
            });
            TweenSettingsExtensions.AppendInterval(sequence3, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence3, delegate
            {
                this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_0;
            });
            TweenSettingsExtensions.Append(sequence, sequence2);
            TweenSettingsExtensions.Join(sequence, sequence3);
            SoundUtils.PlaySE(this.mAudioClip_Fuurin);
        }
 public void PlayTextScale(float scale, float time)
 {
     if (this.text != null)
     {
         Sequence sequence = DOTween.Sequence();
         TweenSettingsExtensions.SetUpdate <Sequence>(sequence, true);
         TweenSettingsExtensions.Append(sequence, ShortcutExtensions.DOScale(this.text.transform, scale, time));
     }
 }
Esempio n. 14
0
        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));
        }
Esempio n. 15
0
        public unsafe IEnumerator Unload()
        {
            DOTweenModuleUI.DOFade(m_greyBG, 0f, 0.5f);
            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.25f);
            Sequence val = DOTween.Sequence();

            TweenSettingsExtensions.Append(val, ShortcutExtensions.DOLocalMove(SafeArea, new Vector3(((IntPtr)(void *)SafeArea.get_localPosition()).x, 1080f, 0f), 0.25f, false));
            TweenExtensions.Play <Sequence>(val);
            yield return(TweenExtensions.WaitForKill(val));
        }
        private void Animation()
        {
            Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            Tween    tween    = this.GenerateFirstFireWorks();

            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.Append(sequence, this.GenerateCommonFireWorks());
            TweenSettingsExtensions.Append(sequence, this.GenerateCommonFireWorks());
            TweenSettingsExtensions.Append(sequence, this.GenerateCommonFireWorks());
        }
        private Tween GenerateFirstFireWorks()
        {
            Sequence      sequence      = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            TweenCallback tweenCallback = delegate
            {
                this.mTexture_Fire.mainTexture = this.mTexture2d_Red;
            };
            TweenCallback tweenCallback2 = delegate
            {
                this.mTexture_Fire.mainTexture = this.mTexture2d_Yellow;
            };
            TweenCallback tweenCallback3 = delegate
            {
                this.mTexture_Fire.mainTexture = this.mTexture2d_Blue;
            };
            TweenCallback tweenCallback4 = delegate
            {
                this.mTexture_Fire.mainTexture = this.mTexture2d_White;
            };
            Tween tween = DOVirtual.Float(0f, 1f, 0.15f, delegate(float alpha)
            {
                this.mTexture_Fire.alpha = alpha;
            });
            Tween tween2 = DOVirtual.Float(1f, 0f, 0.8f, delegate(float alpha)
            {
                this.mTexture_Fire.alpha = alpha;
            });
            Tween tween3 = DOVirtual.Float(1f, 0f, 1.6f, delegate(float alpha)
            {
                this.mTexture_Fire.alpha = alpha;
            });
            TweenCallback tweenCallback5 = delegate
            {
                this.mTexture_Fire.alpha  = 0f;
                this.mAudioSource_Playing = SoundUtils.PlaySE(this.mAudioClip_Hanabi_0);
            };
            Tween tween4 = DOVirtual.Float(0f, 1f, 2f, delegate(float alpha)
            {
                this.mTexture_Fire.alpha = alpha;
            });

            TweenSettingsExtensions.OnPlay <Sequence>(sequence, tweenCallback5);
            TweenSettingsExtensions.Append(sequence, tween4);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback);
            TweenSettingsExtensions.AppendInterval(sequence, 0.15f);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback2);
            TweenSettingsExtensions.AppendInterval(sequence, 0.15f);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback3);
            TweenSettingsExtensions.AppendInterval(sequence, 0f);
            TweenSettingsExtensions.Append(sequence, tween2);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback4);
            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.Append(sequence, tween3);
            return(sequence);
        }
Esempio n. 18
0
    protected override void OnOpen()
    {
        IProxy proxy = Facade.Instance.RetrieveProxy("NetDoingProxy");

        this.mTransfer          = proxy.Data as NetDoingProxy.Transfer;
        this.mCanvasGroup.alpha = 0f;
        this.seq_delay          = TweenSettingsExtensions.SetUpdate <Sequence>(TweenSettingsExtensions.Append(TweenSettingsExtensions.AppendInterval(DOTween.Sequence(), 0.6f), ShortcutExtensions46.DOFade(this.mCanvasGroup, 0.6666667f, 1f)), true);
        this.SetLoading(0);
        this.seq_load = TweenSettingsExtensions.SetUpdate <Sequence>(TweenSettingsExtensions.SetLoops <Sequence>(TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.AppendInterval(DOTween.Sequence(), 0.5f), new TweenCallback(this, this.< OnOpen > m__0)), -1), true);
        Updater.AddUpdate("netdoing", new Action <float>(this.OnUpdate), true);
    }
Esempio n. 19
0
    public Sequence Play(float add)
    {
        add *= 100f;
        this.currentaddvalue -= this.mTransfer.changevalue;
        this.currentaddvalue += add;
        this.addvalue         = this.currentaddvalue;
        this.currentlevel     = this.mTransfer.currentlevel;
        this.currentvalue     = this.mTransfer.currentvalue;
        this.mTransfer.clear();
        this.KillSequence();
        this.seq = DOTween.Sequence();
        float num  = this.getcurrentmax();
        float num2 = 0f;
        float num3 = 0f;
        float num4 = 0f;
        float num5 = 0f;

        while ((this.currentvalue + this.addvalue) >= num)
        {
            num3 = 1f;
            num2 = this.currentvalue / num;
            this.currentlevel++;
            num5  = (num3 - num2) * this.progresstime;
            num4 += num5;
            if (this.seq != null)
            {
                int currentlevel = this.currentlevel;
                TweenSettingsExtensions.Append(this.seq, TweenSettingsExtensions.OnUpdate <TweenerCore <float, float, FloatOptions> >(DOTween.To(new DOGetter <float>(this, this.< Play > m__0), new DOSetter <float>(this, this.< Play > m__1), num, num5), new TweenCallback(this, this.< Play > m__2)));
                TweenSettingsExtensions.AppendCallback(this.seq, new TweenCallback(this, this.< Play > m__3));
                TweenSettingsExtensions.AppendCallback(this.seq, new TweenCallback(this, this.< Play > m__4));
            }
            this.addvalue    -= num - this.currentvalue;
            this.currentvalue = 0f;
            num = this.getcurrentmax();
        }
        if (this.currentlevel >= GameLogic.Self.m_EntityData.MaxLevel)
        {
            TweenSettingsExtensions.AppendCallback(this.seq, new TweenCallback(this, this.< Play > m__5));
        }
        else
        {
            num2  = this.currentvalue / num;
            num3  = (this.currentvalue + this.addvalue) / num;
            num5  = (num3 - num2) * this.progresstime;
            num4 += num5;
            if (this.seq != null)
            {
                TweenSettingsExtensions.Append(this.seq, TweenSettingsExtensions.OnUpdate <TweenerCore <float, float, FloatOptions> >(DOTween.To(new DOGetter <float>(this, this.< Play > m__6), new DOSetter <float>(this, this.< Play > m__7), this.currentvalue + this.addvalue, num5), new TweenCallback(this, this.< Play > m__8)));
                TweenSettingsExtensions.AppendCallback(this.seq, new TweenCallback(this, this.< Play > m__9));
            }
        }
        return(this.seq);
    }
Esempio n. 20
0
        public unsafe void GotoEditAnim()
        {
            //IL_005e: Unknown result type (might be due to invalid IL or missing references)
            //IL_0068: Expected O, but got Unknown
            this.StartCoroutine(PlayFadeSequence(toOut: true));
            DisplayPedestalInfo(display: true);
            Sequence obj = DOTween.Sequence();

            TweenSettingsExtensions.Append(obj, DOTweenModuleUI.DOFade(m_weaponListCanvas, 0f, 0.3f));
            TweenSettingsExtensions.Insert(obj, 0f, DOTweenModuleUI.DOFade(m_validateCanvas, 0f, 0.3f));
            TweenSettingsExtensions.OnKill <Sequence>(obj, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
        }
Esempio n. 21
0
    private void PlayAnimation()
    {
        Sequence sequence = DOTween.Sequence();

        TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScaleX(this.child, 1f, 0.2f), 0x1b));
        TweenSettingsExtensions.AppendInterval(sequence, 0.3f);
        TweenSettingsExtensions.Append(sequence, ShortcutExtensions46.DOFade(this.Text_Change, 0f, 0.5f));
        TweenSettingsExtensions.Join(sequence, TweenSettingsExtensions.OnUpdate <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(DOTween.To(new DOGetter <int>(this, this.< PlayAnimation > m__0), new DOSetter <int>(this, this.< PlayAnimation > m__1), this.m_after, 0.5f), 3), new TweenCallback(this, this.< PlayAnimation > m__2)));
        TweenSettingsExtensions.AppendInterval(sequence, 0.3f);
        TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScaleX(this.child, 0f, 0.15f), 5));
        TweenSettingsExtensions.AppendCallback(sequence, new TweenCallback(this, this.< PlayAnimation > m__3));
    }
        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);
        }
Esempio n. 23
0
        public void Hide()
        {
            Sequence sequence = DOTween.Sequence();
            Tween    tween    = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_Arsenal.get_transform(), this.newVector3(-7200f, 0f, 0f), 1f, false), 18);
            Tween    tween2   = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_Revamp.get_transform(), this.newVector3(720f, 0f, 0f), 1f, false), 18);
            Tween    tween3   = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_ShipFrame, this.newVector3(0f, -1024f, 0f), 0.8f, false), 26);

            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);
        }
        public void OnFinishedCollectAnimation()
        {
            Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            Tween    tween    = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTargetMenuButton.get_transform(), new Vector3(1.8f, 1.8f), 0.2f), this);
            Tween    tween2   = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTargetMenuButton.get_transform(), new Vector3(1.7f, 1.7f), 0.1f), this);

            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.Append(sequence, tween2);
            if (this.mOnFinishedCollectAnimationListener != null)
            {
                this.mOnFinishedCollectAnimationListener.Invoke();
            }
        }
Esempio n. 25
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();
            }
        });
    }
Esempio n. 26
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);
        }
Esempio n. 27
0
    public Sequence Init(LocalSave.EquipOne equip, int count)
    {
        this.DeInit();
        this.equipdata = equip;
        object[] args = new object[] { count };
        this.Text_Count.text = Utils.FormatString("x{0}", args);
        this.mAddParent.SetActive(false);
        this.fx_open.SetActive(false);
        this.equipparent.localScale = Vector3.zero;
        int quality = 1;

        if (count <= 5)
        {
            quality = 1;
        }
        else if (count <= 10)
        {
            quality = 2;
        }
        else
        {
            quality = 3;
        }
        this.Text_Title.set_color(this.GetColor(quality));
        this.Text_Count.set_color(this.Text_Title.get_color());
        object[] objArray2 = new object[1];
        object[] objArray3 = new object[] { quality };
        objArray2[0]         = GameLogic.Hold.Language.GetLanguageByTID(Utils.FormatString("BoxOpenOne_EquipTitle{0}", objArray3), Array.Empty <object>());
        this.Text_Title.text = Utils.FormatString("{0}!", objArray2);
        this.Text_Name.text  = equip.NameString;
        this.Text_Info.text  = equip.InfoString;
        this.Text_Title.transform.localScale = Vector3.zero;
        this.Text_Name.transform.localScale  = Vector3.zero;
        this.Text_Info.transform.localScale  = Vector3.zero;
        object[] objArray4 = new object[] { this.equipdata.Quality };
        this.Image_BG.set_sprite(SpriteManager.GetCharUI(Utils.FormatString("CharUI_Quality{0}", objArray4)));
        this.Image_Icon.set_sprite(this.equipdata.Icon);
        this.Image_White.set_color(new Color(1f, 1f, 1f, 0.7f));
        this.seq = DOTween.Sequence();
        TweenSettingsExtensions.Append(this.seq, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.Text_Title.transform, 1f, 0.3f), 0x1b));
        TweenSettingsExtensions.AppendInterval(this.seq, 0.3f);
        TweenSettingsExtensions.Append(this.seq, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.Text_Name.transform, 1f, 0.3f), 0x1b));
        TweenSettingsExtensions.Append(this.seq, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.Text_Info.transform, 1f, 0.3f), 0x1b));
        TweenSettingsExtensions.AppendCallback(this.seq, new TweenCallback(this, this.< Init > m__0));
        TweenSettingsExtensions.Append(this.seq, ShortcutExtensions.DOScale(this.equipparent, 1f, 0.3f));
        TweenSettingsExtensions.AppendInterval(this.seq, 0.3f);
        TweenSettingsExtensions.AppendCallback(this.seq, new TweenCallback(this, this.< Init > m__1));
        TweenSettingsExtensions.AppendInterval(this.seq, 0.3f);
        return(this.seq);
    }
        private void Animation()
        {
            bool flag = DOTween.IsTweening(this);

            if (flag)
            {
                return;
            }
            Sequence      sequence      = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            TweenCallback tweenCallback = delegate
            {
                this.OpenGate();
                this.mPegion.get_gameObject().SetActive(true);
                this.mPegion.get_transform().set_localPosition(this.mVector2_ClosePegionLocalPosition);
                SoundUtils.PlaySE(this.mAudioClip_Pegion);
                this.OffPegion();
            };
            Tween         tween          = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMove(this.mPegion.get_transform(), this.mVector2_OpenPegionLocalPosition, 0.3f, false), this);
            Sequence      sequence2      = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            TweenCallback tweenCallback2 = delegate
            {
                this.OnPegion();
            };
            TweenCallback tweenCallback3 = delegate
            {
                this.OffPegion();
            };

            TweenSettingsExtensions.AppendCallback(sequence2, tweenCallback2);
            TweenSettingsExtensions.AppendInterval(sequence2, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence2, tweenCallback3);
            TweenSettingsExtensions.AppendInterval(sequence2, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence2, tweenCallback2);
            TweenSettingsExtensions.AppendInterval(sequence2, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence2, tweenCallback3);
            TweenSettingsExtensions.AppendInterval(sequence2, 0.1f);
            Tween         tween2         = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMove(this.mPegion.get_transform(), this.mVector2_ClosePegionLocalPosition, 0.15f, false), this);
            TweenCallback tweenCallback4 = delegate
            {
                this.CloseGate();
                this.mPegion.get_gameObject().SetActive(false);
            };

            TweenSettingsExtensions.OnPlay <Sequence>(sequence, tweenCallback);
            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.Append(sequence, sequence2);
            TweenSettingsExtensions.Append(sequence, tween2);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback4);
        }
Esempio n. 29
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);
    }
Esempio n. 30
0
 private void OnEnable()
 {
     if (this.seq != null)
     {
         TweenExtensions.Kill(this.seq, false);
         this.seq = null;
     }
     this.seq = DOTween.Sequence();
     this.hit.SetActive(false);
     this.lightning.localScale = this.startscale;
     TweenSettingsExtensions.Append(this.seq, ShortcutExtensions.DOScaleY(this.lightning, 1f, 0.1f));
     TweenSettingsExtensions.AppendCallback(this.seq, new TweenCallback(this, this.< OnEnable > m__0));
     TweenSettingsExtensions.AppendInterval(this.seq, 0.2f);
     TweenSettingsExtensions.Append(this.seq, ShortcutExtensions.DOScaleX(this.lightning, 0f, 0.2f));
 }