Пример #1
0
 private void DoSaveSelectRun()
 {
     if (key.IsRightDown())
     {
         SaveSelectBtnMng.moveNextButton();
     }
     else if (key.IsLeftDown())
     {
         SaveSelectBtnMng.movePrevButton();
     }
     else if (key.IsMaruDown())
     {
         SaveSelectBtnMng.Decide();
     }
 }
 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();
         }
     }
 }
Пример #3
0
 private void Update()
 {
     if (mKeyController == null || !base.enabled || animating)
     {
         return;
     }
     if (mKeyController.IsLeftDown())
     {
         ChangeFocusButton(mButton_Negative);
     }
     else if (mKeyController.IsRightDown())
     {
         ChangeFocusButton(mButton_Positive);
     }
     else if (mKeyController.IsMaruDown())
     {
         if (mButtonCurrentFocus.Equals(mButton_Negative))
         {
             Back();
         }
         else if (mButtonCurrentFocus.Equals(mButton_Positive))
         {
             Forward();
         }
     }
     else if (mKeyController.IsBatuDown())
     {
         Back();
     }
 }
 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();
         }
     }
 }
 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();
         }
     }
 }
Пример #6
0
 private void Update()
 {
     if (mKeyController != null && mStateManager != null && mStateManager.CurrentState == State.CategoryTabSelect)
     {
         if (mKeyController.IsRightDown())
         {
             tabManager.NextTab();
         }
         else if (mKeyController.IsLeftDown())
         {
             tabManager.PrevTab();
         }
         else if (mKeyController.IsMaruDown())
         {
             OnDesideTabListener();
         }
         else if (mKeyController.IsBatuDown())
         {
             RequestMoveToPort();
         }
         else if (mKeyController.IsRSLeftDown())
         {
             RequestMoveToInterior();
         }
     }
 }
Пример #7
0
 private void OrganizeDetailModeRun()
 {
     if (key.IsBatuDown())
     {
         BackToTop();
     }
     else if (key.IsRightDown())
     {
         OrganizeDetailMng.buttons.UpdateButton(isLeft: false, OrganizeMng);
     }
     else if (key.IsLeftDown())
     {
         OrganizeDetailMng.buttons.UpdateButton(isLeft: true, OrganizeMng);
     }
     else if (key.IsMaruDown())
     {
         OrganizeDetailMng.buttons.Decide();
     }
 }
 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);
     }
 }
Пример #9
0
 private void ShipSelect()
 {
     if (key.IsRightDown() || key.IsLeftDown())
     {
         int num = Convert.ToInt32(buttons[0].labels[0].text);
         num = ((!key.IsRightDown()) ? ((int)Util.RangeValue(num - 1 * mag, 0f, 500f)) : ((int)Util.RangeValue(num + 1 * mag, 0f, 500f)));
         buttons[0].labels[0].textInt = num;
         ship = StrategyTopTaskManager.GetLogicManager().UserInfo.GetShip(num);
         ShipInit();
     }
 }
Пример #10
0
 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);
 }
Пример #11
0
 protected override bool Run()
 {
     if (isEnd)
     {
         if (changeState == "top")
         {
             OrganizeTaskManager.Instance.GetTopTask()._state2 = TaskOrganizeTop.OrganizeState.Top;
             OrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.Phase_ST);
         }
         else if (changeState == "list")
         {
             OrganizeTaskManager.Instance.GetTopTask()._state2 = TaskOrganizeTop.OrganizeState.List;
             OrganizeTaskManager.ReqPhase(OrganizeTaskManager.OrganizePhase.List);
         }
         return(false);
     }
     if (KeyController.IsLeftDown())
     {
         detailManager.buttons.UpdateButton(isLeft: true);
     }
     else if (KeyController.IsRightDown())
     {
         detailManager.buttons.UpdateButton(isLeft: false);
     }
     else if (KeyController.IsMaruDown())
     {
         detailManager.buttons.Decide();
     }
     else if (KeyController.IsBatuDown())
     {
         BackMaskEL(null);
     }
     if (KeyController.IsRDown())
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
     }
     return(true);
 }
Пример #12
0
 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();
     }
 }
Пример #13
0
 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);
 }
Пример #14
0
 protected override bool Run()
 {
     if (OverScene != 0)
     {
         return(true);
     }
     if (StopExpeditionPanel != null)
     {
         return(true);
     }
     keyController.Update();
     if (IndexChange != 0 && !keyController.IsChangeIndex)
     {
         keyController.Index += IndexChange;
         IndexChange          = 0;
     }
     if (keyController.IsRightDown())
     {
         StrategyTopTaskManager.GetSailSelect().DeckSelectController.Index++;
         StrategyTopTaskManager.GetSailSelect().SearchAndChangeDeck(isNext: true, isSeachLocalArea: true);
         if (StrategyTopTaskManager.GetSailSelect().PrevDeckID != SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID)
         {
             StrategyTopTaskManager.GetSailSelect().changeDeck(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID);
             StrategyTopTaskManager.Instance.UIModel.Character.PlayVoice(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck);
             DeckEnableCheck();
             CommandMenu.setFocus();
         }
     }
     else if (keyController.IsLeftDown())
     {
         StrategyTopTaskManager.GetSailSelect().DeckSelectController.Index--;
         StrategyTopTaskManager.GetSailSelect().SearchAndChangeDeck(isNext: false, isSeachLocalArea: true);
         if (StrategyTopTaskManager.GetSailSelect().PrevDeckID != SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID)
         {
             StrategyTopTaskManager.GetSailSelect().changeDeck(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID);
             StrategyTopTaskManager.Instance.UIModel.Character.PlayVoice(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck);
             DeckEnableCheck();
             CommandMenu.setFocus();
         }
     }
     if (keyController.IsChangeIndex && !SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsFocus)
     {
         CommandMenu.moveCursol();
     }
     if (keyController.keyState[14].press || keyController.keyState[10].press)
     {
         isChangeingDeck = true;
     }
     else
     {
         isChangeingDeck = false;
     }
     if (keyController.keyState[1].down)
     {
         pushMenuButton();
     }
     else if (keyController.keyState[0].down)
     {
         currentMenu = MENU_NAME.SALLY;
         ExitCommandMenu();
     }
     if (keyController.keyState[5].down)
     {
         pushPort();
     }
     return(sceneChange);
 }