コード例 #1
0
 private void playSEPlus(int index)
 {
     if (PlusIcon[index].isActiveAndEnabled)
     {
         SoundUtils.PlayOneShotSE(SEFIleInfos.BattleNightMessage);
     }
 }
コード例 #2
0
 public void PopUpFailOpenSummary()
 {
     SoundUtils.PlayOneShotSE(SEFIleInfos.CommonCancel1);
     if (this.ship.IsInActionEndDeck())
     {
         this.validShipReason = Util.getPopupMessage(PopupMess.ActionEndShip);
     }
     else if (this.ship.SlotitemList.get_Count() == 0)
     {
         this.validShipReason = Util.getPopupMessage(PopupMess.NoSlot);
     }
     else if (this.ship.IsInRepair())
     {
         this.validShipReason = Util.getPopupMessage(PopupMess.NowRepairing);
     }
     else if (this.ship.IsBling())
     {
         this.validShipReason = Util.getPopupMessage(PopupMess.NowBlinging);
     }
     else if (this.ship.IsInEscortDeck() != -1)
     {
         this.validShipReason = Util.getPopupMessage(PopupMess.InEscortShip);
     }
     else if (this.ship.IsInMission())
     {
         this.validShipReason = Util.getPopupMessage(PopupMess.InMissionShip);
     }
     else
     {
         this.validShipReason = string.Empty;
     }
     CommonPopupDialog.Instance.StartPopup(this.validShipReason);
 }
コード例 #3
0
 private void back()
 {
     if (isShown)
     {
         SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1);
         UserInterfaceRemodelManager.instance.Back2ModeSelect();
     }
 }
コード例 #4
0
 private void Forward()
 {
     if (this.isShown)
     {
         SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1);
         this.Hide();
         UserInterfaceRemodelManager.instance.Forward2SoubiHenkouItemSelect(this.ship, this.Categories[this.currentIdx]);
     }
 }
コード例 #5
0
 public void ChangePrevDeck()
 {
     if (ProcessPrev())
     {
         SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1);
         RefleshIcons();
         handler.OnDeckChange(currentDeck);
     }
 }
コード例 #6
0
 public void OnClickRemodel()
 {
     if (this.isShown)
     {
         SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1);
         this.ChangeFocusButton(this.mButton_Remodel);
         UserInterfaceRemodelManager.instance.Forward2Kaizo();
     }
 }
コード例 #7
0
 public void ChangeNextDeck()
 {
     if (this.ProcessNext())
     {
         SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1);
         this.RefleshIcons();
         this.handler.OnDeckChange(this.currentDeck);
     }
 }
コード例 #8
0
 public void ExitCommandMenu()
 {
     Debug.Log("ExitCommandMenu");
     if (!isChangeingDeck)
     {
         CommandMenu.MenuExit();
         StrategyTopTaskManager.ReqMode(StrategyTopTaskManager.StrategyTopTaskManagerMode.StrategyTopTaskManagerMode_ST);
         StrategyTopTaskManager.Instance.GetInfoMng().EnterInfoPanel(0.4f);
         sceneChange = false;
         SoundUtils.PlayOneShotSE(SEFIleInfos.SE_037);
     }
 }
コード例 #9
0
 public void OnClickSlotItemChange()
 {
     if (this.isShown)
     {
         if (!this.IsValidSlotItemChange())
         {
             this.PopUpFailOpenSummary();
             return;
         }
         SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1);
         this.ChangeFocusButton(this.mButton_SlotItemChange);
         UserInterfaceRemodelManager.instance.Forward2SoubiHenkou(null, false);
     }
 }
コード例 #10
0
 private void OnSelectCurrentFocus()
 {
     if (mButton_CurrentFocus != null)
     {
         SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1);
         if (mButton_CurrentFocus.Equals(mButton_ShipAlbum))
         {
             OnSelectedShipAlbum();
         }
         else if (mButton_CurrentFocus.Equals(mButton_SlotItemAlbum))
         {
             OnSelectedSlotItemAlbum();
         }
     }
 }
