private void DecideAdvancingWithDrawalBtn(UIHexButton btn) { if (this._isDecide) { return; } this._isDecide = true; KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.SE_036); this._listHexBtns.ForEach(delegate(UIHexButton x) { x.isColliderEnabled = false; }); this.SetAdvancingWithdrawalBtnState(btn.index); if (this._isBattleCut) { UIBattleCutNavigation navigation = BattleCutManager.GetNavigation(); navigation.Hide(0.2f, null); } else { UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation; battleNavigation.Hide(0.2f, null); } if (this._delDecideAdvancingWithdrawalButton != null) { this._delDecideAdvancingWithdrawalButton(btn); } }
private void OnDecideEXPUodateGearBtn() { UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation; battleNavigation.Hide(0.2f, null); KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonEnter2); _isEXPUpdateFinished = true; _isProdFinished = true; _uiGearBtn.Hide(null); }
private void DecideAdvancingWithDrawalBtn(UIHexButton btn) { ShipModel_BattleAll shipModel_BattleAll = BattleTaskManager.GetBattleManager().Ships_f[0]; if (btn.index == 1 && !shipModel_BattleAll.HasRecoverYouin()) { return; } if (btn.index == 2 && !shipModel_BattleAll.HasRecoverMegami()) { return; } if (btn.index == 1 && this._btnIndex != btn.index) { this._btnIndex = btn.index; KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); this.SetAdvancingWithdrawalBtnState(this._btnIndex); return; } if (btn.index == 2 && this._btnIndex != btn.index) { this._btnIndex = btn.index; KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); this.SetAdvancingWithdrawalBtnState(this._btnIndex); return; } if (btn.index == 0 && this._btnIndex != btn.index) { this._btnIndex = btn.index; KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); this.SetAdvancingWithdrawalBtnState(this._btnIndex); return; } if (this._isDecide) { return; } this._isDecide = true; KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.SE_036); this._listHexBtns.ForEach(delegate(UIHexButton x) { x.isColliderEnabled = false; }); this.SetAdvancingWithdrawalBtnState(btn.index); UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation; battleNavigation.Hide(0.2f, null); if (this._delDecideAdvancingWithdrawalButton != null) { this._delDecideAdvancingWithdrawalButton(btn); } }
private void compFlagshipWreck() { if (_isControl) { _isFinished = true; _isControl = false; if (_isBattleCut) { UIBattleCutNavigation navigation = BattleCutManager.GetNavigation(); navigation.Hide(0.2f, null); } else { UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation; battleNavigation.Hide(0.2f, null); } Dlg.Call(ref _actCallback); } }
private void DecideAdvancingWithDrawalBtn(UIHexButtonEx btn) { if (!_isDecide) { _isDecide = true; KeyControl keyControl = BattleTaskManager.GetKeyControl(); keyControl.Index = btn.index; KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.SE_036); _listHexExBtns.ForEach(delegate(UIAdvancingWithDrawalButton x) { x.isColliderEnabled = false; }); UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation; battleNavigation.Hide(0.2f, null); if (_delDecideAdvancingWithdrawalButton != null) { _delDecideAdvancingWithdrawalButton(btn); } } }
private bool OnStartBattle(List <BattleCommand> commands) { if (!_clsCommandModel.SetCommand(commands)) { KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.CommonCancel2); return(false); } _clsState.Clear(); _uiCommandUnitList.isColliderEnabled = false; Observable.Timer(TimeSpan.FromSeconds(0.5)).Subscribe(delegate { UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation; battleNavigation.Hide(); FadeOutOverlay().setOnComplete((Action) delegate { _uiBlur.enabled = false; Dlg.Call(ref _actOnFinished); }); }); return(true); }
private void OnDeside(WithdrawalDecisionType iType) { if (!_isDecide) { _isDecide = true; _isInputPossible = false; _listHexExBtns.ForEach(delegate(UIWithdrawalButton x) { x.toggle.enabled = false; }); KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.SE_036); UIBattleNavigation battleNavigation = BattleTaskManager.GetPrefabFile().battleNavigation; battleNavigation.Hide(0.3f, null); Observable.Timer(TimeSpan.FromSeconds(0.30000001192092896)).Subscribe(delegate { if (_delDecideWithdrawalButton != null) { _delDecideWithdrawalButton(_listHexExBtns[(int)iType]); } }); } }