Exemple #1
0
 private void Play()
 {
     ShortcutExtensions.DOKill(this.Text_Content, false);
     this.Text_Content.set_color(new Color(this.Text_Content.get_color().r, this.Text_Content.get_color().g, this.Text_Content.get_color().b, 0f));
     TweenSettingsExtensions.SetUpdate <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(ShortcutExtensions46.DOFade(this.Text_Content, 1f, 1f), -1, 1), 7), true);
     this.Text_Content.text = GameLogic.Hold.Language.GetLanguageByTID("TapToClose", Array.Empty <object>());
 }
Exemple #2
0
 private void ChangeFocus(UIItemListChild child, bool playSE)
 {
     if (this.mFocusListChild != null)
     {
         this.mFocusListChild.RemoveFocus();
         ShortcutExtensions.DOScale(this.mFocusListChild.get_transform(), new Vector3(1f, 1f), 0.3f);
         ShortcutExtensions.DOScale(this.mTransform_Focus, new Vector3(1f, 1f), 0.3f);
     }
     this.mFocusListChild = child;
     if (this.mFocusListChild != null)
     {
         this.OnFocusChange(this.mFocusListChild.mModel);
         this.mFocusListChild.Focus();
         if (child.IsFosable())
         {
             this.mTransform_Focus.set_localPosition(new Vector3(this.mFocusListChild.get_transform().get_localPosition().x, this.mFocusListChild.get_transform().get_localPosition().y - 12f));
             ShortcutExtensions.DOScale(this.mTransform_Focus, new Vector3(1.2f, 1.2f), 0.3f);
             ShortcutExtensions.DOScale(this.mFocusListChild.get_transform(), new Vector3(1.2f, 1.2f), 0.3f);
         }
         else
         {
             this.mTransform_Focus.set_localPosition(new Vector3(this.mFocusListChild.get_transform().get_localPosition().x, this.mFocusListChild.get_transform().get_localPosition().y - 12f));
         }
         if (playSE)
         {
             this.SafePlaySEOneShot(this.mAudioClip_SE_001);
         }
     }
     else
     {
         this.mTransform_Focus.get_transform().set_localPosition(new Vector3(this.mItemListChildren[0].get_transform().get_localPosition().x, this.mItemListChildren[0].get_transform().get_localPosition().y - 12f));
         this.OnFocusChange(null);
     }
 }
 // Use this for initialization
 void Start()
 {
     x = transform.position.x;
     y = transform.position.y;
     z = transform.position.z;
     ShortcutExtensions.DOMove(transform, new Vector3(x, y + 20, z), Random.Range(0f, 3f));
 }
 private void SetIsOn(bool isOn, bool instant)
 {
     //IL_0024: Unknown result type (might be due to invalid IL or missing references)
     //IL_002b: Unknown result type (might be due to invalid IL or missing references)
     //IL_0030: Unknown result type (might be due to invalid IL or missing references)
     //IL_0046: Unknown result type (might be due to invalid IL or missing references)
     //IL_0056: Unknown result type (might be due to invalid IL or missing references)
     //IL_006e: Unknown result type (might be due to invalid IL or missing references)
     //IL_007e: Unknown result type (might be due to invalid IL or missing references)
     //IL_00a2: Unknown result type (might be due to invalid IL or missing references)
     //IL_00cb: Unknown result type (might be due to invalid IL or missing references)
     if (m_isOn != isOn)
     {
         m_isOn = isOn;
         float num = isOn ? 1.2f : 1f;
         Color val = isOn ? Color.get_white() : Color.get_gray();
         if (instant)
         {
             m_illustration.get_transform().set_localScale(new Vector3(num, num, 1f));
             m_illustration.set_color(val);
             m_invalidDeck.get_transform().set_localScale(new Vector3(num, num, 1f));
             m_invalidDeck.set_color(val);
         }
         else
         {
             ShortcutExtensions.DOScale(m_illustration.get_transform(), num, 0.15f);
             DOTweenModuleUI.DOColor(m_illustration, val, 0.15f);
             ShortcutExtensions.DOScale(m_invalidDeck.get_transform(), num, 0.15f);
             DOTweenModuleUI.DOColor(m_invalidDeck, val, 0.15f);
         }
     }
 }
