private void OnPushStateListFurnitureSelect() { SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true; mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; mUIFurnitureStoreTabList.SetKeyController(mKeyController); mUIFurnitureStoreTabList.ResumeControl(); }
private void OnBackDetailListener() { mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; mUIInteriorFurnitureDetail.QuitState(); mStateManager.PopState(); mStateManager.ResumeState(); SoundUtils.PlaySE(mAudioClip_CommonCancel1); }
private void OnBackShipAlbumListener() { if (mStateManager.CurrentState == State.ShipAlbum) { mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; mStateManager.PopState(); mStateManager.PushState(State.AlbumSelectGate); } }
public void StartState() { mStateManager.PushState(State.BattlePracticeTargetSelect); mPracticeBattleTargetSelect.Show(delegate { mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; mPracticeBattleTargetSelect.SetKeyController(mKeyController); }); }
private void OnPushStateDeckPractice() { mUIDeckPracticeManager.SetActive(isActive: true); mUIDeckPracticeManager.Release(); mUIDeckPracticeManager.Initialize(mPracticeManager); mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; mUIDeckPracticeManager.SetKeyController(mKeyController); mUIDeckPracticeManager.StartState(); mPracticeMenu.MoveToButtonCenterFocus(delegate { }); }
private void OnPushStateShipSelect() { _uiOverlay4.localPositionX(614f); _uiOverlay3.transform.localScale = Vector3.one; ShipScroll.SetActive(isActive: true); ItemScroll.SetActive(isActive: false); _dismantleBtn.normalSprite = "btn_kaitai"; KeyController.ClearKeyAll(); ShipScroll.SetKeyController(KeyController); ShipScroll.StartControl(); TweenPosition tweenPosition = TweenPosition.Begin(_bgPanel.gameObject, 0.3f, Vector3.zero); tweenPosition.animationCurve = AnimationCurve.Linear(0f, 0f, 1f, 1f); }
private void Update() { if (mFocusKeyController != null) { mFocusKeyController.Update(); if (mFocusKeyController.IsRDown() && SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable) { mFocusKeyController.ClearKeyAll(); mFocusKeyController.firstUpdate = true; mFocusKeyController = null; SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy(); } } }
private void OnBackAlbumDetailListener(Tween closeTween) { if (mStateManager.CurrentState == State.ShipDetail) { mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; mUIShipAlbumDetail.SetKeyController(null); closeTween.OnComplete(delegate { mStateManager.PopState(); mStateManager.ResumeState(); mUIShipAlbumDetail.SetActive(isActive: false); }); } }
public virtual void setList(bool isHeadFocus) { if (!IsCreate) { KeyController.firstUpdate = true; KeyController.ClearKeyAll(); updateList(isHeadFocus: true); IsCreate = true; } else { updateList(isHeadFocus); } ListScroll.SetKeyController(KeyController); ListScroll.StartControl(); }
public new void StartControl() { mUIShipSortButton.SetClickable(clickable: true); mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; base.StartControl(); }
private void Update() { if (Input.GetKeyDown(KeyCode.P)) { PlaySlotInAnimation(); } if (mKeyController != null && base.mState == ListState.Waiting) { if (mKeyController.IsUpDown()) { PrevFocus(); } else if (mKeyController.IsDownDown()) { NextFocus(); } else if (mKeyController.IsMaruDown()) { mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; Select(); } else if (mKeyController.IsBatuDown()) { SingletonMonoBehaviour <PortObjectManager> .Instance.BackToActiveScene(); } } }
private void OnSelectedMusicListener(Mst_bgm_jukebox jukeBoxBGM) { mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; if (jukeBoxBGM.R_coins <= mPortManager.UserInfo.FCoin) { mUIJukeBoxPlayListParent.LockState(); mUIJukeBoxPlayListParent.SetKeyController(null); mContext.SetJukeBoxBGM(jukeBoxBGM); mStateManager.PushState(State.BuyMusicConfirm); } else { CommonPopupDialog.Instance.StartPopup("家具コインが不足しています"); } }
public void Play() { mMissionResultStatus.PlayShowBanners(delegate { mMissionJudgeCutIn.SetOnFinishedAnimationListener(delegate { TrophyUtil.Unlock_UserLevel(); TrophyUtil.Unlock_Material(); mKeyController.IsRun = true; StartCoroutine(WaitForKeyOrTouch(mKeyController, delegate { mKeyController.ClearKeyAll(); mMissionJudgeCutIn.SetActive(isActive: false); mMissionResultStatus.PlayShowBannersExp(null); mMissionResultBonus.Play(delegate { mTransform_TouchControlArea.SetActive(isActive: true); mKeyController.IsRun = true; StartCoroutine(WaitForKeyOrTouch(mKeyController, delegate { mKeyController.IsRun = true; if (mOnSelectNextAction != null) { mOnSelectNextAction(); } })); }); })); }); mMissionJudgeCutIn.Play(); }); }
private IEnumerator MoveToFurnitureStoreCoroutine() { SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; mKeyController.IsRun = false; mUserInterfaceInteriorTransitionManager.SetActive(isActive: true); mUserInterfaceInteriorTransitionManager.SwitchToStore(delegate { this.mKeyController.IsRun = true; this.mUserInterfaceInteriorChangeManager.SetActive(isActive: false); this.mUserInterfaceInteriorTransitionManager.SetActive(isActive: false); this.mStateManager.PopState(); this.mStateManager.PushState(State.FurnitureStore); }); yield return(null); }
protected override void OnSelect(UIFurnitureStoreTabListChild view) { mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; if (mOnSelectedFurnitureListener != null) { mOnSelectedFurnitureListener(view); } }
public void SetKeyController(KeyControl keyController) { if (keyController != null) { keyController.ClearKeyAll(); keyController.firstUpdate = true; } this.mKeyController = keyController; }
private void SetKeyController(KeyControl keyController) { if (keyController != null) { keyController.ClearKeyAll(); keyController.firstUpdate = true; } mKeyController = keyController; }
public override void SetKeyController(KeyControl keyController) { if (keyController != null) { keyController.firstUpdate = true; keyController.ClearKeyAll(); } base.SetKeyController(keyController); }
private bool OnStartSortieStage() { mKeyController.IsRun = false; mKeyController.ClearKeyAll(); SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; SingletonMonoBehaviour <Live2DModel> .Instance.forceStop(); SingletonMonoBehaviour <FadeCamera> .Instance.isDrawNowLoading = false; SingletonMonoBehaviour <NowLoadingAnimation> .Instance.isNowLoadingAnimation = true; SoundUtils.PlaySE(SEFIleInfos.CommonEnter3); DebugUtils.SLog("OnStartSortieStage1"); mStageConfirm.Hide(); DebugUtils.SLog("OnStartSortieStage2"); DOTween.Sequence().Append(mRouletteSelector.transform.DOLocalMoveY(0f, 0.4f).SetEase(Ease.OutBounce)).Join(mRouletteSelector.transform.DOScale(new Vector3(1.6f, 1.6f, 1f), 0.3f)); ShipUtils.PlayShipVoice(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.GetFlagShip(), App.rand.Next(13, 15)); DebugUtils.SLog("OnStartSortieStage3"); this.DelayAction(0.5f, delegate { DebugUtils.SLog("OnStartSortieStage mStageConfirm.ClickAnimation"); MapModel mMapModel = mStageConfirm.mMapModel; RetentionData.SetData(new Hashtable { { "sortieMapManager", mSortieManager.GoSortie(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.Id, mMapModel.MstId) }, { "rootType", 0 }, { "shipRecoveryType", ShipRecoveryType.None }, { "escape", false } }); UnityEngine.Object.Destroy(SingletonMonoBehaviour <PortObjectManager> .Instance.gameObject); UnityEngine.Object.Destroy(GameObject.Find("Information Root")); UnityEngine.Object.Destroy(GameObject.Find("OverView")); StartCoroutine(AsyncLoad()); MapTransitionCutManager component = Util.Instantiate(mPrefab_MapTransitionCutManager.gameObject, base.transform.root.Find("Map Root").gameObject).GetComponent <MapTransitionCutManager>(); component.transform.localPosition = mStrategyTopTaskManager.strategyCamera.transform.localPosition + new Vector3(-26.4f, -43f, 496.4f); component.Initialize(mMapModel, mAsyncOperation); TutorialModel tutorial = StrategyTopTaskManager.GetLogicManager().UserInfo.Tutorial; SingletonMonoBehaviour <AppInformation> .Instance.NextLoadType = AppInformation.LoadType.Ship; DebugUtils.SLog("OnStartSortieStage mStageConfirm.ClickAnimation END"); }); DebugUtils.SLog("OnStartSortieStage4"); return(false); }
private void OnBackJukeBox() { if (mStateManager.CurrentState == State.JukeBox) { mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; mStateManager.PopState(); mStateManager.ResumeState(); } }
private void Update() { if (App.OnlyController == key) { key.Update(); if (key.IsAnyKey) { key.ClearKeyAll(); Hide(); } } }
private void OnClickMenuListener() { mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; UIInteriorMenuButton[] array = mFocasableUIInteriorMenuButtons; foreach (UIInteriorMenuButton uIInteriorMenuButton in array) { uIInteriorMenuButton.SetEnableButton(enable: false); } SoundUtils.PlaySE(SEFIleInfos.CommonEnter1); OnSelectFurnitureKind(mFocusUIInteriorMenuButton.mFurnitureKind); }
private void Update() { if (!(rep == null) && rep.now_mode() == 2 && !get_board2_anime() && !bd3.get_board3_anime() && !rep.first_change()) { dockSelectController.Update(); if (dockSelectController.keyState[0].down) { dockSelectController.ClearKeyAll(); dockSelectController.firstUpdate = true; Cancelled(); } } }
public void Init(KeyControl keyController) { if (keyController != null) { keyController.ClearKeyAll(); keyController.firstUpdate = true; } mKeyController = keyController; Hide(animation: false); initialized = true; isShown = true; Show(); }
private void OnSelectItemStoreChild(UIItemStoreChild view) { if (mItemStoreManager.IsValidBuy(view.GetModel().MstId, 1)) { mUIItemStoreChildren.SetKeyController(null); mUIItemStoreChildren.LockControl(); mUIItemStoreBuyConfirm.Initialize(view.GetModel(), mItemStoreManager); mUIItemStoreBuyConfirm.Show(null); mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; mUIItemStoreBuyConfirm.SetKeyController(mKeyController); ChangeState(State.ItemStoreBuyConfirm, popStack: false); } else if (mItemStoreManager.UserInfo.SPoint < view.GetModel().Price) { CommonPopupDialog.Instance.StartPopup("戦略ポイントが不足しています"); } else { CommonPopupDialog.Instance.StartPopup("保有上限を超えています"); } }
public void Init(KeyControl keyController) { if (keyController != null) { keyController.ClearKeyAll(); keyController.firstUpdate = true; } this.mKeyController = keyController; this.Hide(false); this.initialized = true; this.isShown = true; this.Show(); }
private void ChangeFocusKeyController(KeyControl keyController) { if (mFocusKeyController != null) { mFocusKeyController.firstUpdate = true; mFocusKeyController.ClearKeyAll(); } mFocusKeyController = keyController; if (mFocusKeyController != null) { mFocusKeyController.firstUpdate = true; mFocusKeyController.ClearKeyAll(); } }
private void OnPopState(State state) { mKeyController.ClearKeyAll(); mKeyController.firstUpdate = true; switch (state) { case State.UseCheck: mItemListChildDetai.SetKeyController(null); break; case State.ItemSelect: OnPopStateItemSelect(); break; } }
private IEnumerator WaitKey(KeyControl keyController, KeyControl.KeyName waitKey, Action callBack) { mTransform_TouchNextArea.SetActive(isActive: true); keyController.ClearKeyAll(); keyController.firstUpdate = true; while (keyController != null) { if (keyController.keyState[(int)waitKey].down || !mTransform_TouchNextArea.gameObject.activeSelf) { callBack?.Invoke(); keyController = null; } yield return(null); } mTransform_TouchNextArea.SetActive(isActive: false); }
public void Initialize(KeyControl keyController, ShipModel shipModel) { if (keyController != null) { keyController.ClearKeyAll(); keyController.firstUpdate = true; } mKeyController = keyController; mModernzationShipModel = shipModel; UIRemodeModernzationTargetShip[] array = mUIRemodeModernzationTargetShip_TargetShips; foreach (UIRemodeModernzationTargetShip uIRemodeModernzationTargetShip in array) { uIRemodeModernzationTargetShip.UnSet(); } UpdateStartButtonEnabled(); }