コード例 #11
0
 private void ChangeFocusItem(UIRemodelEquipSlotItem target)
 {
     if (currentFocusItem != null)
     {
         currentFocusItem.RemoveHover();
     }
     currentFocusItem = target;
     if (currentFocusItem != null)
     {
         currentFocusItem.Hover();
     }
     if (target != _BeforeItem)
     {
         SoundUtils.PlayOneShotSE(SEFIleInfos.CommonCursolMove);
         _BeforeItem = target;
     }
 }
コード例 #12
0
 private void ChangeFocusButton(UIButton target)
 {
     if (this.mCurrentButtonFocus != null)
     {
         this.mCurrentButtonFocus.SetState(UIButtonColor.State.Normal, true);
     }
     this.mCurrentButtonFocus = target;
     if (this.mCurrentButtonFocus != null)
     {
         this.mCurrentButtonFocus.SetState(UIButtonColor.State.Hover, true);
     }
     if (this.mCurrentButtonFocus != this._BeforeButton)
     {
         SoundUtils.PlayOneShotSE(SEFIleInfos.CommonCursolMove);
         this._BeforeButton = this.mCurrentButtonFocus;
     }
 }
コード例 #13
0
        public void pushMenuButton()
        {
            if (this.isChangeingDeck)
            {
                return;
            }
            if (StrategyTopTaskManager.Instance.UIModel.MapCamera.isMoving)
            {
                return;
            }
            if (!StrategyTopTaskManager.GetCommandMenu().isRun)
            {
                Debug.Log("Not CommandMenuMode return");
                return;
            }
            if (!this.CommandMenu.isOpen)
            {
                Debug.Log("Not CommandMenu Open return");
                return;
            }
            int  num = this.areaModel.GetDecks().Length;
            bool flag;

            if (this.isMenuActive((TaskStrategyCommandMenu.MENU_NAME) this.keyController.Index))
            {
                Debug.Log("PUSH");
                flag = this.pushCommandMenuList.get_Item(this.keyController.Index)();
                this.CommandMenu.menuParts[this.keyController.Index].setColider(false);
            }
            else
            {
                flag = false;
            }
            if (flag)
            {
                SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1);
            }
            else
            {
                SoundUtils.PlayOneShotSE(SEFIleInfos.CommonCancel2);
            }
        }
コード例 #14
0
 private void OnSelectCurrentFocus()
 {
     if (this.mButton_CurrentFocus != null)
     {
         SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1);
         bool flag = this.mButton_CurrentFocus.Equals(this.mButton_ShipAlbum);
         if (flag)
         {
             this.OnSelectedShipAlbum();
         }
         else
         {
             bool flag2 = this.mButton_CurrentFocus.Equals(this.mButton_SlotItemAlbum);
             if (flag2)
             {
                 this.OnSelectedSlotItemAlbum();
             }
         }
     }
 }
コード例 #15
0
 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);
     }
 }
コード例 #16
0
        private void ChangeDeck(bool isNext)
        {
            int num = isNext ? 1 : (-1);
            int id  = CurrentDeck.Id;

            id = (int)Util.LoopValue(id + num, 1f, StrategyTopTaskManager.GetLogicManager().UserInfo.GetDecks().Length);
            StrategyTopTaskManager.GetSailSelect().DeckSelectController.SilentChangeIndex(id - 1);
            DeckModel deckModel = StrategyTopTaskManager.GetSailSelect().changeDeck(id);

            if (deckModel != null)
            {
                SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1);
                SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck = deckModel;
                CurrentDeck = SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck;
                UpdateView(CurrentDeck);
                UpdateFlagShip();
                StrategyTopTaskManager.Instance.GetAreaMng().UpdateSelectArea(SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID);
                OrganizeMng = new OrganizeManager(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.AreaId);
                ListParent.Initialize(OrganizeMng, DialogCamera);
            }
        }
