private void ChangeBtnState(bool isForward)
        {
            SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
            int a = _nSelectedIndex + (isForward ? 1 : (-1));

            _nSelectedIndex = Mathe.MinMax2Rev(a, 0, selectedObjectMax);
            _listSelectorObjects[_nSelectedIndex].toggle.value = true;
        }
 private void OnCancel()
 {
     if (this.mOnCancelListener != null)
     {
         SoundUtils.PlaySE(SEFIleInfos.CommonCancel1);
         this.mOnCancelListener.Invoke();
     }
 }
 public void OnClickSortButton()
 {
     if (this.IsClickable && this.CallCheckClickable())
     {
         this.SortNext();
         SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
     }
 }
 private void OnChanedItemListener(UIInteriorFurnitureChangeScrollListChildNew child)
 {
     if (mStateManager.CurrentState == State.FurnitureSelect)
     {
         SoundUtils.PlaySE(mAudioClip_CommonCursolMove);
         mUIInteriorFurnitureDetail.Initialize(mDeckid, child.GetModel().GetFurnitureModel());
     }
 }
 public void OnClickPositiveButton()
 {
     if (isGoCondition)
     {
         SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
         CallBackAction(ActionType.StartMission, this);
     }
 }
示例#6
0
 private void ChangeFocus(int nIndex)
 {
     SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove2);
     this._listCommandUnitLabel.ForEach(delegate(UICommandLabelButton x)
     {
         x.isFocus = (x.index == nIndex);
     });
 }
 private void ChangeFocus(int nIndex)
 {
     _listISelectSurface.ForEach(delegate(ISelectedObject <int> x)
     {
         x.isFocus = ((x.index == nIndex) ? true : false);
     });
     SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove2);
 }
示例#8
0
 private void OnBack()
 {
     SoundUtils.PlaySE(SEFIleInfos.CommonCancel1);
     if (this.mOnBackCallBack != null)
     {
         this.mOnBackCallBack.Invoke();
     }
 }
        public override void Play(Action callback)
        {
            UILabel component = base.get_transform().FindChild("Panel/Label").GetComponent <UILabel>();

            component.text = "×" + this._sPoint;
            base.Play(callback);
            SoundUtils.PlaySE(SEFIleInfos.RewardGet);
        }
 public void NextPlay(Action callback)
 {
     _anime.Stop();
     _anime.Play("start_GetSlotItem");
     _uiPar.Play();
     _actCallback = callback;
     SoundUtils.PlaySE(SEFIleInfos.RewardGet2);
 }
示例#11
0
 private void OnBack()
 {
     SoundUtils.PlaySE(SEFIleInfos.CommonCancel1);
     if (mOnBackCallBack != null)
     {
         mOnBackCallBack();
     }
 }
 public void Play(Action callback)
 {
     this._anime.Play("start_GetSlotItem");
     this._uiPar.Play();
     this._actCallback = callback;
     this._rewardCount++;
     SoundUtils.PlaySE(SEFIleInfos.RewardGet2);
 }
示例#13
0
 private void OnSelectedDeckPracticeType(DeckPracticeType deckPracticeType)
 {
     SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
     if (mOnSelectedDeckPracticeTypeCallBack != null)
     {
         mOnSelectedDeckPracticeTypeCallBack(deckPracticeType);
     }
 }
