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);
            }
        }
Пример #2
0
        protected unsafe virtual Sequence TweenInSequence()
        {
            //IL_00c6: Unknown result type (might be due to invalid IL or missing references)
            //IL_00e2: Unknown result type (might be due to invalid IL or missing references)
            //IL_0120: Unknown result type (might be due to invalid IL or missing references)
            //IL_0183: Unknown result type (might be due to invalid IL or missing references)
            Sequence val = m_currentTweenSequence = DOTween.Sequence();

            enableScrollButtons = true;
            ElementState[] array = m_currentTweenElementStates = ComputeElementStates();
            UpdateSiblingIndexes();
            float num = (m_config.inTweenDelayByElement >= 0f) ? m_config.inTweenDelayByElement : ((0f - m_config.inTweenDelayByElement) * (float)(m_elements.Count - 1));

            for (int i = 0; i < m_elements.Count; i++)
            {
                T            element      = m_elements[i];
                ElementState elementState = array[i];
                element.get_gameObject().SetActive(true);
                TweenSettingsExtensions.Insert(val, num, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(element.get_transform(), elementState.pos, m_config.inTweenDuration, false), m_config.inTweenEase));
                TweenSettingsExtensions.Insert(val, num, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScaleX(element.get_transform(), 1f, m_config.inTweenDuration), m_config.inTweenEase));
                Sequence obj  = val;
                float    num2 = num;
                T        val2 = element;
                _003C_003Ec__DisplayClass50_0 _003C_003Ec__DisplayClass50_;
                TweenSettingsExtensions.Insert(obj, num2, TweenSettingsExtensions.SetEase <TweenerCore <float, float, FloatOptions> >(DOTween.To(new DOGetter <float>((object)val2, (IntPtr)(void *) /*OpCode not supported: LdVirtFtn*/), new DOSetter <float>((object)_003C_003Ec__DisplayClass50_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), (i == m_selectedIndex) ? 1f : 0f, m_config.inTweenDuration), m_config.inTweenEase));
                num += m_config.inTweenDelayByElement;
            }
            return(val);
        }
        public unsafe Tween PlayCastImmediate(Vector3 worldPosition, Transform parent)
        {
            //IL_002b: 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_0070: Unknown result type (might be due to invalid IL or missing references)
            //IL_00b0: Unknown result type (might be due to invalid IL or missing references)
            //IL_00ba: Expected O, but got Unknown
            InitMove();
            Tween animationTween = m_animationTween;

            if (animationTween != null)
            {
                TweenExtensions.Kill(animationTween, false);
            }
            m_content.SetParent(parent, true);
            m_content.set_position(worldPosition);
            m_canvasGroup.set_alpha(0f);
            m_subContent.set_localRotation(Quaternion.Euler(0f, 0f, 45f));
            m_subContent.set_anchoredPosition(new Vector2(0f, 200f));
            Sequence val = DOTween.Sequence();

            TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_canvasGroup, 1f, 1f), 18));
            TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            m_animationTween = val;
            return(m_animationTween);
        }
Пример #4
0
 public void Show()
 {
     TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOLocalMove(this.mTexture_Akashi.get_transform(), this.mVector3_Akashi_ShowLocalPosition, 0.4f, false), delegate
     {
         this.mShown = true;
     }), 3);
 }
Пример #5
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>());
 }
Пример #6
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);
        }
Пример #7
0
        public unsafe Tween Display(EditModeSelection selection, DeckSlot slot)
        {
            //IL_009a: Unknown result type (might be due to invalid IL or missing references)
            //IL_00cf: Unknown result type (might be due to invalid IL or missing references)
            //IL_00d9: Expected O, but got Unknown
            m_slot = slot;
            if (m_slot != null)
            {
                m_slot.OnModification += OnSlotModification;
            }
            OnFilterChange();
            UpdateAllChildren(instant: true);
            m_canvasGroup.set_alpha(0f);
            m_spellsTransform.get_gameObject().SetActive(selection == EditModeSelection.Spell);
            m_companionsTransform.get_gameObject().SetActive(selection == EditModeSelection.Companion);
            this.get_gameObject().SetActive(true);
            Sequence val = DOTween.Sequence();

            TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_canvasGroup, 1f, m_fadeTweenDuration), m_fadeTweenEase));
            Tween val2 = CreateEditModeSelectionTween(selection);

            if (val2 != null)
            {
                TweenSettingsExtensions.Insert(val, 0f, val2);
            }
            val.onComplete = new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/);
            return(val);
        }