Exemple #5
0
        public static void OnToggleClick(Toggle toggle, bool value)
        {
            if (!Main.enabled)
            {
                return;
            }
            if (value == false)
            {
                return;
            }
            string[] temp = toggle.name.Split(',');
            int      cost = int.Parse(temp[1]);

            Traverse.Create(BattleSystem.instance).Field("actorWeaponCost").SetValue(new int[6] {
                cost, cost, cost, cost, cost, cost
            });
            for (int i = 0; i < 6; i++)
            {
                SingletonObject.getInstance <DynamicSetSprite>().SetImageSprite(BattleSystem.instance.actorWeaponCostIcon[i], "gongFaCostSprites", new int[]
                {
                    int.Parse(DateFile.instance.attackTypDate[cost][98])
                });
                //BattleSystem.instance.actorWeaponCostIcon[i].sprite = GetSprites.instance.gongFaCostSprites[DateFile.instance.ParseInt(DateFile.instance.attackTypDate[cost][98])];
                TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(BattleSystem.instance.actorWeaponCostIcon[i].GetComponent <RectTransform>(), new Vector3(2f, 2f, 1f), 0.1f), Ease.OutBack);
                TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOScale(BattleSystem.instance.actorWeaponCostIcon[i].GetComponent <RectTransform>(), new Vector3(1f, 1f, 1f), 0.3f), 0.1f), Ease.OutBack);
            }
        }
Exemple #6
0
    // 跳跃动效, "transform":目标, "endValue":目标位置, "duration":时间, "jumpNum":期间跳N次,"ease":动效值
    public static Sequence DoJump(Transform transform, Vector3 endValue, float duration, int jumpNum, int ease)
    {
        Sequence t = ShortcutExtensions.DOJump(transform, endValue, jumpNum, duration);

        t.SetEase((Ease)ease);
        return(t);
    }
        public void Deinit()
        {
            int num   = 0;
            int count = this.seqs.Count;

            while (num < count)
            {
                Sequence sequence = this.seqs[num];
                if (sequence != null)
                {
                    TweenExtensions.Kill(sequence, false);
                }
                num++;
            }
            int num3 = 0;
            int num4 = this.prev_effects.Count;

            while (num3 < num4)
            {
                ShortcutExtensions.DOKill(this.prev_effects[num3].transform, false);
                GameLogic.EffectCache(this.prev_effects[num3]);
                num3++;
            }
            this.prev_effects.Clear();
            this.seqs.Clear();
        }
 private void ChangeFocusButton(UIButton button)
 {
     if (this.mButton_CurrentFocus != null)
     {
         bool flag = this.mButton_CurrentFocus.Equals(button);
         if (flag)
         {
             return;
         }
     }
     this.mButton_CurrentFocus = button;
     if (this.mButton_CurrentFocus != null)
     {
         bool flag2 = this.mButton_ShipAlbum.Equals(this.mButton_CurrentFocus);
         if (flag2)
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
             TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mTexture_Focus.get_transform(), -240f, 0.3f, false), this.mTexture_Focus);
         }
         else
         {
             bool flag3 = this.mButton_SlotItemAlbum.Equals(this.mButton_CurrentFocus);
             if (flag3)
             {
                 SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
                 TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mTexture_Focus.get_transform(), 240f, 0.3f, false), this.mTexture_Focus);
             }
         }
     }
 }
