Ejemplo n.º 1
0
        private void highSpeedProcess()
        {
            for (int i = 0; i < 4; i++)
            {
                if (TaskMainArsenalManager.dockMamager[i].IsShowHigh)
                {
                    TaskMainArsenalManager.arsenalManager.ChangeHighSpeed(i + 1);
                    this.DockIndex = i;
                    TaskMainArsenalManager.dockMamager[i].StartSpeedUpAnimate();
                }
                TaskMainArsenalManager.dockMamager[i].updateSpeedUpIcon();
                TaskMainArsenalManager.dockMamager[i].setSelect(this.DockIndex == i);
            }
            TutorialModel tutorial = ArsenalTaskManager.GetLogicManager().UserInfo.Tutorial;

            if (tutorial.GetStep() == 2 && !tutorial.GetStepTutorialFlg(3))
            {
                tutorial.SetStepTutorialFlg(3);
                CommonPopupDialog.Instance.StartPopup("「高速建造!」 達成");
                this.DestroyTutorial();
                SoundUtils.PlaySE(SEFIleInfos.SE_012);
            }
        }
        private IEnumerator DialogControl()
        {
            yield return(Util.WaitEndOfFrames(3));

            float fadeTime = 0.5f;

            if (rewardMessages.Any((InheritRewardMessage x) => x.isNeedShow))
            {
                TweenAlpha.Begin(myUIWidget.gameObject, fadeTime, 1f);
                yield return(new WaitForSeconds(fadeTime));

                for (int i = 0; i < rewardMessages.Length; i++)
                {
                    if (rewardMessages[i].isNeedShow)
                    {
                        if (NowRewardMessage != null)
                        {
                            TweenAlpha.Begin(NowRewardMessage.gameObject, fadeTime, 0f);
                            yield return(new WaitForSeconds(fadeTime));
                        }
                        SoundUtils.PlaySE(SEFIleInfos.SE_027);
                        NowRewardMessage = rewardMessages[i];
                        TweenAlpha.Begin(NowRewardMessage.gameObject, fadeTime, 1f);
                        yield return(new WaitForSeconds(fadeTime));

                        yield return(StartCoroutine(WaitForKey(KeyControl.KeyName.MARU, KeyControl.KeyName.BATU)));
                    }
                }
                TweenAlpha.Begin(NowRewardMessage.gameObject, fadeTime, 0f);
                TweenAlpha.Begin(myUIWidget.gameObject, fadeTime, 0f);
                yield return(new WaitForSeconds(fadeTime));
            }
            yield return(new WaitForSeconds(0.5f));

            InheritLoadTaskManager.ReqMode(InheritLoadTaskManager.InheritTaskManagerMode.InheritTaskManagerMode_ST);
            yield return(null);
        }
Ejemplo n.º 3
0
 public void Forward2KaizoAnimation(ShipModel targetShipModel)
 {
     if (status == ScreenStatus.MODE_KAIZO)
     {
         SetStatus(ScreenStatus.MODE_KAIZO_ANIMATION);
         if (instance.mRemodelGradeUpManager.GradeUp())
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
             instance.mRemodelManager.ClearUnsetSlotsCache();
         }
         backGroundUpperSteelFrame.SetActive(isActive: false);
         backGroundLowerSteelFrame.SetActive(isActive: false);
         mUIRemodelShipStatus.SetActive(isActive: false);
         HideHeader();
         mUIRemodelHeader.SetActive(isActive: false);
         UpdateHeaderMaterial();
         StartCoroutine(StartGradeUpProductionCoroutine(targetShipModel, mKeyController, delegate
         {
             if (status == ScreenStatus.MODE_KAIZO_ANIMATION)
             {
                 status = ScreenStatus.MODE_KAIZO_END_ANIMATION;
                 if (otherShip)
                 {
                     mUIRemodelOtherShipPickerParent.Refresh(focusedShipModel);
                 }
                 mUIRemodelShipStatus.SetActive(isActive: true);
                 ShowHeader();
                 mUIRemodelHeader.SetActive(isActive: true);
                 ChangeFocusShip(targetShipModel);
                 backGroundUpperSteelFrame.SetActive(isActive: true);
                 backGroundLowerSteelFrame.SetActive(isActive: true);
                 mUIRemodelModeSelectMenu.Init(mKeyController, mRemodelGradeUpManager.GradeupBtnEnabled);
                 Forward2ModeSelect();
             }
         }));
     }
 }
Ejemplo n.º 4
0
        public void ChangeButtonEL(GameObject obj)
        {
            if (!this.isEnd && this.isControl)
            {
                int  bannerIndex = TaskOrganizeTop.BannerIndex;
                int  memId       = this.ship.MemId;
                bool flag        = OrganizeTaskManager.Instance.GetLogicManager().ChangeOrganize(OrganizeTaskManager.Instance.GetTopTask().GetDeckID(), bannerIndex - 1, memId);
                OrganizeTaskManager.Instance.GetListTask().UpdateList();
                if (!flag)
                {
                    Debug.Log("EROOR: ChangeOrganize");
                    return;
                }
                DifficultKind difficulty = OrganizeTaskManager.logicManager.UserInfo.Difficulty;
                this.isControl = false;
                OrganizeTaskManager.Instance.GetTopTask().isControl = false;
                this.detailManager.Close();
                SoundUtils.PlaySE(SEFIleInfos.SE_003);
                OrganizeTaskManager.Instance.GetListTask().BackListEL(null, true);
                OrganizeTaskManager.Instance.GetTopTask().UpdateAllBannerByChangeShip();
                ShipUtils.PlayShipVoice(this.ship, 13);
                SingletonMonoBehaviour <UIShortCutMenu> .Instance.setDisable();

                this.setChangePhase("top");
                if (OrganizeTaskManager.Instance.GetType() != typeof(EscortOrganizeTaskManager))
                {
                    TutorialModel tutorial = OrganizeTaskManager.logicManager.UserInfo.Tutorial;
                    if (tutorial.GetStep() == 3 && !tutorial.GetStepTutorialFlg(4))
                    {
                        tutorial.SetStepTutorialFlg(4);
                        CommonPopupDialog.Instance.StartPopup("「艦隊を編成!」 達成");
                        SoundUtils.PlaySE(SEFIleInfos.SE_012);
                    }
                }
            }
        }
 protected override void OnChangedFocusView(UIFurnitureStoreTabListChild focusToView)
 {
     if (0 == focusToView.GetRealIndex())
     {
         mTransform_PrevButton.SetActive(isActive: false);
     }
     else
     {
         mTransform_PrevButton.SetActive(isActive: true);
     }
     if (mModels.Length == 0)
     {
         mTransform_NextButton.SetActive(isActive: false);
     }
     else if (mModels.Length - 1 <= mCurrentFocusView.GetRealIndex())
     {
         mTransform_NextButton.SetActive(isActive: false);
     }
     else
     {
         mTransform_NextButton.SetActive(isActive: true);
     }
     SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
 }