Пример #8
0
        private unsafe void DisplayPedestalInfo(bool display)
        {
            //IL_008e: Unknown result type (might be due to invalid IL or missing references)
            //IL_00b6: Unknown result type (might be due to invalid IL or missing references)
            //IL_012f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0161: Unknown result type (might be due to invalid IL or missing references)
            //IL_0185: Unknown result type (might be due to invalid IL or missing references)
            //IL_018f: Expected O, but got Unknown
            Sequence pedestalTweenSequence = m_pedestalTweenSequence;

            if (pedestalTweenSequence != null)
            {
                TweenExtensions.Kill(pedestalTweenSequence, false);
            }
            Sequence val = DOTween.Sequence();

            if (display)
            {
                m_pedestalSpellAbilityBGCanvasGroup.get_gameObject().SetActive(true);
                m_pedestalSpellAbilityMainCanvasGroup.get_gameObject().SetActive(true);
                TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOFade(m_pedestalSpellAbilityMainCanvasGroup, 1f, 0.2f));
                TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOFade(m_pedestalSpellAbilityBGCanvasGroup, 1f, 0.2f));
                TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_pedestalSpellAbilityBgRectTransform, Vector2.get_zero(), 0.2f, false), 7));
                TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_pedestalSpellAbilityMainRectTransform, Vector2.get_zero(), 0.2f, false), 7));
            }
            else
            {
                TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOFade(m_pedestalSpellAbilityMainCanvasGroup, 0f, 0.2f));
                TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOFade(m_pedestalSpellAbilityBGCanvasGroup, 0f, 0.2f));
                TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_pedestalSpellAbilityBgRectTransform, new Vector2(0f, 30f), 0.2f, false), 7));
                TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_pedestalSpellAbilityMainRectTransform, new Vector2(0f, 30f), 0.2f, false), 7));
                TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            }
            m_pedestalTweenSequence = val;
        }
Пример #9
0
    public void StartState()
    {
        if (DOTween.IsTweening(this))
        {
            DOTween.Kill(this, false);
        }
        Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);

        UIInteriorMenuButton[] array = this.mFocasableUIInteriorMenuButtons;
        for (int i = 0; i < array.Length; i++)
        {
            UIInteriorMenuButton uIInteriorMenuButton = array[i];
            uIInteriorMenuButton.get_transform().set_localScale(new Vector3(0f, 0f));
            Tween tween = TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(uIInteriorMenuButton.get_transform(), Vector3.get_one(), 0.25f), 21), this);
            TweenSettingsExtensions.SetDelay <Tween>(tween, 0.075f);
            TweenSettingsExtensions.Join(sequence, tween);
        }
        UIInteriorMenuButton[] array2 = this.mFocasableUIInteriorMenuButtons;
        for (int j = 0; j < array2.Length; j++)
        {
            UIInteriorMenuButton uIInteriorMenuButton2 = array2[j];
            uIInteriorMenuButton2.SetEnableButton(true);
        }
        this.ChangeFocus(this.mFocasableUIInteriorMenuButtons[0], false);
    }
Пример #10
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);
    }
Пример #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();
             }
         }
     }
 }
Пример #12
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;
        }
Пример #13
0
        protected unsafe virtual Sequence TweenOutSequence()
        {
            //IL_0093: Unknown result type (might be due to invalid IL or missing references)
            //IL_00af: Unknown result type (might be due to invalid IL or missing references)
            //IL_00f3: Unknown result type (might be due to invalid IL or missing references)
            //IL_0105: Unknown result type (might be due to invalid IL or missing references)
            //IL_010f: Expected O, but got Unknown
            //IL_0157: Unknown result type (might be due to invalid IL or missing references)
            //IL_0192: Unknown result type (might be due to invalid IL or missing references)
            //IL_019c: Expected O, but got Unknown
            Sequence val = m_currentTweenSequence = DOTween.Sequence();

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

            for (int i = 0; i < m_elements.Count; i++)
            {
                T element = m_elements[i];
                TweenSettingsExtensions.Insert(val, num, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(element.get_transform(), m_outPosition.get_localPosition(), m_config.outTweenDuration, false), m_config.outTweenEase));
                _003C_003Ec__DisplayClass49_0 _003C_003Ec__DisplayClass49_;
                TweenSettingsExtensions.Insert(val, num, TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScaleX(element.get_transform(), m_config.outScale, m_config.outTweenDuration), m_config.outTweenEase), new TweenCallback((object)_003C_003Ec__DisplayClass49_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)));
                Sequence obj  = val;
                float    num2 = num;
                T        val2 = element;
                TweenSettingsExtensions.Insert(obj, num2, TweenSettingsExtensions.SetEase <TweenerCore <float, float, FloatOptions> >(DOTween.To(new DOGetter <float>((object)val2, (IntPtr)(void *) /*OpCode not supported: LdVirtFtn*/), new DOSetter <float>((object)_003C_003Ec__DisplayClass49_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), 0f, m_config.outTweenDuration), m_config.outTweenEase));
                num += m_config.outTweenDelayByElement;
            }
            TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            return(val);
        }
