private void playSEPlus(int index) { if (PlusIcon[index].isActiveAndEnabled) { SoundUtils.PlayOneShotSE(SEFIleInfos.BattleNightMessage); } }
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); }
private void back() { if (isShown) { SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1); UserInterfaceRemodelManager.instance.Back2ModeSelect(); } }
private void Forward() { if (this.isShown) { SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1); this.Hide(); UserInterfaceRemodelManager.instance.Forward2SoubiHenkouItemSelect(this.ship, this.Categories[this.currentIdx]); } }
public void ChangePrevDeck() { if (ProcessPrev()) { SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1); RefleshIcons(); handler.OnDeckChange(currentDeck); } }
public void OnClickRemodel() { if (this.isShown) { SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1); this.ChangeFocusButton(this.mButton_Remodel); UserInterfaceRemodelManager.instance.Forward2Kaizo(); } }
public void ChangeNextDeck() { if (this.ProcessNext()) { SoundUtils.PlayOneShotSE(SEFIleInfos.CommonEnter1); this.RefleshIcons(); this.handler.OnDeckChange(this.currentDeck); } }
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); } }
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); } }
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(); } } }
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; } }
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; } }
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); } }
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(); } } } }
private void Update() { if (keyController == null || !base.enabled || !isShown) { return; } if (validShip && keyController.IsUpDown()) { int num = Array.IndexOf(slots, currentFocusItem); int num2 = num - 1; if (0 <= num2) { Debug.Log("PrevIndex::" + num2); ChangeFocusItem(slots[num2]); } } else if (validShip && keyController.IsDownDown()) { int num3 = Array.IndexOf(slots, currentFocusItem); int num4 = num3 + 1; int num5 = (ship.Level >= 30) ? 1 : 0; if (num4 < ship.SlotitemList.Count + num5) { Debug.Log("NextIndex::" + num4); ChangeFocusItem(slots[num4]); } } else if (validShip && keyController.IsMaruDown()) { forward(); } else if (keyController.IsBatuDown()) { back(); } else if (validUnsetAll && keyController.IsShikakuDown()) { UnsetAll(); SoundUtils.PlayOneShotSE(SEFIleInfos.SE_009); } }
private void 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); } }
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(); } } }
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); } } }
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); }
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); }
private void playSE() { SoundUtils.PlayOneShotSE(SEFIleInfos.BattleNightMessage); }