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 CancelOrganize() { strategyDialog.CloseDialog(); strategyDialog.setCloseAction(delegate { DebugUtils.Log("TaskRebellionOrganize", string.Empty); Close(); StartCoroutine(StrategyTaskManager.GetStrategyRebellion().taskRebellionEvent.NonDeckLose()); }); }
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 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 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); }