private void OnPushStateBattlePracticeTargetAlertConfirm() { mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; mCommonDialog_Dialog.SetActive(isActive: true); mCommonDialog_Dialog.setCloseAction(OnClosePracticeBattleAlert); mCommonDialog_Dialog.OpenDialog(0); }
public void showTankerDialog(int CreateNum, int beforeNum, int afterNum) { _tankerDialog.setMessage(CreateNum, beforeNum, afterNum); commonDialog.OpenDialog(0); commonDialog.setCloseAction(delegate { ArsenalTaskManager._clsArsenal.setTutorialVisible(isVisible: true); }); }
private void DecideCancel() { strategyDialog.isUseDefaultKeyController = false; strategyDialog.OpenDialog(3); CancelDialogButton.SetOnSelectPositiveListener(CancelOrganize); CancelDialogButton.SetOnSelectNegativeListener(delegate { strategyDialog.CloseDialog(); }); CancelDialogButton.SetKeyController(new KeyControl()); }
private IEnumerator OpenConfirmDialog(DeckModel deck) { yield return(new WaitForEndOfFrame()); StrategyDialog.disableBackTouch(); StrategyDialog.isUseDefaultKeyController = false; StrategyDialog.OpenDialog(2); StrategyTaskManager.GetStrategyRebellion().keycontrol.IsRun = false; StrategyDialog.setOpenAction(delegate { this.GoSortieConfirm.SetKeyController(new KeyControl()); }); }
private void OpenExSlotDialog() { ExSlotDialog.SetActive(isActive: true); keyController.IsRun = false; keyController.ClearKeyAll(); int hokyoZousetsuNum = UserInterfaceRemodelManager.instance.mRemodelManager.HokyoZousetsuNum; ExSlotDialog.isUseDefaultKeyController = false; ExSlotItemNum.text = hokyoZousetsuNum + "\u3000→\u3000" + (hokyoZousetsuNum - 1); ExSlotDialog.OpenDialog(0); ExSlotDialog.setCloseAction(delegate { keyController.IsRun = true; }); YesNoButton.SetOnSelectPositiveListener(OpenExSlot); YesNoButton.SetOnSelectNegativeListener(CloseExSlotDialog); YesNoButton.SetKeyController(new KeyControl()); }
private void OpenDeckInfo() { DeckInfoConfirm.SetKeyController(new KeyControl()); commonDialog.setOpenAction(delegate { DeckInfoConfirm.SetKeyController(new KeyControl()); }); commonDialog.OpenDialog(2, DialogAnimation.AnimType.FEAD); DeckInfoConfirm.Initialize(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck, isConfirm: true); DeckInfoConfirm.SetPushYesButton(delegate { mKeyController.IsRun = false; commonDialog.CloseDialog(); OnStartSortieStage(); Close(); }); DeckInfoConfirm.SetPushNoButton(delegate { commonDialog.CloseDialog(); }); }
private void OpenConfirmDialog() { keyController.IsRun = false; ConfirmDialog.isUseDefaultKeyController = false; ConfirmDialog.OpenDialog(1); ConfirmDialog.setCloseAction(delegate { keyController.IsRun = true; KeyControlManager.Instance.KeyController = keyController; }); BackConfirm.SetKeyController(new KeyControl()); BackConfirm.SetOnSelectPositiveListener(delegate { ChangeStateBack(); ConfirmDialog.CloseDialog(); }); BackConfirm.SetOnSelectNegativeListener(delegate { ConfirmDialog.CloseDialog(); }); }
private IEnumerator PopupCantSortieDecksDialog(List <DeckModel> areaDecks) { AreaDecks = areaDecks; if (areaDecks.Count == 0) { SortieEnableDeckNum = 0; yield return(StartCoroutine(ShowTutorial(0))); yield break; } int disableDeckNum = deckInfoManager.Init(areaDecks); SortieEnableDeckNum = areaDecks.Count - disableDeckNum; if (0 < disableDeckNum) { yield return(new WaitForEndOfFrame()); commonDialog.OpenDialog(0); yield return(StartCoroutine(commonDialog.WaitForDialogClose())); deckInfoManager.transform.parent.SetActive(isActive: false); } yield return(StartCoroutine(ShowTutorial(SortieEnableDeckNum))); }
private IEnumerator OnPushMarriageConfirmStateCoroutine() { mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; mKeyController.IsRun = false; Stopwatch stopWatch = new Stopwatch(); stopWatch.Reset(); stopWatch.Start(); if (mCommonDialog == null) { ResourceRequest requestPrefabCommonDialogPort = Resources.LoadAsync("Prefabs/Others/CommonDialogPort"); App.OnlyController = new KeyControl(); SingletonMonoBehaviour <UIShortCutMenu> .Instance.LockTouchControl(isEnable : true); yield return(requestPrefabCommonDialogPort); mCommonDialog = Util.Instantiate(requestPrefabCommonDialogPort.asset, mTransform_LayerOverlay.gameObject).GetComponent <CommonDialog>(); mCommonDialog.SetCameraBlur(mBlur_Camera); mUIMarriageConfirm = mCommonDialog.dialogMessages[0].GetComponent <UIMarriageConfirm>(); App.OnlyController = null; SingletonMonoBehaviour <UIShortCutMenu> .Instance.LockTouchControl(isEnable : false); } mCommonDialog.isUseDefaultKeyController = false; mUIMarriageConfirm.Initialize(mPortManager.YubiwaNum, mPortManager.YubiwaNum - 1); mUIMarriageConfirm.SetOnNegativeListener(OnCancelMarriageConfirm); mUIMarriageConfirm.SetOnPositiveListener(OnStartMarriageConfirm); mUIMarriageConfirm.SetKeyController(mKeyController); stopWatch.Stop(); for (int frame = 0; frame < stopWatch.Elapsed.Milliseconds / 60; frame++) { yield return(new WaitForEndOfFrame()); } mKeyController.IsRun = true; mCommonDialog.OpenDialog(0); }
private bool KeyAction() { if (DeckSelectController.IsChangeIndex) { bool isNext = (DeckSelectController.prevIndexChangeValue == 1) ? true : false; SearchAndChangeDeck(isNext, isSeachLocalArea: false); if (prevDeckID != SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID) { changeDeck(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID); StrategyTopTaskManager.Instance.UIModel.Character.PlayVoice(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck); if (StrategyTopTaskManager.Instance.UIModel.Character.shipModel != null) { StrategyTopTaskManager.GetSailSelect().moveCharacterScreen(isEnter: true, null); } } return(true); } if (StrategyAreaManager.sailKeyController.IsChangeIndex) { areaManager.UpdateSelectArea(StrategyAreaManager.sailKeyController.Index); } else if (DeckSelectController.keyState[1].down) { if (SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.GetFlagShip() == null) { GotoOrganize(); } else { OpenCommandMenu(); } } else if (DeckSelectController.keyState[3].down) { if (SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.GetShipCount() != 0) { if (prevDeckID != SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID) { changeDeck(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID); StrategyTopTaskManager.Instance.UIModel.Character.PlayVoice(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck); } if (SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide() != null) { SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide().Hide(); } uiGoSortieConfirm.SetKeyController(new KeyControl()); commonDialog.OpenDialog(2, DialogAnimation.AnimType.FEAD); uiGoSortieConfirm.Initialize(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck, isConfirm: false); commonDialog.setCloseAction(delegate { KeyControlManager.Instance.KeyController = DeckSelectController; if (SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide() != null) { TutorialModel tutorial = StrategyTopTaskManager.GetLogicManager().UserInfo.Tutorial; SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide().Show(); } }); SoundUtils.PlaySE(SEFIleInfos.CommonEnter1); } } else if (DeckSelectController.keyState[5].down) { SingletonMonoBehaviour <PortObjectManager> .Instance.BackToPortOrOrganize(); } else if (DeckSelectController.keyState[0].down) { areaManager.UpdateSelectArea(SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID); } else if (DeckSelectController.keyState[2].down) { if (SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide() != null) { SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide().Hide(); } commonDialog.OpenDialog(4); commonDialog.keyController.IsRun = false; commonDialog.setOpenAction(delegate { commonDialog.keyController.IsRun = true; }); commonDialog.ShikakuButtonAction = delegate { Close(); StrategyTopTaskManager.ReqMode(StrategyTopTaskManager.StrategyTopTaskManagerMode.TurnEnd); StrategyTopTaskManager.GetTurnEnd().TurnEnd(); if (StrategyTopTaskManager.Instance.TutorialGuide8_1 != null) { if (SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide() != null) { SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide().HideAndDestroy(); } StrategyTopTaskManager.Instance.TutorialGuide8_1.HideAndDestroy(); } }; commonDialog.BatuButtonAction = delegate { if (SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide() != null) { SingletonMonoBehaviour <PortObjectManager> .Instance.GetTutorialGuide().Show(); } }; } return(true); }