Пример #14
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);
            }
        }
Пример #15
0
 public unsafe void Close(bool forceImmediate = false)
 {
     //IL_0074: Unknown result type (might be due to invalid IL or missing references)
     //IL_00b9: 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_00e8: Expected O, but got Unknown
     if (forceImmediate)
     {
         Tween tween = m_tween;
         if (tween != null)
         {
             tween.onKill.Invoke();
         }
         OnClosed();
     }
     else if (m_state != ContainerDrawerState.Closed && m_state != ContainerDrawerState.Closing)
     {
         Tween tween2 = m_tween;
         if (tween2 != null)
         {
             TweenExtensions.Kill(tween2, false);
         }
         m_state = ContainerDrawerState.Closing;
         m_mask.set_enabled(true);
         m_canvasGroup.set_alpha(1f);
         m_content.get_transform().set_localPosition(m_basePosition);
         Sequence val = DOTween.Sequence();
         TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_canvasGroup, 0f, 0.3f), 19));
         TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(m_content, m_hiddenPosition, 0.3f, false), 19));
         TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
         m_tween = val;
     }
 }
Пример #16
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));
         }
     }
 }
Пример #17
0
        public unsafe void OnDrag(Vector2 screenPosition, Camera cam)
        {
            //IL_0019: Unknown result type (might be due to invalid IL or missing references)
            //IL_001e: Unknown result type (might be due to invalid IL or missing references)
            //IL_0023: Unknown result type (might be due to invalid IL or missing references)
            //IL_002a: Unknown result type (might be due to invalid IL or missing references)
            //IL_0037: Unknown result type (might be due to invalid IL or missing references)
            //IL_003c: 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_0047: Unknown result type (might be due to invalid IL or missing references)
            //IL_0065: Unknown result type (might be due to invalid IL or missing references)
            //IL_0066: Unknown result type (might be due to invalid IL or missing references)
            //IL_0078: Unknown result type (might be due to invalid IL or missing references)
            //IL_0094: Unknown result type (might be due to invalid IL or missing references)
            //IL_009e: Expected O, but got Unknown
            if (!dragging)
            {
                return;
            }
            Vector2 val  = ((_003F?)m_snapScreenPosition) ?? screenPosition;
            Vector2 val2 = default(Vector2);

            if (RectTransformUtility.ScreenPointToLocalPointInRectangle(m_content, val, cam, ref val2) && !(m_previousPosition == val2))
            {
                m_previousPosition = val2;
                Tween tweenViewPosition = m_tweenViewPosition;
                if (tweenViewPosition != null)
                {
                    TweenExtensions.Kill(tweenViewPosition, false);
                }
                m_tweenViewPosition = TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos3D(m_dragObject, Vector2.op_Implicit(val2), m_moveTweenDuration, false), m_moveEase);
                TweenSettingsExtensions.OnKill <Tween>(m_tweenViewPosition, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            }
        }