示例#14
0
 private void OnCancel()
 {
     if (mOnCancelListener != null)
     {
         SoundUtils.PlaySE(SEFIleInfos.CommonCancel1);
         mOnCancelListener();
     }
 }
 private void Update()
 {
     if (mKeyController != null && (mKeyController.keyState[0].down || mKeyController.keyState[1].down))
     {
         SoundUtils.PlaySE(SEFIleInfos.CommonCancel1);
         Hide();
     }
 }
 private void Forward4Confirm()
 {
     if (isShown)
     {
         SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
         UserInterfaceRemodelManager.instance.Forward2KindaikaKaishuKakunin(GetModernizationShipModel(), GetSetShipModels());
     }
 }
 private void Forward4Select()
 {
     if (isShown)
     {
         SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
         UserInterfaceRemodelManager.instance.Forward2KindaikaKaishuSozaiSentaku(GetSetShipModels());
     }
 }
        public IEnumerator Play(int MstID, Action OnFinished)
        {
            panel.alpha = 1f;
            MotionList  = new Dictionary <int, Live2DModel.MotionType>();
            MotionList.Add(9, Live2DModel.MotionType.Love2);
            MotionList.Add(37, Live2DModel.MotionType.Port);
            MotionList.Add(1, Live2DModel.MotionType.Port);
            MotionList.Add(33, Live2DModel.MotionType.Port);
            MotionList.Add(96, Live2DModel.MotionType.Secret);
            MotionList.Add(43, Live2DModel.MotionType.Port);
            MotionList.Add(54, Live2DModel.MotionType.Battle);
            MotionList.Add(55, Live2DModel.MotionType.Port);
            MotionList.Add(56, Live2DModel.MotionType.Secret);
            MotionList.Add(94, Live2DModel.MotionType.Secret);
            MotionList.Add(46, Live2DModel.MotionType.Secret);
            if (MotionList.ContainsKey(MstID))
            {
                Live2DModel.MotionType motionType = MotionList[MstID];
            }
            SoundUtils.StopBGM();
            SingletonMonoBehaviour <FadeCamera> .Instance.SetTransitionRule(FadeCamera.TransitionRule.NONE);

            ShipModelMst model = new ShipModelMst(MstID);

            ShipCharacter.ChangeCharacter(model);
            yield return(new WaitForEndOfFrame());

            yield return(new WaitForEndOfFrame());

            yield return(new WaitForEndOfFrame());

            SoundUtils.PlaySE(SEFIleInfos.RewardGet2, null);
            WhiteMaskTweenAlpha.ResetToBeginning();
            WhiteMaskTweenAlpha.PlayForward();
            WhiteMaskTweenAlpha.SetOnFinished(delegate
            {
                throw new NotImplementedException("‚È‚É‚±‚ê");
                // SingletonMonoBehaviour<Live2DModel>.Instance.Play(base._003Cmotion_003E__0, null);

                ShipUtils.PlayShipVoice(model, 1);
            });
            yield return(new WaitForSeconds(6f));

            BGTweenAlpha.ResetToBeginning();
            BGTweenAlpha.PlayForward();
            CameraZoomTween.ResetToBeginning();
            CameraZoomTween.PlayForward();
            yield return(new WaitForSeconds(4.5f));

            WhiteMaskTweenAlpha.onFinished.Clear();
            WhiteMaskTweenAlpha.PlayReverse();
            yield return(new WaitForSeconds(WhiteMaskTweenAlpha.duration + 2f));

            TweenColor.Begin(WhiteMaskTweenAlpha.gameObject, 1f, Color.black);
            yield return(new WaitForSeconds(1.5f));

            OnFinished?.Invoke();
        }
示例#19
0
        private void OnStartSuccessRevampAnimation(RevampContext context)
        {
            _isTop = true;
            UIRevampIcon revampIcon = Util.Instantiate(mPrefab_RevampIcon.gameObject, base.gameObject).GetComponent <UIRevampIcon>();

            revampIcon.Initialize(context.GetBeforeSlotItemInfo().MstId, context.GetBeforeSlotItemInfo().Level, mCameraProduction);
            revampIcon.StartRevamp(context.GetAfterSlotItemInfo().MstId, context.GetAfterSlotItemInfo().Level, context.GetAfterSlotItemInfo().Name, delegate
            {
                SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = true;
                mRevampAkashi.ChangeBodyTo(UIRevampAkashi.BodyType.Normal);
                _isAnimation = false;
                string empty = string.Empty;
                PlayAkashiVoice(mAudioClip_308);
                empty += "[000000]改修成功しました。";
                empty += "\n";
                empty += $"[329ad6]{mRevampContext.GetAfterSlotItemInfo().Name}[-]";
                mParticleSystem_SuccessStars.Play(false);
                if (SingletonMonoBehaviour <UIPortFrame> .exist())
                {
                    SingletonMonoBehaviour <UIPortFrame> .Instance.isColliderEnabled = true;
                }
                TrophyUtil.Unlock_AlbumSlotNum();
                if (mRevampContext.IsModelChange())
                {
                    SoundUtils.PlaySE(mAudioClip_SE_023);
                }
                else
                {
                    SoundUtils.PlaySE(mAudioClip_SE_021);
                }
                KeyControl keyController = mRevampInfoBalloon.SayMessage(empty, delegate
                {
                    if (mRevampContext.ConsortShip != null)
                    {
                        mTransform_AssistantShipParent.DOLocalMove(mVector3_AssistantShipHideLocalPosition, 0.6f);
                    }
                    mRevampInfoBalloon.alpha = 1f;
                    UnityEngine.Object.Destroy(revampIcon.gameObject);
                    mRevampInfoBalloon.SayMessage("[000000]どの装備の改修を試みますか?");
                    mRevampManager.GetDetail(mRevampContext.RevampRecipe.RecipeId, mRevampContext.GetBeforeSlotItemInfo().MemId);
                    RevampRecipeModel[] recipes = mRevampManager.GetRecipes();
                    int num = 0;
                    RevampRecipeModel[] array = recipes;
                    foreach (RevampRecipeModel revampRecipeModel in array)
                    {
                        if (revampRecipeModel.RecipeId == mRevampContext.RevampRecipe.RecipeId)
                        {
                            break;
                        }
                        num++;
                    }
                    KeyControl keyController2 = (num > recipes.Length) ? ShowUIRevampRecipeList(0) : ShowUIRevampRecipeList(num);
                    ChangeFocusKeyController(keyController2);
                });
                ChangeFocusKeyController(keyController);
                mTransform_AssistantShipParent.DOLocalMove(mVector3_AssistantShipHideLocalPosition, 0.6f);
            });
        }
