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();
        }
Exemple #2
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 #3
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;
        }
        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);
            }
        }
    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 #6
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 void OnDeckChange(DeckModel deck)
 {
     if (this.currentDeck != null)
     {
         bool flag = this.GetDeckID() < deck.Id;
         for (int i = 0; i < 6; i++)
         {
             this._bannerManager[i].UpdateChangeBanner(false);
             if (flag)
             {
                 this._bannerManager[i].DeckChangeAnimetion(true);
             }
             else
             {
                 this._bannerManager[i].DeckChangeAnimetion(false);
             }
         }
     }
     this.currentDeck = deck;
     SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck = (DeckModel)this.currentDeck;
     if (this.currentDeck != 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);
     }
     ShipModel[] ships = deck.GetShips();
     for (int j = 0; j < 6; j++)
     {
         if (j < ships.Length)
         {
             this._bannerManager[j].setShip(ships[j]);
             this._bannerManager[j].IsSet = true;
         }
         else
         {
             this._bannerManager[j].IsSet = false;
         }
     }
     TaskOrganizeTop.BannerIndex = 1;
     this.setControlState();
     this.UpdateDeckName();
     this.UpdeteDeckIcon();
     this.UpdateSystemButtons();
     this.deckChangeArrows.UpdateView();
 }
Exemple #8
0
    protected override void OnAIDeInit()
    {
        this.mSeqPool.Clear();
        int num   = 0;
        int count = this.prevs.Count;

        while (num < count)
        {
            ShortcutExtensions.DOKill(this.prevs[num].transform, false);
            GameLogic.EffectCache(this.prevs[num]);
            num++;
        }
        this.prevs.Clear();
    }
 public void DeadDown()
 {
     this.bHittedColor = false;
     Dictionary <EElementType, BodyElementData> .Enumerator enumerator = this.ElementColor.GetEnumerator();
     while (enumerator.MoveNext())
     {
         KeyValuePair <EElementType, BodyElementData> current = enumerator.Current;
         current.Value.count = 0;
     }
     if (this.RotateMask.transform.localPosition.y > 0f)
     {
         ShortcutExtensions.DOKill(this.RotateMask.transform, false);
         ShortcutExtensions.DOLocalMoveY(this.RotateMask.transform, 0f, 0.3f, false);
     }
 }
Exemple #10
0
 private void HideShortCutStateView()
 {
     ShortcutExtensions.DOKill(this.mTransform_UIPracticeShortCutSwitch, false);
     ShortcutExtensions.DOLocalMoveX(this.mTransform_UIPracticeShortCutSwitch, -600f, 0.3f, false);
 }