Ejemplo n.º 6
0
 protected override void OnChangedFocusView(OtherShipListChildNew focusToView)
 {
     if (this.mModels == null)
     {
         return;
     }
     if (this.mModels.Length <= 0)
     {
         return;
     }
     if (base.mState == UIScrollList <ShipModel, OtherShipListChildNew> .ListState.Waiting)
     {
         SoundUtils.PlaySE(SEFIleInfos.SE_014);
         if (this.mModels == null)
         {
             return;
         }
         if (this.mModels.Length <= 0)
         {
             return;
         }
         CommonPopupDialog.Instance.StartPopup(this.mCurrentFocusView.GetRealIndex() + 1 + "/" + this.mModels.Length, 0, CommonPopupDialogMessage.PlayType.Short);
     }
 }
Ejemplo n.º 7
0
 protected override void OnUpdate()
 {
     if (this.mKeyController != null && base.mState == UIScrollList <ShipModel, OtherShipListChildNew> .ListState.Waiting)
     {
         if (this.mKeyController.keyState.get_Item(12).down)
         {
             base.NextFocus();
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         }
         else if (this.mKeyController.keyState.get_Item(8).down)
         {
             base.PrevFocus();
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         }
         else if (this.mKeyController.keyState.get_Item(14).down)
         {
             base.PrevPageOrHeadFocus();
         }
         else if (this.mKeyController.keyState.get_Item(10).down)
         {
             base.NextPageOrTailFocus();
         }
         else if (this.mKeyController.keyState.get_Item(1).down)
         {
             base.Select();
         }
         else if (this.mKeyController.keyState.get_Item(3).down)
         {
             this.mUIShipSortButton.OnClickSortButton();
         }
         else if (this.mKeyController.keyState.get_Item(0).down)
         {
             this.mKeyController = null;
         }
     }
 }
        protected override bool Init()
        {
            _iMode = (_iModeReq = SortieMapTaskManagerMode.SortieMapTaskManagerMode_BEF);
            _clsTasks.Init();
            SoundUtils.SwitchBGM((BGMFileInfos)SortieBattleTaskManager.GetMapManager().BgmId);
            if (!_isFirstInit)
            {
                if (SingletonMonoBehaviour <FadeCamera> .Instance.isFadeOut)
                {
                    Observable.Timer(TimeSpan.FromSeconds(0.5)).Subscribe(delegate
                    {
                        SingletonMonoBehaviour <FadeCamera> .Instance.FadeIn(0.2f, delegate
                        {
                            GoNext(SortieBattleTaskManager.GetBattleShipRecoveryType());
                        });
                    });
                }
                else
                {
                    Observable.Timer(TimeSpan.FromSeconds(0.5)).Subscribe(delegate
                    {
                        GoNext(SortieBattleTaskManager.GetBattleShipRecoveryType());
                    });
                }
            }
            else
            {
                SingletonMonoBehaviour <FadeCamera> .Instance.SetActive(isActive : false);

                _iMode = (_iModeReq = SortieMapTaskManagerMode.SortieMapTaskManagerMode_ST);
            }
            _uiAreaMapFrame.Show();
            _isFirstInit   = false;
            _cam.isCulling = true;
            return(true);
        }
Ejemplo n.º 9
0
        private Tween GenerateUpTween()
        {
            bool flag = DOTween.IsTweening(this);

            if (flag)
            {
                DOTween.Kill(this, false);
            }
            Sequence sequence = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence, this);
            TweenCallback tweenCallback = delegate
            {
                SoundUtils.PlaySE(this.mAudioClip_Up);
            };
            TweenCallback tweenCallback2 = delegate
            {
                this.mTexture_Main.mainTexture = this.mTexture2d_Frame_0;
            };
            TweenCallback tweenCallback3 = delegate
            {
                this.mTexture_Main.mainTexture = this.mTexture2d_Frame_1;
            };
            TweenCallback tweenCallback4 = delegate
            {
                this.mTexture_Main.mainTexture = this.mTexture2d_Frame_2;
            };

            TweenSettingsExtensions.OnPlay <Sequence>(sequence, tweenCallback);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback4);
            TweenSettingsExtensions.AppendInterval(sequence, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback3);
            TweenSettingsExtensions.AppendInterval(sequence, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback2);
            return(sequence);
        }
