protected override void OnInit()
 {
     base.OnInit();
     this.bStart = false;
     base.mTransform.localScale = new Vector3(0f, 1f, 1f);
     TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.AppendInterval(TweenSettingsExtensions.Append(base.mSeqPool.Get(), ShortcutExtensions.DOScale(base.mTransform, 1f, this.scaleTime)), this.waitTime), new TweenCallback(this, this.< OnInit > m__0));
 }
Ejemplo n.º 2
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);
    }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
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;
        }
Ejemplo n.º 5
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));
     }
 }
Ejemplo n.º 6
0
        public void StartState()
        {
            bool flag = this.mMst_bgm_jukebox.Bgm_flag == 1;

            if (flag)
            {
                this.mButton_Positive.SetState(UIButtonColor.State.Normal, true);
                this.mButton_Positive.set_enabled(true);
                this.mButton_Positive.isEnabled = true;
            }
            else
            {
                this.mButton_Positive.SetState(UIButtonColor.State.Disabled, true);
                this.mButton_Positive.set_enabled(false);
                this.mButton_Positive.isEnabled = false;
            }
            bool flag2 = DOTween.IsTweening(this);

            if (flag2)
            {
                DOTween.Kill(this, false);
            }
            TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(this.mPanelThis.alpha, 1f, 0.3f, delegate(float alpha)
            {
                this.mPanelThis.alpha = alpha;
            }), this);
            this.mUIJukeBoxMusicPlayingRollLabel.StartRoll();
            Tween tween  = this.GenerateTweenYouseiSwing();
            Tween tween2 = this.GenerateTweenYouseiMarch();
            Tween tween3 = this.GenerateTweenYouseiMove();
        }
Ejemplo n.º 7
0
 public void OnTouchYousei()
 {
     if (!DOTween.IsTweening(this.mTexture_Yousei))
     {
         Tween tween = TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mTransform_YouseiOffset, (float)Random.Range(55, 80), 0.5f, false), 9), 2, 1), this.mTexture_Yousei);
     }
 }
Ejemplo n.º 8
0
    protected override void OnInit()
    {
        this.adx = this.mAdTurnCtrl.transform.localPosition.x;
        this.mTurnCtrl.TurnEnd = delegate(TurnTableData data) {
            this.resultType = data.type;
            if (LocalSave.Instance.BattleAd_CanShow())
            {
                SdkManager.send_event_ad(ADSource.eTurntable, "SHOW", 0, 0, string.Empty, string.Empty);
                TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.AppendInterval(TweenSettingsExtensions.Append(TweenSettingsExtensions.AppendInterval(TweenSettingsExtensions.SetUpdate <Sequence>(this.mSeqPool.Get(), true), 0.5f), TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(this.gameturnparent.transform, -this.adx, 0.5f, false), 0x1b)), 0.5f), new TweenCallback(this, this.< OnInit > m__3));
            }
            else
            {
                WindowUI.CloseWindow(WindowID.WindowID_GameTurnTable);
            }
        };
        RectTransform transform  = base.transform as RectTransform;
        RectTransform transform2 = this.gameturnparent.transform as RectTransform;

        transform2.sizeDelta = transform.sizeDelta;
        RectTransform transform3 = this.mAdTurnCtrl.transform as RectTransform;

        transform3.sizeDelta = transform.sizeDelta;
        this.mAdTurnCtrl.Init();
        if (< > f__am$cache0 == null)
        {
Ejemplo n.º 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;
        }
Ejemplo n.º 10
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);
            }
        }
        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);
        }
Ejemplo n.º 12
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);
    }
Ejemplo n.º 13
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;
     }
 }
Ejemplo n.º 14
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));
         }
     }
 }
Ejemplo n.º 15
0
        public void PlayExpAnimation(Action onFinished)
        {
            float num  = 1.3f;
            float num2 = 0.4f;
            float maxGaugeTextureWidth = 90f;

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

            TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(DOVirtual.Float((float)this.mShipExpModel.ExpRateBefore, (float)num3, (float)(num3 / 90) * num2, delegate(float exp)
            {
                this.mTexture_GaugeExp.width = (int)(maxGaugeTextureWidth * (exp % 100f * 0.01f));
                int num4 = (int)(exp / 100f);
                if (currentLevel != num4 + this.mShipExpModel.LevelBefore)
                {
                    currentLevel           = num4 + this.mShipExpModel.LevelBefore;
                    this.mLabel_Level.text = currentLevel.ToString();
                }
            }), num), delegate
            {
                if (this.mShipExpModel.LevelBefore != this.mShipExpModel.LevelAfter)
                {
                    SoundUtils.PlaySE(SEFIleInfos.SE_058);
                    this.PlayLevelUpAnimation();
                }
                if (onFinished != null)
                {
                    onFinished.Invoke();
                }
            });
        }
Ejemplo n.º 16
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);
    }
Ejemplo n.º 17
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);
 }
        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);
            }
        }
Ejemplo n.º 19
0
        private Tween GenerateTweenYouseiMarch()
        {
            TweenCallback tweenCallback = delegate
            {
                this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_Frame_0;
            };
            TweenCallback tweenCallback2 = delegate
            {
                this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_Frame_0;
            };
            TweenCallback tweenCallback3 = delegate
            {
                this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_Frame_1;
            };
            TweenCallback tweenCallback4 = delegate
            {
                this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_Frame_2;
            };
            Sequence sequence = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence, this);
            TweenSettingsExtensions.OnPlay <Sequence>(sequence, tweenCallback);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback2);
            TweenSettingsExtensions.AppendInterval(sequence, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback3);
            TweenSettingsExtensions.AppendInterval(sequence, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback4);
            TweenSettingsExtensions.AppendInterval(sequence, 0.1f);
            TweenSettingsExtensions.SetLoops <Sequence>(sequence, 2147483647, 0);
            return(null);
        }