コード例 #17
0
 private void forward()
 {
     if (this.isShown)
     {
         SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1);
         if (this.currentFocusItem.isExSlot && !this.ship.HasExSlot())
         {
             if (this.currentFocusItem.ExSlotButton.state != UIButtonColor.State.Disabled)
             {
                 this.OpenExSlotDialog();
                 return;
             }
             CommonPopupDialog.Instance.StartPopup("アイテム「補強増設」を持っていません");
             return;
         }
         else
         {
             UserInterfaceRemodelManager.instance.Forward2SoubiHenkouTypeSelect();
         }
     }
 }
コード例 #18
0
 private void Update()
 {
     if (this.keyController != null && base.get_enabled() && this.isShown)
     {
         if (this.validShip && this.keyController.IsUpDown())
         {
             int num  = Array.IndexOf <UIRemodelEquipSlotItem>(this.slots, this.currentFocusItem);
             int num2 = num - 1;
             if (0 <= num2)
             {
                 Debug.Log("PrevIndex::" + num2);
                 this.ChangeFocusItem(this.slots[num2]);
             }
         }
         else if (this.validShip && this.keyController.IsDownDown())
         {
             int num3 = Array.IndexOf <UIRemodelEquipSlotItem>(this.slots, this.currentFocusItem);
             int num4 = num3 + 1;
             int num5 = (this.ship.Level < 30) ? 0 : 1;
             if (num4 < this.ship.SlotitemList.get_Count() + num5)
             {
                 Debug.Log("NextIndex::" + num4);
                 this.ChangeFocusItem(this.slots[num4]);
             }
         }
         else if (this.validShip && this.keyController.IsMaruDown())
         {
             this.forward();
         }
         else if (this.keyController.IsBatuDown())
         {
             this.back();
         }
         else if (this.validUnsetAll && this.keyController.IsShikakuDown())
         {
             this.UnsetAll();
             SoundUtils.PlayOneShotSE(SEFIleInfos.SE_009);
         }
     }
 }
コード例 #19
0
ファイル: dialog.cs プロジェクト: syncsyncsynchalt/BD-6Kr
 public void Pressed_Button_Yes(GameObject obj)
 {
     rep.set_mode(-1);
     _clickmask.unclickable_onesec();
     SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter2);
     dialog_appear(bstat: false);
     GameObject.Find("board3").GetComponent <board3>().board3_appear(bstat: false, isSirent: true);
     GameObject.Find("board2").GetComponent <board2>().board2_appear(boardStart: false, isSirent: true);
     rep.all_rid_mask();
     if (!hsp)
     {
         rep.nyukyogo(selected_dock, ship, _isRepairKit: false);
         GameObject.Find("board1_top/board").GetComponent <board>().redraw(anime: false, selected_dock);
     }
     else
     {
         rep.nyukyogo(selected_dock, ship, _isRepairKit: true);
     }
     GameObject.Find("board2").GetComponent <board2>().UpdateList();
     GameObject.Find("board1_top/board").GetComponent <board>().set_cx(0);
     rep.set_mode(1);
 }
コード例 #20
0
 public void Pressed_Button_Yes(GameObject obj)
 {
     this.rep.set_mode(-1);
     this._clickmask.unclickable_onesec();
     SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter2);
     this.dialog_appear(false);
     GameObject.Find("board3").GetComponent <board3>().board3_appear(false, true);
     GameObject.Find("board2").GetComponent <board2>().board2_appear(false, true);
     this.rep.all_rid_mask();
     if (!this.hsp)
     {
         this.rep.nyukyogo(this.selected_dock, this.ship, false);
         GameObject.Find("board1_top/board").GetComponent <board>().redraw(false, this.selected_dock);
     }
     else
     {
         this.rep.nyukyogo(this.selected_dock, this.ship, true);
     }
     GameObject.Find("board2").GetComponent <board2>().UpdateList();
     GameObject.Find("board1_top/board").GetComponent <board>().set_cx(0);
     this.rep.set_mode(1);
 }
コード例 #21
0
 private void playSE()
 {
     SoundUtils.PlayOneShotSE(SEFIleInfos.BattleNightMessage);
 }