Ejemplo n.º 10
0
 public void SelectButtonLengthwise(bool isUp)
 {
     if (isUp)
     {
         if (_fuelBtn.enabled && _currentBtn == _allBtn)
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
             SetCurrentBtn(_fuelBtn);
         }
         else if (_ammoBtn.enabled && _currentBtn == _allBtn)
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
             SetCurrentBtn(_ammoBtn);
         }
     }
     else if (_currentBtn != _allBtn)
     {
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         if (_allBtn.enabled)
         {
             SetCurrentBtn(_allBtn);
         }
     }
 }
Ejemplo n.º 11
0
        private void ChangeStateCommandMenu()
        {
            if (this.mIsEndPhase)
            {
                return;
            }
            bool flag = StrategyTopTaskManager.GetLogicManager().IsValidDeploy(StrategyTopTaskManager.Instance.TileManager.FocusTile.areaID, this.top.TankerCount, EscortOrganizeTaskManager.GetEscortManager());

            if (flag)
            {
                StrategyTopTaskManager.GetLogicManager().Deploy(this.top.areaID, this.top.TankerCount, EscortOrganizeTaskManager.GetEscortManager());
                StrategyTopTaskManager.CreateLogicManager();
                this.isPlayVoice         = false;
                this.EscortFlagShipModel = null;
                this.top.backToCommandMenu();
                this.mIsEndPhase = true;
                SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
                if (this.PanelShowCor != null)
                {
                    base.StopCoroutine(this.PanelShowCor);
                }
                TutorialModel tutorial = StrategyTopTaskManager.GetLogicManager().UserInfo.Tutorial;
                if (tutorial.GetStep() == 8 && !tutorial.GetStepTutorialFlg(9))
                {
                    tutorial.SetStepTutorialFlg(9);
                    CommonPopupDialog.Instance.StartPopup("「はじめての配備!」 達成");
                    SoundUtils.PlaySE(SEFIleInfos.SE_012);
                }
                StrategyTopTaskManager.Instance.setActiveStrategy(true);
            }
            else
            {
                SoundUtils.PlaySE(SEFIleInfos.CommonCancel2);
                CommonPopupDialog.Instance.StartPopup("変更がありません", 0, CommonPopupDialogMessage.PlayType.Long);
            }
        }
Ejemplo n.º 12
0
 public void OnChangedTabListener()
 {
     if (this.mStateManager.CurrentState == UIInteriorStoreManager.State.ListFurnitureSelect)
     {
         this.mKeyController.ClearKeyAll();
         this.mKeyController.firstUpdate = true;
         this.tabManager.changeNowCategory();
         this.mContext.SetSelectedCategory(this.tabManager.GetCurrentCategory());
         this.mUIFurnitureStoreTabList.ChangeCategory(this.mContext.SelectedCategory);
         this.mUIFurnitureStoreTabList.StopFocusBlink();
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         this.mStateManager.PopState();
         this.mStateManager.ResumeState();
     }
     else if (this.mStateManager.CurrentState == UIInteriorStoreManager.State.CategoryTabSelect)
     {
         this.mKeyController.ClearKeyAll();
         this.mKeyController.firstUpdate = true;
         this.tabManager.changeNowCategory();
         this.mContext.SetSelectedCategory(this.tabManager.GetCurrentCategory());
         this.mUIFurnitureStoreTabList.ChangeCategory(this.mContext.SelectedCategory);
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
     }
 }
Ejemplo n.º 13
0
 private void Start()
 {
     this._MapArea    = SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID;
     this._clsRepair  = new RepairManager(this._MapArea);
     this._mstManager = Mst_DataManager.Instance;
     this._shipdata   = new Mst_ship();
     this._FadeDone   = false;
     if (SingletonMonoBehaviour <PortObjectManager> .exist())
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(delegate
         {
             SoundUtils.SwitchBGM(BGMFileInfos.PortTools);
             this.OnTransitionFinished();
         }, true, true);
     }
     else
     {
         this.OnTransitionFinished();
     }
     this._isStartUP   = false;
     this._now_texgirl = 0;
     this.bd1          = GameObject.Find("board1_top/board").GetComponent <board>();
     this.StartUp();
 }
Ejemplo n.º 14
0
        private KeyControl ShowUIDutyDetail(UIDutySummary summary)
        {
            SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true;
            UIDutyDetail dutyDetail = null;

            _DeteilMode = true;
            dutyDetail  = Util.Instantiate(mPrefabDutyDetail.gameObject, mModalCamera.gameObject).GetComponent <UIDutyDetail>();
            dutyDetail.Initialize(summary.GetModel());
            dutyDetail.SetDutyDetailCallBack(delegate(UIDutyDetail.SelectType selectedType)
            {
                if (selectedType == UIDutyDetail.SelectType.Positive)
                {
                    mDutyManager.StartDuty(summary.GetModel().No);
                    UpdateOrderPossibleDutyCount(mDutyManager.MaxExecuteCount - mDutyManager.GetExecutedDutyList().Count, animate: true);
                    DutyModel duty = mDutyManager.GetDuty(summary.GetModel().No);
                    summary.Initialize(summary.GetIndex(), duty);
                    TutorialModel tutorial = mDutyManager.UserInfo.Tutorial;
                    if (tutorial.GetStep() == 0 && !tutorial.GetStepTutorialFlg(1))
                    {
                        tutorial.SetStepTutorialFlg(1);
                        CommonPopupDialog.Instance.StartPopup("「はじめての任務!」 達成");
                        SoundUtils.PlaySE(SEFIleInfos.SE_012);
                    }
                }
                dutyDetail.Hide(delegate
                {
                    _DeteilMode = false;
                    SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true;
                    KeyControl keyController = mDutyGrid.GetKeyController();
                    UnityEngine.Object.Destroy(dutyDetail.gameObject);
                    mModalCamera.Close();
                    ChangeKeyController(keyController);
                });
            });
            return(dutyDetail.Show());
        }
