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 Update() { if (mKeyController != null && base.mState == ListState.Waiting) { if (mKeyController.IsUpDown()) { PrevFocus(); } else if (mKeyController.IsDownDown()) { NextFocus(); } else if (mKeyController.IsLeftDown()) { PrevPageOrHeadFocus(); } else if (mKeyController.IsRightDown()) { NextPageOrTailFocus(); } else if (mKeyController.IsBatuDown()) { Back(); } else if (mKeyController.IsMaruDown()) { Select(); } } }
protected override void OnUpdate() { if (base.mState == ListState.Waiting && isShown && mKeyController != null) { if (mKeyController.IsSankakuDown()) { mUIShipSortButton.OnClickSortButton(); } else if (mKeyController.IsDownDown()) { NextFocus(); } else if (mKeyController.IsUpDown()) { PrevFocus(); } else if (mKeyController.IsLeftDown()) { PrevPageOrHeadFocus(); } else if (mKeyController.IsRightDown()) { NextPageOrTailFocus(); } else if (mKeyController.IsMaruDown()) { Select(); } } }
public bool Run() { if (mIsEndPhase) { return(false); } keyController.Update(); int index = keyController.Index; if (keyController.IsUpDown()) { btnManager.movePrevButton(); } else if (keyController.IsDownDown()) { btnManager.moveNextButton(); } else if (keyController.keyState[1].down) { btnManager.Decide(); } else if (keyController.keyState[0].down) { OnTouchBackArea(); } else if (keyController.keyState[5].down) { SingletonMonoBehaviour <PortObjectManager> .Instance.BackToPortOrOrganize(); } return(true); }
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 Update() { if (mKeyController == null || !base.enabled || !isShown) { return; } if (mKeyController.IsUpDown()) { if (mCurrentFocusTargetShipSlot == null) { ChangeFocusSlot(mUIRemodeModernzationTargetShip_TargetShips[mUIRemodeModernzationTargetShip_TargetShips.Length - 1]); mButton_Start.SetState(UIButtonColor.State.Normal, immediate: true); return; } int num = Array.IndexOf(mUIRemodeModernzationTargetShip_TargetShips, mCurrentFocusTargetShipSlot); int num2 = num - 1; if (0 <= num2) { ChangeFocusSlot(mUIRemodeModernzationTargetShip_TargetShips[num2]); } } else if (mKeyController.IsDownDown() || _CursorDown != 0) { do { if (!(mCurrentFocusTargetShipSlot == null)) { int num3 = Array.IndexOf(mUIRemodeModernzationTargetShip_TargetShips, mCurrentFocusTargetShipSlot); int num4 = num3 + 1; if (num4 < mUIRemodeModernzationTargetShip_TargetShips.Length) { ChangeFocusSlot(mUIRemodeModernzationTargetShip_TargetShips[num4], (_CursorDown != 0) ? true : false); } else if (num4 == mUIRemodeModernzationTargetShip_TargetShips.Length && CanModernize()) { ChangeFocusSlot(null, (_CursorDown != 0) ? true : false); mButton_Start.SetState(UIButtonColor.State.Hover, immediate: true); } } }while (--_CursorDown > 0); _CursorDown = 0; } else if (mKeyController.IsMaruDown()) { if (mCurrentFocusTargetShipSlot != null) { Forward4Select(); } else { Forward4Confirm(); } } else if (mKeyController.IsBatuDown()) { Back(); } }
protected void Update() { if (!controllable || keyController == null) { return; } if ((keyController.keyState[12].holdTime > 1.5f || keyController.keyState[8].holdTime > 1.5f) && keyController.KeyInputInterval == defaultIntervalTime) { keyController.KeyInputInterval /= 3f; } else { keyController.KeyInputInterval = defaultIntervalTime; } if (keyController.IsUpDown()) { if (!swipeBounceBackAnimating) { MovePrev(); } } else if (keyController.IsDownDown()) { if (!swipeBounceBackAnimating) { MoveNext(); } } else if (keyController.IsMaruDown()) { if ((UnityEngine.Object) this.currentChild != (UnityEngine.Object)null) { View currentChild = this.currentChild; currentChild.OnClick(); } } else if (keyController.IsBatuDown()) { handler.OnCancel(); BounceBack(); View viewByModelIndex = GetViewByModelIndex(rollCount); viewByModelIndex.DoSelect(); } else if (keyController.IsSankakuDown()) { OnPressSankaku(); } }
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 Update() { if (mKeyController != null && base.enabled && isShown) { if (mKeyController.IsUpDown()) { Prev(); } else if (mKeyController.IsDownDown()) { Next(); } else if (mKeyController.IsMaruDown()) { UserInterfaceRemodelManager.instance.Forward2ModeSelect(); } } }
private void InheritTypeSelectRun() { if (key.IsUpDown()) { TypeSelectBtnMng.movePrevButton(); } else if (key.IsDownDown()) { TypeSelectBtnMng.moveNextButton(); } else if (key.IsMaruDown()) { TypeSelectBtnMng.Decide(); } else if (key.IsBatuDown()) { ModeProc.ChangeMode(1); } }
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 (keyController == null || !base.enabled || !isShown) { return; } if (keyController.IsLeftDown()) { int targetIdx = currentIdx - 1; if (currentIdx % 2 == 1) { changeCurrentItem(targetIdx); } } else if (keyController.IsRightDown()) { int targetIdx2 = currentIdx + 1; if (currentIdx % 2 == 0) { changeCurrentItem(targetIdx2); } } else if (keyController.IsUpDown()) { if (currentIdx == -1) { int num = Categories.Length - 1; while (num > 0 && !changeCurrentItem(num)) { num--; } } else { int num2 = currentIdx - 2; while (num2 >= 0 && !changeCurrentItem(num2)) { num2 -= 2; } } } else if (keyController.IsDownDown()) { if (currentIdx == -1) { return; } bool flag = false; for (int i = currentIdx + 2; i < Categories.Length; i += 2) { if (flag = changeCurrentItem(i)) { break; } } if (!flag && removeItem.gameObject.activeSelf) { changeCurrentItem(-1); } } else if (keyController.IsMaruDown()) { if (currentIdx == -1) { ProcessRemove(); } else { Forward(); } } else if (keyController.IsBatuDown()) { Back(); } }
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); }