Exemple #9
0
        public void RefreshTitle(ScreenStatus status, DeckModel deck)
        {
            string text = string.Empty;

            switch (status)
            {
            case ScreenStatus.SELECT_DECK_SHIP:
                if (deck.Name == string.Empty)
                {
                    text = "艦娘選択 - 第" + deck.Id + "艦隊 -";
                }
                else
                {
                    text = "艦娘選択 -" + deck.Name + "-";
                }
                break;

            case ScreenStatus.SELECT_OTHER_SHIP:
                text = "艦娘選択 - その他 -";
                break;

            case ScreenStatus.SELECT_SETTING_MODE:
                text = "メニュー選択";
                break;

            case ScreenStatus.MODE_SOUBI_HENKOU:
            case ScreenStatus.MODE_SOUBI_HENKOU_TYPE_SELECT:
            case ScreenStatus.MODE_SOUBI_HENKOU_ITEM_SELECT:
            case ScreenStatus.MODE_SOUBI_HENKOU_PREVIEW:
                text = "装備変更";
                break;

            case ScreenStatus.MODE_KINDAIKA_KAISHU:
            case ScreenStatus.MODE_KINDAIKA_KAISHU_SOZAI_SENTAKU:
            case ScreenStatus.MODE_KINDAIKA_KAISHU_KAKUNIN:
            case ScreenStatus.MODE_KINDAIKA_KAISHU_ANIMATION:
            case ScreenStatus.MODE_KINDAIKA_KAISHU_END_ANIMATION:
                text = "近代化改修";
                break;

            case ScreenStatus.MODE_KAIZO:
            case ScreenStatus.MODE_KAIZO_ANIMATION:
            case ScreenStatus.MODE_KAIZO_END_ANIMATION:
                text = "改造";
                break;
            }
            if (deck != null && deck.IsActionEnd())
            {
                this.mTransform_TurnEndStamp.SetActive(true);
                ShortcutExtensions.DOKill(this.mTransform_TurnEndStamp, false);
                ShortcutExtensions.DOLocalRotate(this.mTransform_TurnEndStamp, new Vector3(0f, 0f, 300f), 0f, 1);
                TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalRotate(this.mTransform_TurnEndStamp, new Vector3(0f, 0f, 360f), 0.8f, 1), 30);
            }
            else
            {
                this.mTransform_TurnEndStamp.SetActive(false);
            }
            this.titleLabel.text            = text;
            this.titleLabel.supportEncoding = false;
        }
 public void TweenColor(Color c1, Color c2, float duration)
 {
     //IL_0006: Unknown result type (might be due to invalid IL or missing references)
     //IL_0019: Unknown result type (might be due to invalid IL or missing references)
     ShortcutExtensions.DOColor(m_material, c1, "_Color1", duration);
     ShortcutExtensions.DOColor(m_material, c2, "_Color2", duration);
 }
Exemple #11
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();
             }
         }
     }
 }
        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);
        }
    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();
            }
        });
    }
Exemple #14
0
        public void Highlight(bool highlight)
        {
            //IL_0079: Unknown result type (might be due to invalid IL or missing references)
            if (m_highlighted == highlight || m_previewResource == null || !m_previewResource.highlightEnabled)
            {
                return;
            }
            Tween highlightTweener = m_highlightTweener;

            if (highlightTweener != null && TweenExtensions.IsPlaying(highlightTweener))
            {
                TweenExtensions.Kill(m_highlightTweener, true);
                m_highlightTweener = null;
            }
            if (highlight && m_image != null)
            {
                float highlightPunch = m_previewResource.highlightPunch;
                m_highlightTweener = ShortcutExtensions.DOPunchScale(m_image.get_transform(), new Vector3(highlightPunch, highlightPunch, highlightPunch), m_previewResource.highlightDuration, m_previewResource.highlightVibrato, m_previewResource.highlightElasticity);
                int highlightLoopCount = m_previewResource.highlightLoopCount;
                if (highlightLoopCount != 1)
                {
                    TweenSettingsExtensions.SetLoops <Tween>(m_highlightTweener, highlightLoopCount);
                }
            }
            m_highlighted = highlight;
        }