Ejemplo n.º 15
0
        private bool UpdateDetailProcess(object data)
        {
            KeyControl keycontrol = StrategyTaskManager.GetStrategyRebellion().keycontrol;

            if (keycontrol.GetDown(KeyControl.KeyName.MARU))
            {
                SetRebellionParticipatingFleet((RebellionFleetType)_uiParticipatingFleetSelector.nowIndex, _uiFleetSelector.nowSelectedDeck);
                ChangeState(RebellionOrganizeMode.Main);
                return(true);
            }
            if (keycontrol.GetDown(KeyControl.KeyName.BATU))
            {
                SoundUtils.PlaySE(SEFIleInfos.CommonCancel2);
                ChangeState(RebellionOrganizeMode.Main);
                return(true);
            }
            if (keycontrol.GetDown(KeyControl.KeyName.SANKAKU))
            {
                SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove2);
                ChangeState(RebellionOrganizeMode.Main);
                return(true);
            }
            return(false);
        }
Ejemplo n.º 16
0
 public void SelectButtonLengthwise(bool isUp)
 {
     if (isUp)
     {
         if (this._fuelBtn.get_enabled() && this._currentBtn == this._allBtn)
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
             this.SetCurrentBtn(this._fuelBtn);
         }
         else if (this._ammoBtn.get_enabled() && this._currentBtn == this._allBtn)
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
             this.SetCurrentBtn(this._ammoBtn);
         }
     }
     else if (this._currentBtn != this._allBtn)
     {
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         if (this._allBtn.get_enabled())
         {
             this.SetCurrentBtn(this._allBtn);
         }
     }
 }
Ejemplo n.º 17
0
        public void ResetBtnEL(GameObject obj)
        {
            if (string.IsNullOrEmpty(changeState) && !isEnd && isControl)
            {
                TutorialModel tutorial = OrganizeTaskManager.logicManager.UserInfo.Tutorial;
                if (SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID != 1 && SingletonMonoBehaviour <TutorialGuideManager> .Instance.CheckFirstTutorial(tutorial, TutorialGuideManager.TutorialID.Bring))
                {
                    SingletonMonoBehaviour <TutorialGuideManager> .Instance.CheckAndShowFirstTutorial(tutorial, TutorialGuideManager.TutorialID.Bring, null);

                    return;
                }
                isEnd     = true;
                isControl = false;
                detailManager.Close();
                SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
                changeState = "top";
                OrganizeTaskManager.Instance.GetLogicManager().UnsetOrganize(OrganizeTaskManager.Instance.GetTopTask().GetDeckID(), TaskOrganizeTop.BannerIndex - 1);
                OrganizeTaskManager.Instance.GetTopTask().UpdateAllBannerByRemoveShip(allReset: false);
                OrganizeTaskManager.Instance.GetTopTask().UpdateAllSelectBanner();
                SingletonMonoBehaviour <UIShortCutMenu> .Instance.setDisable();

                OrganizeTaskManager.Instance.GetListTask().UpdateList();
            }
        }
Ejemplo n.º 18
0
 private void Forward()
 {
     if (!UserInterfaceRemodelManager.instance.mRemodelGradeUpManager.GradeupBtnEnabled)
     {
         if (UserInterfaceRemodelManager.instance.mRemodelGradeUpManager.DesignSpecificationsForGradeup > UserInterfaceRemodelManager.instance.mRemodelGradeUpManager.DesignSpecifications)
         {
             CommonPopupDialog.Instance.StartPopup("この改装には「改装設計図」が" + UserInterfaceRemodelManager.instance.mRemodelGradeUpManager.DesignSpecificationsForGradeup + "枚必要です");
         }
         else if (mTargetShipModel.AfterAmmo > UserInterfaceRemodelManager.instance.mRemodelGradeUpManager.Material.Ammo || mTargetShipModel.AfterSteel > UserInterfaceRemodelManager.instance.mRemodelGradeUpManager.Material.Steel)
         {
             CommonPopupDialog.Instance.StartPopup("資材が不足しています");
         }
         else
         {
             CommonPopupDialog.Instance.StartPopup("現在、改装が出来ません");
         }
         SoundUtils.PlaySE(SEFIleInfos.CommonCancel2);
     }
     else
     {
         Hide();
         UserInterfaceRemodelManager.instance.Forward2KaizoAnimation(mTargetShipModel);
     }
 }
 protected override void OnUpdate()
 {
     if (mKeyController != null && base.mState == ListState.Waiting)
     {
         if (mKeyController.keyState[12].down)
         {
             NextFocus();
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         }
         else if (mKeyController.keyState[8].down)
         {
             PrevFocus();
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         }
         else if (mKeyController.keyState[14].down)
         {
             PrevPageOrHeadFocus();
         }
         else if (mKeyController.keyState[10].down)
         {
             NextPageOrTailFocus();
         }
         else if (mKeyController.keyState[1].down)
         {
             Select();
         }
         else if (mKeyController.keyState[3].down)
         {
             mUIShipSortButton.OnClickSortButton();
         }
         else if (mKeyController.keyState[0].down)
         {
             mKeyController = null;
         }
     }
 }