Пример #18
0
        public Sequence Open()
        {
            //IL_00ab: Unknown result type (might be due to invalid IL or missing references)
            //IL_0103: Unknown result type (might be due to invalid IL or missing references)
            //IL_015a: Unknown result type (might be due to invalid IL or missing references)
            if (m_openTweenSequence != null && TweenExtensions.IsActive(m_openTweenSequence))
            {
                TweenExtensions.Kill(m_openTweenSequence, false);
            }
            m_openTweenSequence = DOTween.Sequence();
            int   num            = m_statLines.Count + 2;
            float num2           = Mathf.Min(m_statData.openBoardDuration, m_statData.openBoardLineTweenDuration);
            float num3           = (m_statData.openBoardDuration - num2) / (float)num;
            float openBoardDelay = m_statData.openBoardDelay;

            m_playerLine.canvasGroup.set_alpha(0f);
            TweenSettingsExtensions.Insert(m_openTweenSequence, openBoardDelay, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_playerLine.canvasGroup, 1f, num2), m_statData.openBoardLineTweenEase));
            openBoardDelay += num3;
            for (int i = 0; i < m_statLines.Count; i++)
            {
                StatValueLine statValueLine = m_statLines[i];
                statValueLine.canvasGroup.set_alpha(0f);
                TweenSettingsExtensions.Insert(m_openTweenSequence, openBoardDelay, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(statValueLine.canvasGroup, 1f, num2), m_statData.openBoardLineTweenEase));
                openBoardDelay += num3;
            }
            m_teamScoreLine.set_alpha(0f);
            TweenSettingsExtensions.Insert(m_openTweenSequence, openBoardDelay, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_teamScoreLine, 1f, num2), m_statData.openBoardLineTweenEase));
            return(m_openTweenSequence);
        }
Пример #19
0
        protected override void DoStateTransition(SelectionState state, bool instant)
        {
            //IL_004a: Unknown result type (might be due to invalid IL or missing references)
            //IL_0060: Expected I4, but got Unknown
            //IL_00b3: Unknown result type (might be due to invalid IL or missing references)
            //IL_00be: Unknown result type (might be due to invalid IL or missing references)
            //IL_00cf: Unknown result type (might be due to invalid IL or missing references)
            //IL_00f6: Unknown result type (might be due to invalid IL or missing references)
            //IL_0101: Unknown result type (might be due to invalid IL or missing references)
            //IL_011c: Unknown result type (might be due to invalid IL or missing references)
            //IL_013e: Unknown result type (might be due to invalid IL or missing references)
            //IL_0159: Unknown result type (might be due to invalid IL or missing references)
            if (!this.get_gameObject().get_activeInHierarchy())
            {
                return;
            }
            if (m_style == null)
            {
                Log.Error("AnimatedTextButton " + this.get_name() + " doesn't have a style defined !", 27, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\UI\\ZaapGameMode\\GameModeButton.cs");
                return;
            }
            GameModeButtonState gameModeButtonState = m_style.disable;

            switch ((int)state)
            {
            case 0:
                gameModeButtonState = m_style.normal;
                break;

            case 1:
                gameModeButtonState = m_style.highlight;
                break;

            case 2:
                gameModeButtonState = m_style.pressed;
                break;

            case 3:
                gameModeButtonState = m_style.disable;
                break;
            }
            Sequence tweenSequence = m_tweenSequence;

            if (tweenSequence != null)
            {
                TweenExtensions.Kill(tweenSequence, false);
            }
            if (instant)
            {
                m_scaleDummy.set_localScale(Vector3.get_one() * gameModeButtonState.scale);
                m_image.set_color(gameModeButtonState.imageColor);
            }
            else
            {
                m_tweenSequence = DOTween.Sequence();
                TweenSettingsExtensions.Insert(m_tweenSequence, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(m_scaleDummy, Vector3.get_one() * gameModeButtonState.scale, m_style.transitionDuration), m_style.ease));
                TweenSettingsExtensions.Insert(m_tweenSequence, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOColor(m_image, gameModeButtonState.imageColor, m_style.transitionDuration), m_style.ease));
            }
        }
Пример #20
0
 private void OnMoveView(View view, Vector3 moveTo)
 {
     this.mIsAnimationNow = true;
     TweenExtensions.PlayForward(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(view.get_transform(), moveTo, this.ANIMATION_TIME_MOVE, false), this.ANIMATION_EASE_MOVE), delegate
     {
         this.mIsAnimationNow = false;
     }));
 }
 private void Start()
 {
     if (this.mLoop < 0)
     {
         this.mLoop = -2147483648;
     }
     this.mTween = TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(ShortcutExtensions.DOLocalMove(base.get_transform(), this.mVector3_To, this.mDuration, false), this.mLoop, this.mLoopType_Type), this.mDelay), this.mEase);
 }
