public void Play(DelDecideHexButtonEx decideCallback)
        {
            base.Init();
            _delDecideAdvancingWithdrawalButton = decideCallback;
            base.transform.localScaleOne();
            if (_iRootType == Generics.BattleRootType.SortieMap)
            {
                ShowHexButtons2Sortie();
            }
            else
            {
                ShowHexButtons2Rebellion();
            }
            _uiFleetInfos.Show();
            UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation;

            battleNavigation.SetNavigationInAdvancingWithDrawal();
            battleNavigation.Show(0.2f, null);
            battleNavigation.panel.depth = panel.depth + 1;
        }
示例#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();
        }