Ejemplo n.º 20
0
 private void Update()
 {
     if (this.rep.now_mode() != 6)
     {
         return;
     }
     this.dockSelectController.Update();
     if (this.dockSelectController.keyState.get_Item(1).up || !this.dockSelectController.keyState.get_Item(1).down)
     {
         this._isBtnMaruUp = true;
     }
     if (this.rep.first_change())
     {
         UISelectedObject.SelectedButtonsZoomUpDown(this.btn_obj, this.dockSelectController.Index);
         return;
     }
     if (this.dockSelectController.IsChangeIndex)
     {
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         UISelectedObject.SelectedButtonsZoomUpDown(this.btn_obj, this.dockSelectController.Index);
     }
     if (this.dockSelectController.Index == 1)
     {
         this.Set_Button_Sprite(true);
     }
     else
     {
         this.Set_Button_Sprite(false);
     }
     if (base.get_gameObject().get_transform().get_localScale() != Vector3.get_one())
     {
         if (base.get_gameObject().get_transform().get_localScale() == this._bVector)
         {
             base.get_gameObject().get_transform().set_localScale(Vector3.get_one());
             this.set_dialog3_anime(false);
         }
         this._bVector = base.get_gameObject().get_transform().get_localScale();
     }
     if (this.get_dialog3_anime())
     {
         return;
     }
     if (this.dockSelectController.keyState.get_Item(0).up)
     {
         this.dockSelectController.Index = 0;
         UISelectedObject.SelectedButtonsZoomUpDown(this.btn_obj, this.dockSelectController.Index);
         this.Pressed_Button_No3(null);
     }
     else if (this.dockSelectController.keyState.get_Item(1).down&& this._isBtnMaruUp)
     {
         this._isBtnMaruUp = false;
         if (this.dockSelectController.Index == 1)
         {
             this.Pressed_Button_No3(null);
         }
         else
         {
             this.Pressed_Button_Yes3(null);
         }
     }
 }
Ejemplo n.º 21
0
 private void playSE()
 {
     SoundUtils.PlayOneShotSE(SEFIleInfos.BattleNightMessage);
 }
Ejemplo n.º 22
0
 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);
 }
Ejemplo n.º 23
0
 private void Back()
 {
     RemoveFocus();
     UserInterfaceRemodelManager.instance.Back2ModeSelect();
     SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
 }
Ejemplo n.º 24
0
 protected virtual void _playSE(SEFIleInfos info)
 {
     SoundUtils.PlaySE(info);
 }
