Ejemplo n.º 1
0
 public void Play(DelDecideAdvancingWithdrawalButton decideCallback)
 {
     this._delDecideAdvancingWithdrawalButton = decideCallback;
     base.Init();
     this._setShipTexture();
     this._setLabel();
     this._btnIndex = 0;
     this._listIsBtn.set_Item(0, true);
     this._uiSmoke.SetActive(true);
     this._uiSmoke.Play();
     this._listHexBtns.ForEach(delegate(UIHexButton x)
     {
         x.SetActive(true);
         x.Play(UIHexButton.AnimationList.HexButtonShow, delegate
         {
             if (this._isBattleCut)
             {
                 UIBattleCutNavigation navigation = BattleCutManager.GetNavigation();
                 navigation.SetNavigationInEscortShipEvacuation();
                 navigation.Show(0.2f, null);
             }
             else
             {
                 UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation;
                 battleNavigation.SetNavigationInEscortShipEvacuation();
                 battleNavigation.Show(0.2f, null);
             }
             this._isInputPossible = true;
             this.SetAdvancingWithdrawalBtnState(this._btnIndex);
         });
     });
 }
Ejemplo n.º 2
0
        public void Play(DelDecideAdvancingWithdrawalButton decideCallback)
        {
            this._delDecideAdvancingWithdrawalButton = decideCallback;
            base.get_transform().localScaleOne();
            base.Init();
            if (this._iType == Generics.BattleRootType.Rebellion)
            {
                this.SetHexBtnsPos4Rebellion();
            }
            else
            {
                this.SetHexBtnsPos4Sortie();
            }
            ShipModel_BattleAll shipModel_BattleAll = BattleTaskManager.GetBattleManager().Ships_f[0];

            if (shipModel_BattleAll.HasRecoverYouin())
            {
                this._btnIndex = 1;
            }
            else if (shipModel_BattleAll.HasRecoverMegami())
            {
                this._btnIndex = 2;
            }
            else
            {
                this._btnIndex = 0;
            }
            if (shipModel_BattleAll.HasRecoverYouin())
            {
                this._listIsBtn.set_Item(1, true);
            }
            else
            {
                this._listHexBtns.get_Item(1).uiButton.defaultColor = new Color(0.2f, 0.2f, 0.2f);
            }
            if (shipModel_BattleAll.HasRecoverMegami())
            {
                this._listIsBtn.set_Item(2, true);
            }
            else
            {
                this._listHexBtns.get_Item(2).uiButton.defaultColor = new Color(0.2f, 0.2f, 0.2f);
            }
            if (BattleTaskManager.GetBattleManager().ChangeableDeck)
            {
                this._listIsBtn.set_Item(3, BattleTaskManager.GetBattleManager().ChangeableDeck);
            }
            else
            {
                this._listHexBtns.get_Item(3).uiButton.defaultColor = new Color(0.2f, 0.2f, 0.2f);
            }
            this._listIsBtn.set_Item(0, true);
            this._listHexBtns.ForEach(delegate(UIHexButton x)
            {
                x.SetActive(true);
                x.Play(UIHexButton.AnimationList.HexButtonShow, delegate
                {
                    this._isInputPossible = true;
                    this.SetAdvancingWithdrawalBtnState(this._btnIndex);
                });
            });
            UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation;

            battleNavigation.SetNavigationInAdvancingWithDrawal();
            battleNavigation.Show(0.2f, null);
            this._uiFleetInfos.Show();
        }