private IEnumerator PlayForceCallback() { UIBattleNavigation uibn = BattleTaskManager.GetPrefabFile().battleNavigation; uibn.SetNavigationInWithdrawalDecision(_iMode); Dlg.Call(ref _actForceCallback); _uiTacticalSituation = UITacticalSituation.Instantiate(((Component)_prefabUITacticalSituation).GetComponent <UITacticalSituation>(), BattleTaskManager.GetBattleCameras().cutInCamera.transform, BattleTaskManager.GetBattleManager()); _uiTacticalSituation.Init(OnTacticalSituationBack); _uiTacticalSituation.panel.depth = panel.depth + 1; yield return(StartCoroutine(BattleUtils.ClearMemory())); _listHexExBtns.ForEach(delegate(UIWithdrawalButton x) { var _003CPlayForceCallback_003Ec__IteratorF = this; x.SetActive(isActive: true); x.Play(delegate { x.isFocus = ((x.index == 0) ? true : false); x.isColliderEnabled = true; if (x.index == 0) { _isInputPossible = true; _clsState.AddState(InitWithdrawalSelection, UpdateWithdrawalSelection); uibn.Show(); } }); }); yield return(null); }
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); }); }); }
public bool Run() { if (_isPlayMsg1) { _clsMessage1.Update(); if (_clsMessage1.IsMessageEnd) { _clsMessage2.Play(); _isPlayMsg1 = false; _isPlayMsg2 = true; } } if (_isPlayMsg2) { _clsMessage2.Update(); if (_clsMessage2.IsMessageEnd) { if (_isBattleCut) { UIBattleCutNavigation navigation = BattleCutManager.GetNavigation(); navigation.SetNavigationInFlagshipWreck(); navigation.Show(0.2f, null); } else { UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation; battleNavigation.SetNavigationInFlagshipWreck(); battleNavigation.Show(0.2f, null); } _isPlayMsg2 = false; _isControl = true; _uiBackBtn.GetComponent <UISprite>().alpha = 1f; _uiBackBtn.transform.localPosition = new Vector3(420f, -205f, 0f); _backBtnAnim.Play(); } } if (_isFinished) { return(true); } if (!_isControl) { return(false); } if (_keyControl.keyState[1].down) { compFlagshipWreck(); } return(false); }
public IEnumerator PlayShowAnimation(Action onFinished) { UIBattleNavigation uibn = BattleTaskManager.GetPrefabFile().battleNavigation; uibn.SetNavigationInCommand(commandMode); _actOnFinished = onFinished; yield return(new WaitForSeconds(0.2f)); bool wait2 = false; FadeOutOverlay().setOnComplete((Action) delegate { wait2 = true; }); while (!wait2) { yield return(new WaitForEndOfFrame()); } ObserverActionQueue oaq = BattleTaskManager.GetObserverAction(); oaq.Executions(); wait2 = false; InitCommandBackground(); FadeInOverlay().setOnComplete((Action) delegate { wait2 = true; }); while (!wait2) { yield return(new WaitForEndOfFrame()); } _uiCommandUnitList.Show().setOnComplete((Action) delegate { TutorialModel tutorial = BattleTaskManager.GetBattleManager().UserInfo.Tutorial; SingletonMonoBehaviour <TutorialGuideManager> .Instance.CheckAndShowFirstTutorial(tutorial, TutorialGuideManager.TutorialID.BattleCommand, null, delegate { uibn.Show(); this._clsState.AddState(this.InitKeyMode, this.UpdateKeyMode); this._uiCommandBox.isColliderEnabled = true; this._uiCommandBox.ChkAllSurfaceSet(); this._uiCommandUnitList.isColliderEnabled = true; }); }); Observable.FromCoroutine(_uiCommandBox.PlayShowAnimation).Subscribe(); }
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; }
private bool initEXPReflection(object data) { TrophyUtil.Unlock_UserLevel(); _uiMVPShip.Show(BattleUtils.IsPlayMVPVoice(_clsResultModel.WinRank), null); _uiBonus.Show(null); Observable.Timer(TimeSpan.FromSeconds(0.25)).Subscribe(delegate { _listVeteransReportFleets[0].PlayEXPUpdate(delegate { UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation; battleNavigation.SetNavigationInResult(); battleNavigation.Show(0.2f, null); _uiGearBtn.Show(delegate { _isInputEnabled = true; }); }); _uiGearBtn.SetDecideAction(OnDecideEXPUodateGearBtn); }); return(false); }
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(); }