Ejemplo n.º 25
0
        /// <summary>
        /// 服务器获取客户端发来的信息
        /// </summary>
        public void GetClientMsg()
        {
            while (true)
            {
                try
                {
                    if (!this.currentUser.socket.Connected)
                    {
                        toInfo.msgType = MsgType.系统消息;
                        //信息显示到服务器
                        toInfo.content = GGUserUtils.ShowNickAndId(this.currentUser) + " 客户端失去连接";
                        ChatUtils.AppendMsgToServerChatList(this.serverChatRecords, toInfo);
                        SoundUtils.playSound(toInfo.content, EndPointEnum.务器);
                        break;
                    }

                    string      json     = ToolUtils.GetString(this.currentUser.socket);
                    MessageInfo fromInfo = SerializerUtil.JsonToObject <MessageInfo>(json);

                    if (fromInfo == null)
                    {
                        //信息显示到服务器
                        MessageInfo tmpInfo = new MessageInfo();
                        tmpInfo.msgType = MsgType.异常报告;
                        tmpInfo.content = GGUserUtils.ShowNickAndId(this.currentUser) + " 未获取到信息";
                        ChatUtils.AppendMsgToServerChatList(this.serverChatRecords, tmpInfo);
                        SoundUtils.playSound(toInfo.content, EndPointEnum.务器);
                        break;
                    }

                    toInfo = new MessageInfo()
                    {
                        msgType  = fromInfo.msgType,
                        socket   = this.currentUser.socket,
                        content  = fromInfo.content,
                        fromId   = fromInfo.fromId,
                        toId     = fromInfo.toId,
                        fromUser = fromInfo.fromUser,
                        toUser   = fromInfo.toUser,
                        dateTime = DateTime.Now
                    };


                    if (!string.IsNullOrEmpty(fromInfo.toId) && OnlineUserUtils.CheckClientIsOnline(fromInfo.toId) && true)
                    {
                        toInfo.socket = OnlineUserUtils.GetSingleOnlineClient(fromInfo.toId).socket;
                    }
                    if (fromInfo.msgType == MsgType.移动好友)
                    {
                        int        oldGroupAutoId = Convert.ToInt32(fromInfo.oldGroupAutoId);
                        int        newGroupAutoId = Convert.ToInt32(fromInfo.newGroupAutoId);
                        int        friendAutoId   = Convert.ToInt32(fromInfo.toId);
                        GGGroup    oldGroupInfo   = ChatDBUtils.GetSingeGroupByAutoId(oldGroupAutoId);
                        GGGroup    newGroupInfo   = ChatDBUtils.GetSingeGroupByAutoId(newGroupAutoId);
                        GGUserInfo userInfo       = ChatDBUtils.GetPerInfoByAutoId(friendAutoId);
                        ChatDBUtils.MoveGroup(oldGroupAutoId, newGroupAutoId, friendAutoId);
                        toInfo.content = "成功将好友" + GGUserUtils.ShowNickAndId(userInfo) + "从[ " + oldGroupInfo.groupName + " ] 移动到 [ " + newGroupInfo.groupName + " ]";
                        SocketUtils.SendToSingleClient(toInfo);
                    }
                    else if (fromInfo.msgType == MsgType.私发红包)
                    {
                        if (OnlineUserUtils.CheckClientIsOnline(fromInfo.toId))
                        {
                            SocketUtils.SendToSingleClient(toInfo);
                        }
                        toInfo.content = GGUserUtils.ShowNickAndId(fromInfo.fromUser) + "给" + GGUserUtils.ShowNickAndId(fromInfo.toUser) + "发了" + fromInfo.content + "元的红包";
                    }
                    else if (fromInfo.msgType == MsgType.私聊)
                    {
                        if (OnlineUserUtils.CheckClientIsOnline(fromInfo.toId))
                        {
                            //信息转发给指定客户端
                            SocketUtils.SendToSingleClient(toInfo);
                            //添加聊天记录
                            ChatDBUtils.AddRecords(fromInfo);
                        }
                        else
                        {
                            //添加离线信息到数据库
                            ChatDBUtils.AddOfflineMsgToClient(fromInfo);
                        }
                    }
                    else if (fromInfo.msgType == MsgType.用户注册)
                    {
                        GGUserInfo user  = SerializerUtil.JsonToObject <GGUserInfo>(json);
                        bool       isSuc = ChatDBUtils.RegisterUser(user);

                        if (isSuc)
                        {
                            toInfo.content = GGUserUtils.ShowNickAndId(user) + "注册成功";
                        }
                        else
                        {
                            toInfo.content = GGUserUtils.ShowNickAndId(user) + "注册失败";
                        }
                        SocketUtils.SendToSingleClient(toInfo);
                    }
                    else if (fromInfo.msgType == MsgType.创建分组)
                    {
                        GGGroup tmpGroup = ChatDBUtils.GetGroupByName(fromInfo.content);
                        if (tmpGroup != null)
                        {
                            toInfo.content = "分组[" + fromInfo.content + "]已存在,请重新命名";
                            SocketUtils.SendToSingleClient(toInfo);
                        }
                        else
                        {
                            ChatDBUtils.CreateGroup(fromInfo.fromUser, fromInfo.content);
                            toInfo.content = "分组[" + fromInfo.content + "]创建成功";
                            SocketUtils.SendToSingleClient(toInfo);
                        }
                    }
                    else if (fromInfo.msgType == MsgType.除分组)
                    {
                        string groupAutoId = fromInfo.content;
                        ChatDBUtils.DelGroup(groupAutoId);
                        toInfo.content = "分组[" + fromInfo.content + "]删除成功";
                        SocketUtils.SendToSingleClient(toInfo);
                    }
                    else if (fromInfo.msgType == MsgType.修改分组)
                    {
                        string[] arr         = fromInfo.content.Split('|');
                        string   groupAutoId = arr[0];
                        string   groupName   = arr[1];
                        ChatDBUtils.UpdateGroup(groupAutoId, groupName);
                        toInfo.content = "分组[" + fromInfo.content + "]修改为[" + groupName + "]";
                        SocketUtils.SendToSingleClient(toInfo);
                    }
                    else if (fromInfo.msgType == MsgType.除好友)
                    {
                        string  friendAutoId = fromInfo.toId;
                        int     groupAutoId  = Convert.ToInt32(fromInfo.content);
                        GGGroup defaultGroup = ChatDBUtils.GetSingeGroupByAutoId(groupAutoId);
                        bool    isSuc        = ChatDBUtils.DelFriend(defaultGroup, friendAutoId);
                        //信息转发给指定客户端
                        toInfo.content = "成功删除好友" + GGUserUtils.ShowNickAndId(fromInfo.toUser);
                        SocketUtils.SendToSingleClient(toInfo);
                    }
                    else if (fromInfo.msgType == MsgType.添加好友)
                    {
                        //检查默认分组
                        CheckDefaultGroup(fromInfo);

                        GGUserInfo user         = ChatDBUtils.GetPerInfoByUserId(fromInfo.toId);
                        GGGroup    defaultGroup = ChatDBUtils.GetDefaultGroup(fromInfo.fromId);
                        bool       isSuc        = ChatDBUtils.AddFriend(defaultGroup, user.userAutoid);
                        //信息转发给指定客户端
                        toInfo.content = "成功添加" + GGUserUtils.ShowNickAndId(fromInfo.toUser) + "为好友";
                        SocketUtils.SendToSingleClient(toInfo);
                    }
                    else if (fromInfo.msgType == MsgType.获取好友信息)
                    {
                        List <GGGroup> groupList = ChatDBUtils.GetGroupFriendsInfo(fromInfo.fromId);
                        toInfo.content = SerializerUtil.ObjectToJson <List <GGGroup> >(groupList);
                        //将好友信息发送给制定客户端,刷新好友在线情况
                        SocketUtils.SendToSingleClient(toInfo);
                        toInfo.content = GGUserUtils.ShowNickAndId(fromInfo.fromUser) + "的好友情况如下:" + ChatDBUtils.GetPerOnlineGroupFriendsStr(fromInfo.fromId);
                    }
                    else if (fromInfo.msgType == MsgType.群发抖动)
                    {
                        //信息分发给其他客户端
                        SocketUtils.SendToMultiClients(OnlineUserUtils.GetAllOnlineClients(), fromInfo);
                    }
                    else if (fromInfo.msgType == MsgType.私发抖动)
                    {
                        toInfo.fromUser = OnlineUserUtils.GetSingleOnlineClient(fromInfo.fromId);
                        if (OnlineUserUtils.CheckClientIsOnline(fromInfo.toId))
                        {
                            toInfo.toUser  = OnlineUserUtils.GetSingleOnlineClient(fromInfo.toId);
                            toInfo.content = GGUserUtils.ShowNickAndId(toInfo.fromUser) + " 给你发了一个抖动";
                            toInfo.socket  = toInfo.toUser.socket;
                            SocketUtils.SendToSingleClient(toInfo);
                        }
                        toInfo.content = GGUserUtils.ShowNickAndId(fromInfo.fromUser) + " 给" + GGUserUtils.ShowNickAndId(fromInfo.toUser) + "发了一个抖动";
                    }
                    else if (fromInfo.msgType == MsgType.退出聊天室)
                    {
                        SocketUtils.SendToMultiClients(OnlineUserUtils.GetAllOnlineClients(), toInfo);
                    }
                    else if (fromInfo.msgType == MsgType.群发红包)
                    {
                        //信息分发给其他客户端
                        SocketUtils.SendToMultiClients(OnlineUserUtils.GetAllOnlineClients(), toInfo);
                    }
                    else if (fromInfo.msgType == MsgType.线)
                    {
                        string     userId = fromInfo.fromId;
                        GGUserInfo user   = OnlineUserUtils.GetSingleOnlineClient(userId);
                        toInfo.content = GGUserUtils.ShowNickAndId(user) + " 下线了";
                        //user.socket.Close();
                        //下线客户端
                        OnlineUserUtils.RemoveOnlineClient(userId);
                    }
                    else if (fromInfo.msgType == MsgType.线)
                    {
                        //信息分发给其他客户端
                        SocketUtils.SendToMultiClients(OnlineUserUtils.GetAllOnlineClients(), toInfo);
                    }
                    else if (fromInfo.msgType == MsgType.群聊)
                    {
                        //信息分发给其他客户端
                        SocketUtils.SendToMultiClients(OnlineUserUtils.GetAllOnlineClients(), toInfo);
                    }
                    else
                    {
                        toInfo.content = "未知信息:[ " + fromInfo.msgType + " ]  " + fromInfo.content;
                    }
                    //信息显示到服务器
                    ChatUtils.AppendMsgToServerChatList(this.serverChatRecords, toInfo);
                }
                catch (Exception ex)
                {
                    MessageInfo toInfo = new MessageInfo();
                    toInfo.msgType = MsgType.异常报告;
                    toInfo.content = GGUserUtils.ShowNickAndId(currentUser) + "被强制下线,服务器读取信息时异常:" + ex.Message;
                    //信息显示到服务器
                    ChatUtils.AppendMsgToServerChatList(this.serverChatRecords, toInfo);
                    //关闭连接并下线客户端
                    //userInfo.UserSocket1.Close();
                    OnlineUserUtils.RemoveOnlineClient(currentUser.userId);
                    //currentUser.socket.Close();
                    SoundUtils.playSound(toInfo.msgType + toInfo.content, EndPointEnum.务器);
                }
            }
        }
 public void Update()
 {
     if (this.mKeyController != null && this.mKeyController.keyState.get_Item(1).down&& this.enabledKey)
     {
         SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
     }
     if (this.on)
     {
         if (Time.get_time() - this.timer <= 1f)
         {
             this.mTexture_Fade.alpha += Mathf.Min(Time.get_deltaTime(), 1f - this.mTexture_Fade.alpha);
         }
         if (Time.get_time() - this.timer >= 1f && Time.get_time() - this.timer <= 2f)
         {
             this.mTexture_Fade.alpha -= Mathf.Min(Time.get_deltaTime(), this.mTexture_Fade.alpha);
         }
         if (Time.get_time() - this.timer >= 1.5f && Time.get_time() - this.timer <= 2f)
         {
             this.ShipSlide();
         }
         if (!this.fail)
         {
             if (Time.get_time() - this.timer >= 4f && Time.get_time() - this.timer <= 4.5f)
             {
                 this.StripeExpand();
             }
             if (Time.get_time() - this.timer >= 4f && Time.get_time() - this.timer <= 5.5f)
             {
                 if (this._isSuperSucessed)
                 {
                     if (!this.kamihubuki.get_activeSelf())
                     {
                         this.kamihubuki.SetActive(true);
                     }
                     this.TextSlide_S();
                 }
                 else
                 {
                     this.TextSlide();
                 }
             }
         }
         if (this.fail)
         {
             if (Time.get_time() - this.timer >= 4f && Time.get_time() - this.timer <= 5f)
             {
                 this.mTexture_Fade.alpha += Mathf.Min(Time.get_deltaTime(), 1f - this.mTexture_Fade.alpha);
             }
             if (Time.get_time() - this.timer >= 5f && Time.get_time() - this.timer <= 6f)
             {
                 this.mTexture_Fade.alpha -= Mathf.Min(Time.get_deltaTime(), this.mTexture_Fade.alpha);
             }
             if (Time.get_time() - this.timer >= 6f && Time.get_time() - this.timer <= 6.5f)
             {
                 this.SpotlightFadeIn();
             }
             if (Time.get_time() - this.timer >= 6.5f && Time.get_time() - this.timer <= 7.5f)
             {
                 this.TextboxSlide();
             }
         }
         if (this.finish)
         {
             if (this.waitAndVoiceCoroutine != null)
             {
                 base.StopCoroutine(this.waitAndVoiceCoroutine);
             }
             this.mTexture_Fade.alpha += Mathf.Min(Time.get_deltaTime(), 1f - this.mTexture_Fade.alpha);
             if (this.mTexture_Fade.alpha == 1f)
             {
                 this.isFinished = true;
             }
         }
     }
 }
 private bool StateKeyControl_System()
 {
     if (TaskOrganizeTop.KeyController.IsMaruDown() && TaskOrganizeTop.controlState == "system")
     {
         if (TaskOrganizeTop.SystemIndex == 0)
         {
             this.TenderManager.ShowSelectTender();
             OrganizeTaskManager.Instance.GetTopTask().setControlState();
         }
         else if (TaskOrganizeTop.SystemIndex == 1)
         {
             base.AllUnsetBtnEL();
             TaskOrganizeTop.SystemIndex = 0;
             TaskOrganizeTop.BannerIndex = 1;
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
             base.UpdateChangeBanner();
             OrganizeTaskManager.Instance.GetTopTask().setControlState();
         }
         else
         {
             Debug.Log("openDeckNameInput");
             base.openDeckNameInput();
         }
         return(true);
     }
     if (base.isTenderAnimation())
     {
         return(true);
     }
     if (TaskOrganizeTop.KeyController.IsBatuDown())
     {
         ((EscortOrganizeTaskManager)OrganizeTaskManager.Instance).backToDeployTop();
         return(false);
     }
     if (TaskOrganizeTop.KeyController.IsDownDown())
     {
         if (TaskOrganizeTop.SystemIndex >= 2)
         {
             TaskOrganizeTop.SystemIndex = 2;
             return(true);
         }
         int systemIndex = TaskOrganizeTop.SystemIndex;
         TaskOrganizeTop.SystemIndex++;
         if (TaskOrganizeTop.SystemIndex == 1 && !base.IsAllUnsetBtn())
         {
             TaskOrganizeTop.SystemIndex = 2;
         }
         base.UpdateSystemButtons();
         if (systemIndex != TaskOrganizeTop.SystemIndex)
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         }
     }
     else if (TaskOrganizeTop.KeyController.IsUpDown())
     {
         if (TaskOrganizeTop.SystemIndex <= 0)
         {
             Debug.Log("KEY:" + TaskOrganizeTop.KeyController.Index);
             TaskOrganizeTop.SystemIndex = 0;
             return(true);
         }
         int systemIndex2 = TaskOrganizeTop.SystemIndex;
         TaskOrganizeTop.SystemIndex--;
         if (TaskOrganizeTop.SystemIndex == 1 && !base.IsAllUnsetBtn())
         {
             if (!base.IsTenderBtn())
             {
                 TaskOrganizeTop.SystemIndex = 2;
             }
             else
             {
                 TaskOrganizeTop.SystemIndex = 0;
             }
         }
         if (TaskOrganizeTop.SystemIndex == 0 && !base.IsTenderBtn())
         {
             if (!base.IsAllUnsetBtn())
             {
                 TaskOrganizeTop.SystemIndex = 2;
             }
             else
             {
                 TaskOrganizeTop.SystemIndex = 1;
             }
         }
         Debug.Log(string.Concat(new object[]
         {
             "KEY:",
             TaskOrganizeTop.KeyController.Index,
             " KEE:",
             TaskOrganizeTop.BannerIndex
         }));
         base.UpdateSystemButtons();
         if (systemIndex2 != TaskOrganizeTop.SystemIndex)
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         }
     }
     else if (TaskOrganizeTop.KeyController.IsRightDown())
     {
         TaskOrganizeTop.BannerIndex++;
         base.UpdateSystemButtons();
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         base.UpdateChangeBanner();
         OrganizeTaskManager.Instance.GetTopTask().setControlState();
     }
     else if (TaskOrganizeTop.KeyController.IsRDown())
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToPortOrOrganize();
     }
     return(true);
 }
 private bool StateKeyControl_Banner()
 {
     if (TaskOrganizeTop.KeyController.IsMaruDown())
     {
         this._bannerManager[TaskOrganizeTop.BannerIndex - 1].DetailEL(null);
         return(true);
     }
     if (base.isTenderAnimation())
     {
         return(true);
     }
     if (TaskOrganizeTop.KeyController.IsBatuDown())
     {
         ((EscortOrganizeTaskManager)OrganizeTaskManager.Instance).backToDeployTop();
         return(false);
     }
     if (TaskOrganizeTop.KeyController.IsShikakuDown())
     {
         SoundUtils.PlaySE(SEFIleInfos.MainMenuOnClick);
         base.AllUnsetBtnEL();
     }
     else if (TaskOrganizeTop.KeyController.IsDownDown())
     {
         TaskOrganizeTop.BannerIndex += 2;
         if (TaskOrganizeTop.BannerIndex >= 7)
         {
             TaskOrganizeTop.BannerIndex -= 6;
         }
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         base.UpdateChangeBanner();
     }
     else if (TaskOrganizeTop.KeyController.IsUpDown())
     {
         TaskOrganizeTop.BannerIndex -= 2;
         if (TaskOrganizeTop.BannerIndex <= 0)
         {
             TaskOrganizeTop.BannerIndex += 6;
         }
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         base.UpdateChangeBanner();
     }
     else if (TaskOrganizeTop.KeyController.IsLeftDown())
     {
         TaskOrganizeTop.BannerIndex--;
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         if (TaskOrganizeTop.BannerIndex == 0)
         {
             if (base.IsTenderBtn() || base.IsAllUnsetBtn())
             {
                 bool flag = false;
                 if (base.IsTenderBtn())
                 {
                     TaskOrganizeTop.SystemIndex = 0;
                     flag = true;
                 }
                 if (!flag)
                 {
                     TaskOrganizeTop.SystemIndex = 1;
                 }
             }
             else
             {
                 TaskOrganizeTop.SystemIndex = 2;
             }
             base.UpdateSystemButtons();
             OrganizeTaskManager.Instance.GetTopTask().setControlState();
         }
         base.UpdateChangeBanner();
     }
     else if (TaskOrganizeTop.KeyController.IsRightDown())
     {
         if (TaskOrganizeTop.BannerIndex >= 6)
         {
             return(true);
         }
         TaskOrganizeTop.BannerIndex++;
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         for (int i = 0; i < 6; i++)
         {
             if (TaskOrganizeTop.BannerIndex - 1 == i)
             {
                 this._bannerManager[i].UpdateBanner(true);
             }
             else
             {
                 this._bannerManager[i].UpdateBanner(false);
             }
         }
     }
     else if (TaskOrganizeTop.KeyController.IsRDown())
     {
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToPortOrOrganize();
     }
     return(true);
 }
Ejemplo n.º 29
0
 private void OnBack()
 {
     SoundUtils.PlaySE(SEFIleInfos.CommonCancel1);
     OnSelectedMenu(SelectType.Back);
 }
Ejemplo n.º 30
0
 private void OnBack()
 {
     SoundUtils.PlaySE(SEFIleInfos.CommonCancel1);
     this.OnSelectedMenu(UIPracticeMenu.SelectType.Back);
 }