public void PlayAirReconnaissance(MapAirReconnaissanceKind iKind, Transform from, Transform airRecPoint, Action onFinished) { switch (iKind) { case MapAirReconnaissanceKind.Impossible: Observable.Timer(TimeSpan.FromSeconds(1.2000000476837158)).Subscribe(delegate { Dlg.Call(ref onFinished); }); break; case MapAirReconnaissanceKind.LargePlane: { ProdAircraftMove prodAircraftMove2 = ProdAircraftMove.Instantiate(((Component)_prefabEventAircraftMove).GetComponent <ProdAircraftMove>(), SortieMapTaskManager.GetUIMapManager().transform, panel.depth + 1); prodAircraftMove2.Move(from.position, airRecPoint.position, MapAirReconnaissanceKind.LargePlane, onFinished); break; } case MapAirReconnaissanceKind.WarterPlane: { ProdAircraftMove prodAircraftMove = ProdAircraftMove.Instantiate(((Component)_prefabEventAircraftMove).GetComponent <ProdAircraftMove>(), SortieMapTaskManager.GetUIMapManager().transform, panel.depth + 1); prodAircraftMove.Move(from.position, airRecPoint.position, MapAirReconnaissanceKind.WarterPlane, onFinished); break; } } }
private void DecideAdvancinsWithDrawalBtn(UIHexButtonEx btn) { if (btn.index == 2) { MapManager mapManager = SortieBattleTaskManager.GetMapManager(); mapManager.ChangeCurrentDeck(); } if (BattleTaskManager.IsSortieBattle() && SingletonMonoBehaviour <FadeCamera> .Instance != null) { SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(0.2f, delegate { RetentionData.SetData(BattleUtils.GetRetentionDataAdvancingWithdrawal(SortieBattleTaskManager.GetMapManager(), ShipRecoveryType.None)); if (btn.index == 0) { SingletonMonoBehaviour <FadeCamera> .Instance.isDrawNowLoading = false; SingletonMonoBehaviour <AppInformation> .Instance.NextLoadScene = Generics.Scene.Strategy; Application.LoadLevel(Generics.Scene.LoadingScene.ToString()); } else { SingletonMonoBehaviour <FadeCamera> .Instance.isDrawNowLoading = true; Dlg.Call <ShipRecoveryType>(ref this._actOnGotoSortieMap, ShipRecoveryType.None); } }); } }
public Action Execute() { Action callback = base.observerQueue.Dequeue(); Dlg.Call(ref callback); return(callback); }
public void Play(DamageCutInType iType, Action onStart, Action onFinished) { if (!isPlaying) { _iType = iType; panel.widgetsAreStatic = false; base.transform.localScale = Vector3.one; BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.motionBlur.enabled = true; cutInEffectCamera.motionBlur.blurAmount = 0.3f; cutInEffectCamera.glowEffect.enabled = false; cutInEffectCamera.isCulling = true; _traShips.localPositionZero(); DamageCutInList damageCutInList = (_iType != 0) ? DamageCutInList.ProdDamageCutInHeavyFirst : DamageCutInList.ProdDamageCutInModerateFirst; if (_iType == DamageCutInType.Moderate) { ((Component)_psModerateSmoke).SetActive(isActive: true); _psModerateSmoke.Play(); } else { ((Component)_psHeavyBack).SetActive(isActive: true); _psHeavyBack.Play(); } Dlg.Call(ref onStart); base.Play(damageCutInList, onFinished); } }
protected override void OnDragStart() { if (!this.IsSet) { return; } if (this._ship.IsInActionEndDeck()) { CommonPopupDialog.Instance.StartPopup(Util.getCancelReason(IsGoCondition.ActionEndDeck)); return; } if (this._ship.IsTettaiBling()) { return; } if (!this._preOnCheckDragDropTarget.Invoke(this)) { return; } Dlg.Call <OrganizeBannerManager>(ref this._actOnDragDropStart, this); this._bannerPanel.depth += 5; this._shutterPanel.depth += 5; OrganizeTaskManager._clsTop.deckSwitchManager.keyControlEnable = false; SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; base.OnDragStart(); }
public SoundManager.AudioSourceObserver Stop(bool isCallOnFinished, float fDuration) { if (this._disFinishedDisposable != null) { this._disFinishedDisposable.Dispose(); } this._disStopDisposable = null; if (fDuration == 0f || !this._asAudioSource.get_isPlaying()) { if (isCallOnFinished) { Dlg.Call(ref this._actOnFinished); } this.Clear(); } else { this._disStopDisposable = SoundManager.Utils.Fade(this._asAudioSource, 0f, fDuration, delegate { if (isCallOnFinished) { Dlg.Call(ref this._actOnFinished); } this.Clear(); }); } return(this); }
private void OnCancel() { Hide().setOnComplete((Action) delegate { Dlg.Call(ref _actOnCancel); }); }
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); }
protected override void OnDragStart() { isFocus = true; Dlg.Call(ref _actOnDragStart, _iCommandType); SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); base.OnDragStart(); }
protected override void OnDragStart() { this.isFocus = true; Dlg.Call <BattleCommand>(ref this._actOnDragStart, this._iCommandType); SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); base.OnDragStart(); }
public void Play(ProdDamageCutIn.DamageCutInType iType, Action onStart, Action onFinished) { if (this.isPlaying) { return; } this._iType = iType; this.panel.widgetsAreStatic = false; base.get_transform().set_localScale(Vector3.get_one()); BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; cutInEffectCamera.motionBlur.set_enabled(true); cutInEffectCamera.motionBlur.blurAmount = 0.3f; cutInEffectCamera.glowEffect.set_enabled(false); cutInEffectCamera.isCulling = true; this._traShips.localPositionZero(); ProdDamageCutIn.DamageCutInList damageCutInList = (this._iType != ProdDamageCutIn.DamageCutInType.Moderate) ? ProdDamageCutIn.DamageCutInList.ProdDamageCutInHeavyFirst : ProdDamageCutIn.DamageCutInList.ProdDamageCutInModerateFirst; if (this._iType == ProdDamageCutIn.DamageCutInType.Moderate) { this._psModerateSmoke.SetActive(true); this._psModerateSmoke.Play(); } else { this._psHeavyBack.SetActive(true); this._psHeavyBack.Play(); } Dlg.Call(ref onStart); base.Play(damageCutInList, onFinished); }
protected virtual void RotateFocusTowardTarget2MoveFieldCam(Vector3 target, Action callback) { BattleFieldCamera cam = BattleTaskManager.GetBattleCameras().fieldCameras.get_Item(0); Vector3 vector = Vector3.Lerp(cam.eyePosition, target, 0.2f); vector.x = target.x; vector.y = target.y; cam.get_transform().LTMoveX(vector.x, 0.666f).setOnStart(delegate { this.OnCameraRotateStart(); }).setEase(LeanTweenType.easeInQuad).setOnUpdate(delegate(float x) { cam.get_transform().positionX(x); }); cam.get_transform().LTMoveY(vector.y, 0.666f).setEase(LeanTweenType.easeInQuad).setOnUpdate(delegate(float x) { cam.get_transform().positionY(x); }); cam.get_transform().LTMoveZ(vector.z, 1.1655f).setEase(LeanTweenType.easeInQuad).setOnUpdate(delegate(float x) { cam.get_transform().positionZ(x); }).setOnComplete(delegate { Dlg.Call(ref callback); }); }
public void Hide(Action callback) { _listSelectorObjects.ForEach(delegate(IRebellionOrganizeSelectObject x) { Action onComplete = null; if (x.index == _uiSortieStartBtn.index) { onComplete = delegate { Observable.Timer(TimeSpan.FromSeconds(0.029999999329447746)).Subscribe(delegate { Dlg.Call(ref callback); panel.widgetsAreStatic = true; }); }; } if (x.button.transform.LTIsTweening()) { x.button.transform.LTCancel(); } Vector3 to = _listInfosPos[x.index]; to.x = _fStartOffs; x.button.transform.LTMoveLocal(to, 0.2f).setEase(LeanTweenType.easeInSine).setDelay((float)x.index * 0.03f) .setOnComplete(onComplete); }); }
public AudioSource StopFadeBGM(float duration, Action onFinished) { return(_clsBGMObserver.StopFade(duration, delegate { Dlg.Call(ref onFinished); }).source); }
public AudioSourceObserver Stop(bool isCallOnFinished, float fDuration) { if (_disFinishedDisposable != null) { _disFinishedDisposable.Dispose(); } _disStopDisposable = null; if (fDuration == 0f || !_asAudioSource.isPlaying) { if (isCallOnFinished) { Dlg.Call(ref _actOnFinished); } Clear(); } else { _disStopDisposable = Utils.Fade(_asAudioSource, 0f, fDuration, delegate { if (isCallOnFinished) { Dlg.Call(ref _actOnFinished); } Clear(); }); } return(this); }
protected override void OnDragDropRelease(GameObject surface) { if (surface != null) { OrganizeBannerManager component = surface.GetComponent <OrganizeBannerManager>(); if (component != null && component.IsSet) { ShipModel ship = component.ship; if (!_preOnDragDropRelease(component)) { Dlg.Call(ref _actOnDragDropEnd); } } else { Dlg.Call(ref _actOnDragDropEnd); } } else { Dlg.Call(ref _actOnDragDropEnd); } OrganizeTaskManager._clsTop.deckSwitchManager.keyControlEnable = true; SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true; base.OnDragDropRelease(surface); }
public Action Execute() { Action result = base.observerQueue.Dequeue(); Dlg.Call(ref result); return(result); }
public void SetCommandUnit(UICommandUnitIcon unit) { KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.SE_003); commandType = unit.commandType; isGrowHex = true; Dlg.Call(ref _actOnSetCommandUnit); ReductionUnitSet(); }
public void Hide(Action onFinished) { PreparaAnimation(isFoward: false, delegate { _uiBalloon.alpha = 0f; Dlg.Call(ref onFinished); }); }
public void OnDecide() { Dlg.Call(ref this.toggle.onDecide); if (this._delDecideAdvancingWithdrawalButtonEx != null) { this._delDecideAdvancingWithdrawalButtonEx(this); } }
public override void OnDecide() { this._listButtons.ForEach(delegate(UIDialogButton x) { x.toggle.set_enabled(false); }); Dlg.Call <int>(ref this._actOnDecide, base.currentIndex); }
public void Hide(Action onFinished) { this.PreparaAnimation(false, delegate { this._uiBalloon.alpha = 0f; Dlg.Call(ref onFinished); }); }
public virtual void PlayAttack(HougekiModel model, int nCurrentShellingCnt, bool isNextAttack, bool isSkipAttack, Action callback) { if (model == null) { Dlg.Call(ref callback); } BattleTaskManager.GetTorpedoHpGauges().Hide(); ObserverActionQueue observerAction = BattleTaskManager.GetObserverAction(); observerAction.Executions(); hougekiModel = model; _actOnFinished = callback; _isNextAttack = isNextAttack; _isSkipAttack = isSkipAttack; SetDirectionSubjects(hougekiModel); _nCurrentAttackCnt = nCurrentShellingCnt; BattleShips battleShips = BattleTaskManager.GetBattleShips(); battleShips.SetStandingPosition(StandingPositionType.OneRow); battleShips.SetLayer(Generics.Layers.ShipGirl); BattleField battleField = BattleTaskManager.GetBattleField(); battleField.ResetFleetAnchorPosition(); CorFleetAnchorDifPosition(); BattleCameras battleCameras = BattleTaskManager.GetBattleCameras(); battleCameras.SetVerticalSplitCameras(isSplit: false); BattleShips battleShips2 = BattleTaskManager.GetBattleShips(); battleShips2.SetBollboardTarget(isFriend: true, battleCameras.fieldCameras[0].transform); battleShips2.SetBollboardTarget(isFriend: false, battleCameras.fieldCameras[1].transform); battleShips2.SetTorpedoSalvoWakeAngle(isSet: false); BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; UITexture component = ((Component)cutInEffectCamera.transform.FindChild("TorpedoLine/OverlayLine")).GetComponent <UITexture>(); if (component != null) { component.alpha = 0f; } BattleFieldCamera battleFieldCamera = battleCameras.fieldCameras[0]; battleFieldCamera.clearFlags = CameraClearFlags.Skybox; battleFieldCamera.cullingMask = BattleTaskManager.GetBattleCameras().GetDefaultLayers(); battleFieldCamera.eyePosition = CalcAttackerCamStartPos; battleCameras.SwitchMainCamera(FleetType.Friend); BattleFieldCamera battleFieldCamera2 = battleCameras.fieldCameras[1]; battleFieldCamera2.eyePosition = new Vector3(0f, 4f, 0f); battleFieldCamera2.eyeRotation = Quaternion.identity; battleFieldCamera2.fieldOfView = 30f; SetFieldCamera(isAttacker: true, CalcCamPos(isAttacker: true, isPointOfGaze: false), _listBattleShips[0].spPointOfGaze); SetDimCamera(isAttacker: true, battleFieldCamera.transform); subjectShipLayerFmAnD = Generics.Layers.FocusDim; subjectStandingPosFmAnD = StandingPositionType.Advance; BattleTaskManager.GetPrefabFile().circleHPGauge.transform.localScaleZero(); _clsState.AddState(InitAttackerFocus, UpdateAttackerFocus); }
public virtual void PlayAttack(HougekiModel model, int nCurrentShellingCnt, bool isNextAttack, bool isSkipAttack, Action callback) { if (model == null) { Dlg.Call(ref callback); } BattleTaskManager.GetTorpedoHpGauges().Hide(); ObserverActionQueue observerAction = BattleTaskManager.GetObserverAction(); observerAction.Executions(); this.hougekiModel = model; this._actOnFinished = callback; this._isNextAttack = isNextAttack; this._isSkipAttack = isSkipAttack; this.SetDirectionSubjects(this.hougekiModel); this._nCurrentAttackCnt = nCurrentShellingCnt; BattleShips battleShips = BattleTaskManager.GetBattleShips(); battleShips.SetStandingPosition(StandingPositionType.OneRow); battleShips.SetLayer(Generics.Layers.ShipGirl); BattleField battleField = BattleTaskManager.GetBattleField(); battleField.ResetFleetAnchorPosition(); this.CorFleetAnchorDifPosition(); BattleCameras battleCameras = BattleTaskManager.GetBattleCameras(); battleCameras.SetVerticalSplitCameras(false); BattleShips battleShips2 = BattleTaskManager.GetBattleShips(); battleShips2.SetBollboardTarget(true, battleCameras.fieldCameras.get_Item(0).get_transform()); battleShips2.SetBollboardTarget(false, battleCameras.fieldCameras.get_Item(1).get_transform()); battleShips2.SetTorpedoSalvoWakeAngle(false); BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; UITexture component = cutInEffectCamera.get_transform().FindChild("TorpedoLine/OverlayLine").GetComponent <UITexture>(); if (component != null) { component.alpha = 0f; } BattleFieldCamera battleFieldCamera = battleCameras.fieldCameras.get_Item(0); battleFieldCamera.clearFlags = 1; battleFieldCamera.cullingMask = BattleTaskManager.GetBattleCameras().GetDefaultLayers(); battleFieldCamera.eyePosition = this.CalcAttackerCamStartPos; battleCameras.SwitchMainCamera(FleetType.Friend); BattleFieldCamera battleFieldCamera2 = battleCameras.fieldCameras.get_Item(1); battleFieldCamera2.eyePosition = new Vector3(0f, 4f, 0f); battleFieldCamera2.eyeRotation = Quaternion.get_identity(); battleFieldCamera2.fieldOfView = 30f; this.SetFieldCamera(true, this.CalcCamPos(true, false), this._listBattleShips.get_Item(0).spPointOfGaze); this.SetDimCamera(true, battleFieldCamera.get_transform()); this.subjectShipLayerFmAnD = Generics.Layers.FocusDim; this.subjectStandingPosFmAnD = StandingPositionType.Advance; BattleTaskManager.GetPrefabFile().circleHPGauge.get_transform().localScaleZero(); this._clsState.AddState(new StatementMachine.StatementMachineInitialize(this.InitAttackerFocus), new StatementMachine.StatementMachineUpdate(this.UpdateAttackerFocus)); }
public bool Reset() { this._isBorderOrver = false; this.isActiveIcon = false; base.get_transform().set_localPosition(this._vStartPos); base.get_transform().set_localScale(Vector3.get_one() * 0.95f); Dlg.Call(ref this._actOnDragAndDropRelease); return(true); }
public bool Reset() { _isBorderOrver = false; isActiveIcon = false; base.transform.localPosition = _vStartPos; base.transform.localScale = Vector3.one * 0.95f; Dlg.Call(ref _actOnDragAndDropRelease); return(true); }
private void InitSortieMapData(Transform prefabAreaMap, MapManager mapManager) { if (mapManager != null) { Dlg.Call(ref _actOnSetMapManager, mapManager); StartupUIMapManager(prefabAreaMap); GetGoNextData(); } }
private void OnActive(SelectMode iMode) { Dlg.Call(ref this._actOnAnyInput); if (this._iSelectMode != iMode) { this._iSelectMode = iMode; this.ChangeFocus(iMode, false); } }
private void OnFinishedMovie() { FirstMeetingManager fmm = StartupTaskManager.GetFirstMeetingManager(); Observable.FromCoroutine(() => fmm.Play(_nMstId, delegate { Dlg.Call(ref _actOnFinished); })).Subscribe(); }
public ObserverActionQueue Executions() { while (base.observerQueue.get_Count() != 0) { Action action = base.observerQueue.Dequeue(); Dlg.Call(ref action); } return(this); }