示例#20
0
        private void Animation()
        {
            bool flag = DOTween.IsTweening(this);

            if (flag)
            {
                return;
            }
            Sequence sequence = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence, this);
            Sequence sequence2 = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence2, this);
            this.mTransform_Fuurin.set_localRotation(Quaternion.Euler(new Vector3(0f, 0f, -10f)));
            Tween tween  = ShortcutExtensions.DOLocalRotate(this.mTransform_Fuurin.get_transform(), Vector3.get_zero(), 0.6f, 0);
            Tween tween2 = ShortcutExtensions.DOLocalRotate(this.mTransform_Fuurin.get_transform(), new Vector3(0f, 0f, -5f), 0.6f, 0);
            Tween tween3 = ShortcutExtensions.DOLocalRotate(this.mTransform_Fuurin.get_transform(), Vector3.get_zero(), 0.3f, 0);

            TweenSettingsExtensions.Append(sequence2, tween);
            TweenSettingsExtensions.Append(sequence2, tween2);
            TweenSettingsExtensions.Append(sequence2, tween3);
            Sequence sequence3 = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence3, this);
            TweenCallback tweenCallback = delegate
            {
                this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_2;
            };

            TweenSettingsExtensions.OnPlay <Sequence>(sequence3, tweenCallback);
            TweenSettingsExtensions.AppendInterval(sequence3, 0.1f);
            TweenCallback tweenCallback2 = delegate
            {
                this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_0;
            };
            Tween tween4 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, -4f), 0.2f, 0);
            Tween tween5 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, 25f), 0.8f, 0);
            Tween tween6 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, -12.5f), 0.8f, 0);
            Tween tween7 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, 0f), 0.8f, 0);

            TweenSettingsExtensions.Append(sequence3, tween4);
            TweenSettingsExtensions.Append(sequence3, tween5);
            TweenSettingsExtensions.Append(sequence3, tween6);
            TweenSettingsExtensions.Append(sequence3, tween7);
            TweenSettingsExtensions.AppendCallback(sequence3, delegate
            {
                this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_1;
            });
            TweenSettingsExtensions.AppendInterval(sequence3, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence3, delegate
            {
                this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_0;
            });
            TweenSettingsExtensions.Append(sequence, sequence2);
            TweenSettingsExtensions.Join(sequence, sequence3);
            SoundUtils.PlaySE(this.mAudioClip_Fuurin);
        }
