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.º 2
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.º 3
0
        private void UpdateView(DeckModel deckModel)
        {
            int num   = 0;
            int count = deckModel.Count;

            UIRebellionOrgaizeShipBanner[] shipStates = ShipStates;
            foreach (UIRebellionOrgaizeShipBanner uIRebellionOrgaizeShipBanner in shipStates)
            {
                int nIndex = num + 1;
                uIRebellionOrgaizeShipBanner.SetShipData(deckModel.GetShip(num), nIndex);
                uIRebellionOrgaizeShipBanner.SetShipIndex(num);
                num++;
            }
            if (FocusBanner != null)
            {
                BannerFocusAnim(isEnable: false);
                FocusBanner = ShipStates[key.Index];
                BannerFocusAnim(isEnable: true);
            }
            DeckNoLabel.text            = deckModel.Name;
            DeckNoLabel.supportEncoding = false;
            DeckNoIcon.mainTexture      = (Resources.Load("Textures/Common/DeckFlag/icon_deck" + deckModel.Id) as Texture2D);
            if (deckModel.IsActionEnd())
            {
                DeckActionEnd.SetActive(isActive: true);
                DeckActionEnd.DOKill();
                DeckActionEnd.DOLocalRotate(new Vector3(0f, 0f, 300f), 0f, RotateMode.FastBeyond360);
                DeckActionEnd.DOLocalRotate(new Vector3(0f, 0f, 360f), 0.8f, RotateMode.FastBeyond360).SetEase(Ease.OutBounce);
            }
            else
            {
                DeckActionEnd.SetActive(isActive: false);
            }
        }
Ejemplo n.º 4
0
        public void RefreshTitle(ScreenStatus status, DeckModel deck)
        {
            string text = string.Empty;

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

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

            case ScreenStatus.SELECT_SETTING_MODE:
                text = "メニュ\u30fc選択";
                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())
            {
                mTransform_TurnEndStamp.SetActive(isActive: true);
                mTransform_TurnEndStamp.DOKill();
                mTransform_TurnEndStamp.DOLocalRotate(new Vector3(0f, 0f, 300f), 0f, RotateMode.FastBeyond360);
                mTransform_TurnEndStamp.DOLocalRotate(new Vector3(0f, 0f, 360f), 0.8f, RotateMode.FastBeyond360).SetEase(Ease.OutBounce);
            }
            else
            {
                mTransform_TurnEndStamp.SetActive(isActive: false);
            }
            titleLabel.text            = text;
            titleLabel.supportEncoding = false;
        }
Ejemplo n.º 5
0
 public void OnDeckChange(DeckModel deck)
 {
     if (currentDeck != null)
     {
         bool flag = GetDeckID() < deck.Id;
         for (int i = 0; i < 6; i++)
         {
             _bannerManager[i].UpdateChangeBanner(enabled: false);
             if (flag)
             {
                 _bannerManager[i].DeckChangeAnimetion(isLeft: true);
             }
             else
             {
                 _bannerManager[i].DeckChangeAnimetion(isLeft: false);
             }
         }
     }
     currentDeck = deck;
     SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck = (DeckModel)currentDeck;
     if (currentDeck != null && deck.IsActionEnd())
     {
         mTransform_TurnEndStamp.SetActive(isActive: true);
         mTransform_TurnEndStamp.DOKill();
         mTransform_TurnEndStamp.DOLocalRotate(new Vector3(0f, 0f, 300f), 0f, RotateMode.FastBeyond360);
         mTransform_TurnEndStamp.DOLocalRotate(new Vector3(0f, 0f, 360f), 0.8f, RotateMode.FastBeyond360).SetEase(Ease.OutBounce);
     }
     else
     {
         mTransform_TurnEndStamp.SetActive(isActive: false);
     }
     ShipModel[] ships = deck.GetShips();
     for (int j = 0; j < 6; j++)
     {
         if (j < ships.Length)
         {
             _bannerManager[j].setShip(ships[j]);
             _bannerManager[j].IsSet = true;
         }
         else
         {
             _bannerManager[j].IsSet = false;
         }
     }
     BannerIndex = 1;
     setControlState();
     UpdateDeckName();
     UpdeteDeckIcon();
     UpdateSystemButtons();
     deckChangeArrows.UpdateView();
 }
 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();
 }
Ejemplo n.º 7
0
 public void OnDeckChange(DeckModel deck)
 {
     _currentDeck = deck;
     if (_currentDeck != null && _currentDeck.IsActionEnd())
     {
         _mTrans_TurnEndStamp.SetActive(isActive: true);
         _mTrans_TurnEndStamp.DOKill();
         _mTrans_TurnEndStamp.DOLocalRotate(new Vector3(0f, 0f, 300f), 0f, RotateMode.FastBeyond360);
         _mTrans_TurnEndStamp.DOLocalRotate(new Vector3(0f, 0f, 360f), 0.8f, RotateMode.FastBeyond360).SetEase(Ease.OutBounce);
     }
     else
     {
         _mTrans_TurnEndStamp.SetActive(isActive: false);
     }
     if (isNotOther())
     {
         mShipSortButton.SetActive(isActive: false);
         SupplyManager.InitForDeck(_currentDeck.Id);
         _deckName.text = deck.Name;
         Transform transform     = _mTrans_TurnEndStamp.transform;
         Vector3   localPosition = _deckName.transform.localPosition;
         float     x             = localPosition.x;
         Vector2   printedSize   = _deckName.printedSize;
         transform.localPositionX(x + printedSize.x + 20f);
         _shipBannerContainer.Show(animation: true);
         _shipBannerContainer.InitDeck(deck);
         _otherListParent.Hide();
         SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck = _currentDeck;
     }
     else
     {
         mShipSortButton.SetActive(isActive: true);
         SupplyManager.InitForOther();
         _deckName.text = "その他";
         _shipBannerContainer.Hide(animation: true);
         _otherListParent.MemoryNextFocus();
         _otherListParent.Initialize(KeyController, SupplyManager.Ships);
         _otherListParent.Show();
         _otherListParent.StartState();
     }
     UpdateRightPain();
     if (_status == ScreenStatus.RIGHT_PAIN_WORK)
     {
         change_2_SHIP_SELECT(defaultFocus: true);
     }
 }
Ejemplo n.º 8
0
            public string getDeckStateString(DeckModel deck)
            {
                string result = string.Empty;

                switch (deck.MissionState)
                {
                case MissionStates.NONE:
                    result = "行動可能";
                    break;

                case MissionStates.RUNNING:
                    result = "遠征中 残り" + deck.MissionRemainingTurns + "日";
                    break;

                case MissionStates.STOP:
                    result = "遠征帰還中";
                    break;
                }
                if (deck.IsActionEnd())
                {
                    result = "行動終了";
                }
                return(result);
            }