Exemple #15
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 UpdateView(DeckModel deckModel)
        {
            int num   = 0;
            int count = deckModel.Count;

            UIRebellionOrgaizeShipBanner[] shipStates = this.ShipStates;
            for (int i = 0; i < shipStates.Length; i++)
            {
                UIRebellionOrgaizeShipBanner uIRebellionOrgaizeShipBanner = shipStates[i];
                int nIndex = num + 1;
                uIRebellionOrgaizeShipBanner.SetShipData(deckModel.GetShip(num), nIndex);
                uIRebellionOrgaizeShipBanner.SetShipIndex(num);
                num++;
            }
            if (this.FocusBanner != null)
            {
                this.BannerFocusAnim(false);
                this.FocusBanner = this.ShipStates[this.key.Index];
                this.BannerFocusAnim(true);
            }
            this.DeckNoLabel.text            = deckModel.Name;
            this.DeckNoLabel.supportEncoding = false;
            this.DeckNoIcon.mainTexture      = (Resources.Load("Textures/Common/DeckFlag/icon_deck" + deckModel.Id) as Texture2D);
            if (deckModel.IsActionEnd())
            {
                this.DeckActionEnd.SetActive(true);
                ShortcutExtensions.DOKill(this.DeckActionEnd, false);
                ShortcutExtensions.DOLocalRotate(this.DeckActionEnd, new Vector3(0f, 0f, 300f), 0f, 1);
                TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalRotate(this.DeckActionEnd, new Vector3(0f, 0f, 360f), 0.8f, 1), 30);
            }
            else
            {
                this.DeckActionEnd.SetActive(false);
            }
        }
Exemple #17
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);
    }
 public void Show(KeyControl keyController)
 {
     base.Show();
     this.mTransform_Contents.get_transform().set_localScale(new Vector3(0.5f, 0.5f));
     ShortcutExtensions.DOScale(this.mTransform_Contents.get_transform(), Vector3.get_one(), 0.3f);
     this.mKeyController = keyController;
     this.PlayKiraAnimation();
 }
Exemple #19
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     if (!m_destroying)
     {
         ShortcutExtensions.DOLocalMoveY(m_effectTarget, 5f, 0.1f, false);
         AudioManager.PlayOneShot(m_overSound);
     }
 }
Exemple #20
0
 public void Hide()
 {
     ShortcutExtensions.DOScale(base.get_transform(), Vector3.get_zero(), 0.3f);
     DOVirtual.Float(this.mPanelThis.alpha, 0f, 0.3f, delegate(float alpha)
     {
         this.mPanelThis.alpha = alpha;
     });
 }
Exemple #21
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);
    }
 public void Hide()
 {
     if (DOTween.IsTweening(UIInteriorFurnitureDetail.TweenAnimationType.ShowHide))
     {
         DOTween.Kill(UIInteriorFurnitureDetail.TweenAnimationType.ShowHide, false);
     }
     TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), 960f, 0.3f, false), UIInteriorFurnitureDetail.TweenAnimationType.ShowHide);
 }
Exemple #23
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);
        }
 private void SetEnableVisual(bool selected)
 {
     if (m_editMode && !selected)
     {
         Sequence obj = Sequence();
         TweenSettingsExtensions.Insert(obj, 0f, ShortcutExtensions.DOScale(m_canvasGroup.get_transform(), 1f, m_tweenDuration));
         TweenSettingsExtensions.Insert(obj, 0f, Fade(visible: true));
     }
 }
    private void OnShown()
    {
        Vector3 localPosition  = new Vector3(this.mLabel_Message.get_transform().get_localPosition().x - 50f, this.mLabel_Message.get_transform().get_localPosition().y, this.mLabel_Message.get_transform().get_localPosition().z);
        Vector3 localPosition2 = this.mLabel_Message.get_transform().get_localPosition();

        this.mLabel_Message.get_transform().set_localPosition(localPosition);
        ShortcutExtensions.DOLocalMove(this.mLabel_Message.get_transform(), localPosition2, 0.3f, false);
        this.mLabel_Message.alpha = 1f;
    }
 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));
     }
 }
 public KeyControl Show()
 {
     base.Show();
     this.mTransform_Contents.get_transform().set_localScale(new Vector3(0.5f, 0.5f));
     ShortcutExtensions.DOScale(this.mTransform_Contents.get_transform(), Vector3.get_one(), 0.3f);
     this.mKeyController = new KeyControl(0, 0, 0.4f, 0.1f);
     this.PlayKiraAnimation();
     return(this.mKeyController);
 }
Exemple #28
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 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));
        }
Exemple #30
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);
 }