示例#21
0
 private void Update()
 {
     if (this.mKeyController != null)
     {
         if (this.mKeyController.keyState.get_Item(14).down)
         {
             int num  = Array.IndexOf <UIItemListChild>(this.mItemListChildren, this.mFocusListChild);
             int num2 = num - 1;
             if (0 <= num2)
             {
                 this.ChangeFocus(this.mItemListChildren[num2], true);
             }
         }
         else if (this.mKeyController.keyState.get_Item(10).down)
         {
             int num3 = Array.IndexOf <UIItemListChild>(this.mItemListChildren, this.mFocusListChild);
             int num4 = num3 + 1;
             if (num4 < this.mItemListChildren.Length)
             {
                 this.ChangeFocus(this.mItemListChildren[num4], true);
             }
         }
         else if (this.mKeyController.keyState.get_Item(8).down)
         {
             int num5 = Array.IndexOf <UIItemListChild>(this.mItemListChildren, this.mFocusListChild);
             int num6 = num5 - 7;
             if (0 <= num6)
             {
                 this.ChangeFocus(this.mItemListChildren[num6], true);
             }
         }
         else if (this.mKeyController.keyState.get_Item(12).down)
         {
             int num7 = Array.IndexOf <UIItemListChild>(this.mItemListChildren, this.mFocusListChild);
             int num8 = num7 + 7;
             if (num8 < this.mItemListChildren.Length)
             {
                 this.ChangeFocus(this.mItemListChildren[num8], true);
             }
         }
         else if (this.mKeyController.keyState.get_Item(1).down)
         {
             if (this.mFocusListChild != null)
             {
                 ItemlistModel mModel = this.mFocusListChild.mModel;
                 if (0 < mModel.Count && mModel.IsUsable())
                 {
                     SoundUtils.PlaySE(this.mAudioClip_SE_013);
                     this.OnSelect(this.mFocusListChild.mModel);
                 }
             }
         }
         else if (this.mKeyController.keyState.get_Item(0).down)
         {
             SingletonMonoBehaviour <PortObjectManager> .Instance.BackToActiveScene();
         }
     }
 }
        public void Hide()
        {
            this._uiOverlay3.get_transform().set_localScale(Vector3.get_zero());
            TweenPosition tweenPosition = TweenPosition.Begin(this._bgPanel.get_gameObject(), 0.3f, Vector3.get_right() * 877f);

            tweenPosition.animationCurve = AnimationCurve.Linear(0f, 0f, 1f, 1f);
            this._dismantleBtnLight.StopAnim();
            SoundUtils.PlaySE(SEFIleInfos.CommonCancel1);
        }
 private void Update()
 {
     if (this.rep.now_mode() != 4)
     {
         return;
     }
     this.dockSelectController.Update();
     if (this.rep.first_change())
     {
         UISelectedObject.SelectedButtonsZoomUpDown(this.btn_obj, this.dockSelectController.Index);
         return;
     }
     if (this.dockSelectController.Index == 1)
     {
         this.Set_Button_Sprite(true);
     }
     else
     {
         this.Set_Button_Sprite(false);
     }
     if (this.dockSelectController.IsChangeIndex)
     {
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         UISelectedObject.SelectedButtonsZoomUpDown(this.btn_obj, this.dockSelectController.Index);
     }
     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_dialog_anime(false);
         }
         this._bVector = base.get_gameObject().get_transform().get_localScale();
     }
     if (this.get_dialog_anime() || this.bd3.get_board3_anime())
     {
         return;
     }
     if (this.dockSelectController.keyState.get_Item(0).down)
     {
         this.dockSelectController.Index = 0;
         this.Pressed_Button_No(null);
     }
     else if (this.dockSelectController.keyState.get_Item(1).down)
     {
         if (this.dockSelectController.Index == 1)
         {
             this.Pressed_Button_No(null);
         }
         else
         {
             this.dockSelectController.Index = 0;
             this.rep.set_mode(1);
             this.Pressed_Button_Yes(null);
         }
     }
 }
示例#24
0
 private void DownTankerValue()
 {
     if (TransportKeyController.IsRun && RangeTanker(mSetTankerValue - 1, mMinimumSetTankerValue, mMaximumSetTankerValue))
     {
         mSetTankerValue--;
         OnUpdatedTankerValue(mSetTankerValue);
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
     }
 }
 private void Back()
 {
     if (this.isShown)
     {
         SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
         this.Hide();
         UserInterfaceRemodelManager.instance.Back2SoubiHenkou();
     }
 }
示例#26
0
 private void ChangeValueEffect()
 {
     DOTween.Kill(this, false);
     TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOScale(this.chara_arm.get_transform(), new Vector3(1.1f, 1.1f), 0.1f), delegate
     {
         this.chara_arm.get_transform().set_localScale(Vector3.get_one());
     }), this), 1);
     SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
 }
 private void Down()
 {
     if (DOTween.IsTweening(this))
     {
         DOTween.Kill(this);
     }
     SoundUtils.PlaySE(mAudioClip_Down);
     mTexture_Main.mainTexture = mTexture2d_Frame_2;
 }
 private void OnItemStoreBackListener()
 {
     if (CurrentState == State.ItemStore)
     {
         mKeyController.IsRun = false;
         SoundUtils.PlaySE(mAudioClip_CommonCancel1);
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToActiveScene();
     }
 }
 private void OnItemListBack()
 {
     if (CurrentState == State.ItemList)
     {
         mKeyController.IsRun = false;
         SoundUtils.PlaySE(mAudioClip_CommonCancel1);
         SingletonMonoBehaviour <PortObjectManager> .Instance.BackToStrategy();
     }
 }
 public void Close()
 {
     if (this.mKeyController != null && this.mKeyController.IsRun)
     {
         base.Hide(this.mClosedCallBack);
         this.mKeyController = null;
         SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
     }
 }