Ejemplo n.º 20
0
    public void StartCall()
    {
        base.ShowHP(false);
        Sequence seq = TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.AppendInterval(DOTween.Sequence(), 0.3f), new TweenCallback(this, this.< StartCall > m__0));

        this.mSequencePool.Add(seq);
    }
Ejemplo n.º 21
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();
             }
         }
     }
 }
Ejemplo n.º 22
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>());
 }
Ejemplo n.º 23
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 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);
        }
        private void OnPortMenuButtonClickEventListener(UIPortMenuButton calledObject)
        {
            bool flag         = -1 < Array.IndexOf <UIPortMenuButton>(this.mUIPortMenuButtons_Current, calledObject);
            bool isSelectable = calledObject.IsSelectable;
            bool flag2        = this.mStateManager.CurrentState == UserInterfacePortMenuManager.State.MainMenu || this.mStateManager.CurrentState == UserInterfacePortMenuManager.State.SubMenu;
            bool flag3        = this.IsControllable();

            if (flag2 && flag && isSelectable && flag3)
            {
                this.mStateManager.PushState(UserInterfacePortMenuManager.State.CallingNextScene);
                this.ChangeFocusButton(calledObject);
                Tween tween = calledObject.GenerateTweenClick();
                TweenSettingsExtensions.OnComplete <Tween>(tween, delegate
                {
                    bool flag4 = this.mUIPortMenuButton_Current is UIPortMenuButton.CompositeMenu;
                    if (this.mStateManager.CurrentState == UserInterfacePortMenuManager.State.SubMenu && !flag4)
                    {
                        this.mUIPortMenuAnimation.Initialize(calledObject);
                        this.mUIPortMenuAnimation.PlayCollectSubAnimation();
                    }
                    else
                    {
                        this.OnSelectedScene(calledObject.GetScene());
                    }
                });
            }
        }
Ejemplo n.º 26
0
    protected override void OnInit()
    {
        base.OnInit();
        this.mStart = base.mBulletModel.Find("FireBeamStart");
        this.mEnd   = base.mBulletModel.Find("FireBeamEnd");
        Transform transform = base.mBulletModel.Find("Fire Beam");

        if (transform != null)
        {
            this.line = transform.GetComponent <LineRenderer>();
            this.line.sortingLayerName = "Hit";
            this.startwidth            = this.line.widthMultiplier;
        }
        if (base.m_Data.bThroughInsideWall)
        {
            this.layerMask = ((int)1) << LayerManager.MapOutWall;
        }
        else
        {
            this.layerMask = (((int)1) << LayerManager.Stone) | (((int)1) << LayerManager.MapOutWall);
        }
        this.CheckBulletLength();
        this.starttime = 0f;
        this.bNearEnd  = false;
        this.UpdateLineWidth();
        this.mPool.Clear();
        Sequence sequence = this.mPool.Get();
        float    num      = (((float)base.m_Data.AliveTime) / 1000f) - this.line_update_time;

        TweenSettingsExtensions.AppendInterval(sequence, num);
        TweenSettingsExtensions.AppendCallback(sequence, new TweenCallback(this, this.< OnInit > m__0));
    }
Ejemplo n.º 27
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);
        }
 public void SwitchToHome(Action onFinishedAnimation)
 {
     DOTween.Kill(this, false);
     TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(0f, 1f, 0.3f, delegate(float alpha)
     {
         this.mPanelThis.alpha = alpha;
     }), this);
     this.mUIFurnitureYousei.Initialize(UIFurnitureYousei.YouseiType.Room);
     this.mUIFurnitureYousei.StartWalk();
     this.mUIFurnitureYousei.get_transform().set_localPosition(Vector3.get_zero());
     this.mUIFurnitureYousei.get_transform().set_localScale(Vector3.get_zero());
     TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mUIFurnitureYousei.get_transform(), 12.5f, 0.2f, false), 30, 1), this);
     TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mUIFurnitureYousei.get_transform(), Vector3.get_one(), 0.6f), 15), delegate
     {
         TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOScale(this.mUIFurnitureYousei.get_transform(), new Vector3(2f, 2f, 2f), 1f), 0.5f), this);
         TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(DOVirtual.Float(this.mUIFurnitureYousei.alpha, 0f, 0.6f, delegate(float alpha)
         {
             this.mUIFurnitureYousei.alpha = alpha;
         }), 0.5f), 18), delegate
         {
             TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(1f, 0f, 0.3f, delegate(float alpha)
             {
                 this.mPanelThis.alpha = alpha;
             }), this);
             if (onFinishedAnimation != null)
             {
                 onFinishedAnimation.Invoke();
             }
         }), this);
     }), this);
 }
Ejemplo n.º 29
0
 private void StartWave()
 {
     this.activitydata = GameLogic.Hold.BattleData.GetActiveLevelData(this.waveid);
     this.seq          = DOTween.Sequence();
     TweenSettingsExtensions.AppendInterval(this.seq, float.Parse(this.activitydata.Args[0]));
     TweenSettingsExtensions.AppendCallback(this.seq, new TweenCallback(this, this.CreateWave));
 }
Ejemplo n.º 30
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*/));
            }
        }