Пример #22
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);
        }
Пример #23
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));
        }
Пример #24
0
 private void ChangeValueEffect()
 {
     DOTween.Kill(this, false);
     TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOScale(this.chara_arm.get_transform(), new Vector3(1.1f, 1.1f), 0.1f), delegate
     {
         this.chara_arm.get_transform().set_localScale(Vector3.get_one());
     }), this), 1);
     SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
 }
Пример #25
0
 private void Hide(float delay)
 {
     this.mTexture_Akashi.mainTexture = this.mTextureAkashi[1];
     TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOLocalMove(this.mTexture_Akashi.get_transform(), this.mVector3_Akashi_GoBackLocalPosition, 0.4f, false), delay), delegate
     {
         this.mShown = false;
         this.OnHidden();
     }), 3);
 }
Пример #26
0
        private unsafe void UpdateElements()
        {
            //IL_004c: Unknown result type (might be due to invalid IL or missing references)
            //IL_0051: Unknown result type (might be due to invalid IL or missing references)
            //IL_008b: Unknown result type (might be due to invalid IL or missing references)
            //IL_0090: Unknown result type (might be due to invalid IL or missing references)
            //IL_00af: Unknown result type (might be due to invalid IL or missing references)
            //IL_00c7: Unknown result type (might be due to invalid IL or missing references)
            //IL_00de: Unknown result type (might be due to invalid IL or missing references)
            //IL_00fe: Unknown result type (might be due to invalid IL or missing references)
            //IL_017c: Unknown result type (might be due to invalid IL or missing references)
            //IL_0186: Expected O, but got Unknown
            int num = m_displayedElements.Count - m_datas.maxElements;

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

            for (int j = 0; j < m_displayedElements.Count; j++)
            {
                HistoryAbstractElement historyAbstractElement = m_displayedElements[m_displayedElements.Count - 1 - j];
                CanvasGroup            canvasGroup            = historyAbstractElement.canvasGroup;
                RectTransform          val2 = historyAbstractElement.get_transform() as RectTransform;
                Rect  rect   = val2.get_rect();
                float height = rect.get_height();
                ShortcutExtensions.DOKill(canvasGroup, false);
                ShortcutExtensions.DOKill(val2, false);
                val = TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(val2, zero, m_datas.positionTweenDuration, false), m_datas.postitionTweenEase);
                if (j == 0)
                {
                    ShortcutExtensions.DOPunchScale(val2, m_datas.inScalePunchValue, m_datas.inScalePunchDuration, 0, 0f);
                }
                else
                {
                    val2.set_localScale(Vector3.get_one());
                }
                if (j < m_datas.maxElements - 1)
                {
                    zero.y -= height + m_datas.spacing;
                }
                if (j >= m_datas.maxElements)
                {
                    DOTweenModuleUI.DOFade(canvasGroup, 0f, m_datas.outAlphaTweenDuration);
                }
            }
            if (val != null)
            {
                TweenSettingsExtensions.OnComplete <Tweener>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            }
        }
 public Tween PlayCount()
 {
     return(TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(DOVirtual.Float((float)this.mFrom, (float)this.mTo, this.mDurationSeconds, delegate(float currentValue)
     {
         this.mLabel_Target.text = ((int)currentValue).ToString();
     }), delegate
     {
         this.OnFinishedCallBack();
     }), 1));
 }
 public void Hide(Action onFinishedAnimation)
 {
     this.mTexture_Ohyodo.mainTexture = this.mTextureOhyodo[1];
     TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOLocalMove(this.mTexture_Ohyodo.get_transform(), this.mVector3_Ohyodo_GoBackLocalPosition, 0.4f, false), 0.5f), delegate
     {
         if (onFinishedAnimation != null)
         {
             onFinishedAnimation.Invoke();
         }
     }), 3);
 }
Пример #29
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);
 }
            public void HideYousei()
            {
                Vector3 vector = this._dicFairyPos.get_Item(false);
                float   num    = 0.55f;

                TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this._uiSprite.get_transform(), vector, 0.25f, false), 18);
                TweenSettingsExtensions.SetEase <Tweener>(DOVirtual.Float(this._uiSprite.fillAmount, num, 0.1f, delegate(float amount)
                {
                    this._uiSprite.fillAmount = amount;
                }), 18);
            }