protected override void OnUpdate() { if (mKeyController != null && base.mState == ListState.Waiting && isShown) { if (mKeyController.IsShikakuDown()) { SwitchLockItem(); } else if (mKeyController.IsDownDown()) { NextFocus(); } else if (mKeyController.IsUpDown()) { PrevFocus(); } else if (mKeyController.IsLeftDown()) { PrevPageOrHeadFocus(); } else if (mKeyController.IsRightDown()) { NextPageOrTailFocus(); } else if (mKeyController.IsBatuDown()) { Back(); } else if (mKeyController.IsMaruDown()) { Select(); } } }
private void TopModeRun() { if (key.IsChangeIndex) { if (key.prevIndex == 4 && key.IsDownDown()) { key.Index = 4; return; } if (key.prevIndex == 1 && key.IsUpDown()) { key.Index = 1; return; } BannerFocusAnim(isEnable: false); FocusBanner = ShipStates[key.Index]; BannerFocusAnim(isEnable: true); SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove, null); } else if (key.IsMaruDown()) { GotoOrganize(); SoundUtils.PlaySE(SEFIleInfos.CommonEnter1, null); } else if (key.IsShikakuDown()) { GotoSupplyConfirm(); } else if (key.IsSankakuDown() && FocusBanner.ShipModel != null) { GotoRepairConfirm(); } else if (key.IsBatuDown()) { BackToSailSelect(); } else if (key.IsRSRightDown()) { ChangeDeck(isNext: true); } else if (key.IsRSLeftDown()) { ChangeDeck(isNext: false); } }
private void OnUpdateSlotItemDestroyConfirm() { if (KeyController.IsLeftDown()) { RequestBackTransitionFromSlotItemDestroyConfirm(); } else if (KeyController.IsMaruDown()) { CommonPopupDialog.Instance.StartPopup("廃棄は □ボタンで行います"); } else if (KeyController.IsBatuDown()) { RequestBackTransitionFromShipDestroyConfirm(); } else if (KeyController.IsShikakuDown() && mStateManager.CurrentState == State.SlotItemDestroyConfirm) { StartHaiki(mArsenalManager); } }
private void Update() { if (key != null) { key.Update(); if (key.IsMaruDown() || key.IsBatuDown() || key.IsShikakuDown() || key.IsSankakuDown()) { NextPage(); } } }
protected override bool Run() { if (isEnd) { if (changeState == "list") { OrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.List); } else if (changeState == "top") { OrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.Phase_ST); } return(false); } if (KeyController.IsLeftDown()) { if (!ship.IsLocked()) { detailManager.buttons.LockSwitch.MoveLockBtn(); } } else if (KeyController.IsRightDown()) { if (ship.IsLocked()) { detailManager.buttons.LockSwitch.MoveLockBtn(); } } else if (KeyController.IsShikakuDown()) { detailManager.buttons.LockSwitch.MoveLockBtn(); } else if (KeyController.IsMaruDown()) { if (!isEnd) { ChangeButtonEL(null); } } else if (KeyController.IsBatuDown()) { BackDataEL(null); } if (KeyController.IsRDown()) { SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy(); } return(true); }
private void Update() { if (keyController == null || !base.enabled || !isShown) { return; } if (validShip && keyController.IsUpDown()) { int num = Array.IndexOf(slots, currentFocusItem); int num2 = num - 1; if (0 <= num2) { Debug.Log("PrevIndex::" + num2); ChangeFocusItem(slots[num2]); } } else if (validShip && keyController.IsDownDown()) { int num3 = Array.IndexOf(slots, currentFocusItem); int num4 = num3 + 1; int num5 = (ship.Level >= 30) ? 1 : 0; if (num4 < ship.SlotitemList.Count + num5) { Debug.Log("NextIndex::" + num4); ChangeFocusItem(slots[num4]); } } else if (validShip && keyController.IsMaruDown()) { forward(); } else if (keyController.IsBatuDown()) { back(); } else if (validUnsetAll && keyController.IsShikakuDown()) { UnsetAll(); SoundUtils.PlayOneShotSE(SEFIleInfos.SE_009); } }
private void Update() { if (mKeyController == null) { return; } if (mKeyController.keyState[0].down) { mButton_Cancel.SendMessage("OnClick"); } else if (mKeyController.keyState[14].down) { int num = Array.IndexOf(mButtonsFocusable, mButtonFocus); int num2 = num - 1; if (0 <= num2) { ChangeFocusButton(mButtonsFocusable[num2]); SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); } } else if (mKeyController.keyState[10].down) { int num3 = Array.IndexOf(mButtonsFocusable, mButtonFocus); int num4 = num3 + 1; if (num4 < mButtonsFocusable.Length) { ChangeFocusButton(mButtonsFocusable[num4]); SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); } } else if (mKeyController.keyState[1].down) { mButtonFocus.SendMessage("OnClick"); } else if (mKeyController.IsShikakuDown()) { ChangeFocusButton(mButton_Switch); mYousei_Switch.ClickSwitch(); } }
protected bool StateKeyControl_Banner() { if (_isDragDrop) { return(true); } deckSwitchManager.keyControlEnable = true; if (KeyController.IsMaruDown()) { _bannerManager[BannerIndex - 1].DetailEL(null); return(true); } if (KeyController.IsRDown()) { SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy(); } else if (KeyController.IsBatuDown()) { BackToPort(); } else if (KeyController.IsShikakuDown()) { AllUnsetBtnEL(); } else if (KeyController.IsDownDown()) { BannerIndex += 2; if (BannerIndex >= 7) { BannerIndex -= 6; } SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); UpdateChangeBanner(); } else if (KeyController.IsUpDown()) { BannerIndex -= 2; if (BannerIndex <= 0) { BannerIndex += 6; } SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); UpdateChangeBanner(); } else if (KeyController.IsLeftDown()) { BannerIndex--; SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); if (BannerIndex == 0) { if (IsTenderBtn() || IsAllUnsetBtn()) { SystemIndex = ((!IsTenderBtn()) ? 1 : 0); } else { SystemIndex = 2; } UpdateSystemButtons(); OrganizeTaskManager.Instance.GetTopTask().setControlState(); } UpdateChangeBanner(); } else if (KeyController.IsRightDown()) { if (BannerIndex >= 6) { return(true); } BannerIndex++; SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); for (int i = 0; i < 6; i++) { bool enabled = (BannerIndex - 1 == i) ? true : false; _bannerManager[i].UpdateBanner(enabled); } } return(true); }