public void SetCustomMode() { dialogKeyController = App.OnlyController; dialogKeyController.IsRun = false; ((Component)BauxiSuccess).transform.localPositionX(1000f); ((Component)BauxiField).transform.localPositionX(1000f); key = new KeyControl(0, 5); key.isLoopIndex = false; key.setChangeValue(-2f, 1f, 2f, -1f); App.OnlyController = key; ((Component)BauxiSuccess).transform.parent.SetActive(isActive: true); ModeProcessor = GetComponent <ModeProcessor>(); ModeProcessor.addMode("Top", TopModeRun, TopModeEnter, TopModeExit); ModeProcessor.addMode("SupplyConfirm", SupplyConfirmModeRun, SupplyConfirmModeEnter, SupplyConfirmModeExit); ModeProcessor.addMode("RepairConfirm", RepairConfirmModeRun, RepairConfirmModeEnter, RepairConfirmModeExit); ModeProcessor.addMode("RepairKitConfirm", RepairKitConfirmModeRun, RepairKitConfirmModeEnter, RepairKitConfirmModeExit); ModeProcessor.addMode("OrganizeDetail", OrganizeDetailModeRun, OrganizeDetailModeEnter, OrganizeDetailModeExit); ModeProcessor.addMode("OrganizeList", OrganizeListModeRun, OrganizeListModeEnter, OrganizeListModeExit); ModeProcessor.addMode("OrganizeListDetail", OrganizeListDetailModeRun, OrganizeListDetailModeEnter, OrganizeListDetailModeExit); FocusBanner = ShipStates[0]; UIRebellionOrgaizeShipBanner[] shipStates = ShipStates; foreach (UIRebellionOrgaizeShipBanner uIRebellionOrgaizeShipBanner in shipStates) { uIRebellionOrgaizeShipBanner.SetOnClick(OnClickBanner); } BannerFocusAnim(isEnable: true); OrganizeMng = new OrganizeManager(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.AreaId); StrategyTopTaskManager.Instance.setActiveStrategy(isActive: false); SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; SingletonMonoBehaviour <Live2DModel> .Instance.Disable(); ListParent.SetBackButtonEnable(isEnable: false); StrategyTopTaskManager.Instance.UIModel.HowToStrategy.isForceShow(); isInitialize = false; }
private void Start() { StartCoroutine(ManualGCCollection()); ShipModel[] shipList = new OrganizeManager(1).GetShipList(); List <ShipModel> list = new List <ShipModel>(); list.AddRange(shipList); mUIScrollShipListParent.Initialize(list.ToArray()); UpdateDebugLabel(); mUIScrollShipListParent.SetOnUIScrollListParentAction(delegate(ActionType actionType, UIScrollListParent <ShipModel, UIScrollShipListChild> calledOjbect, UIScrollListChild <ShipModel> child) { switch (actionType) { case ActionType.OnTouch: Debug.Log("Called ListItemTouch Name:" + child.Model.ToString()); break; case ActionType.OnButtonSelect: Debug.Log("Called ListItemSelect" + child.Model.ToString()); break; case ActionType.OnChangeFocus: case ActionType.OnChangeFirstFocus: Debug.Log("Called OnChangeFocus" + child.Model.ToString()); mUIScrollListShipInfo.Initialize(child.Model); break; } }); mKeyController = new KeyControl(); mUIScrollShipListParent.SetKeyController(mKeyController); }
public virtual void UpdateButton(bool isLeft, OrganizeManager manager = null) { if (!((manager == null) ? this.IsValidShip() : manager.IsValidShip(this.ship.MemId))) { return; } if (!((manager == null) ? this.IsValidUnset() : manager.IsValidUnset(this.ship.MemId))) { return; } if (isLeft && this.buttonManager.nowForcusButton != this.LeftButton) { this.RightButton.SetState(UIButtonColor.State.Normal, true); this.LeftButton.SetState(UIButtonColor.State.Hover, true); this.buttonManager.nowForcusButton = this.LeftButton; SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); } else if (!isLeft && this.buttonManager.nowForcusButton != this.RightButton) { this.RightButton.SetState(UIButtonColor.State.Hover, true); this.LeftButton.SetState(UIButtonColor.State.Normal, true); this.buttonManager.nowForcusButton = this.RightButton; SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); } }
private void SetDeckShips(int DeckNo, List <int> memIDs) { OrganizeManager organizeManager = new OrganizeManager(1); for (int i = 0; i < memIDs.Count; i++) { organizeManager.ChangeOrganize(DeckNo, i, memIDs[i]); } }
private bool OnDragDropRelease(OrganizeBannerManager target) { OrganizeManager organizeManager = OrganizeTaskManager.logicManager; DeckModel currentDeck = this.deckSwitchManager.currentDeck; ShipModel ship = target.ship; ShipModel ship2 = this._uiDragDropItem.ship; if (organizeManager.ChangeOrganize(currentDeck.Id, target.number - 1, ship2.MemId)) { target.setBanner(ship2, true, null, false); this._uiDragDropItem.setBanner(ship, true, delegate { this.OnDragDropEnd(); }, false); } return(true); }
private bool OnDragDropRelease(OrganizeBannerManager target) { OrganizeManager organizeManager = OrganizeTaskManager.logicManager; DeckModel currentDeck = deckSwitchManager.currentDeck; ShipModel ship = target.ship; ShipModel ship2 = _uiDragDropItem.ship; if (organizeManager.ChangeOrganize(currentDeck.Id, target.number - 1, ship2.MemId)) { target.setBanner(ship2, openAnimation: true, null); _uiDragDropItem.setBanner(ship, openAnimation: true, delegate { OnDragDropEnd(); }); } return(true); }
private IEnumerator Start() { _clsTasks = base.gameObject.SafeGetComponent <SceneTasksMono>(); _mainObj = GameObject.Find("OrganizeRoot").gameObject; GameObject task = _mainObj.transform.FindChild("Task").gameObject; _clsTop = ((Component)task.transform.FindChild("TaskTop")).GetComponent <TaskOrganizeTop>(); _clsDetail = ((Component)task.transform.FindChild("TaskDetail")).GetComponent <TaskOrganizeDetail>(); _clsList = ((Component)task.transform.FindChild("TaskList")).GetComponent <TaskOrganizeList>(); _clsListDetail = ((Component)task.transform.FindChild("TaskListDetail")).GetComponent <TaskOrganizeListDetail>(); _clsTasks.Init(); _iPhase = (_iPhaseReq = OrganizePhase.Phase_ST); logicManager = new OrganizeManager(SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID); _clsDetail.FirstInit(); _clsList.FirstInit(); _clsListDetail.FirstInit(); _clsTop.FirstInit(); isRun = false; yield return(StartCoroutine(Util.WaitEndOfFrames(3))); SingletonMonoBehaviour <UIPortFrame> .Instance.CircleUpdateInfo(logicManager); BGMFileInfos sceneBGM = (BGMFileInfos)logicManager.UserInfo.GetPortBGMId(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID); SoundUtils.SwitchBGM(sceneBGM); SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(null, isLockTouchOff : false); yield return(new WaitForSeconds(0.2f)); _clsTop.ShowBanner(); yield return(new WaitForSeconds(0.4f)); if (!SingletonMonoBehaviour <TutorialGuideManager> .Instance.CheckAndShowFirstTutorial(logicManager.UserInfo.Tutorial, TutorialGuideManager.TutorialID.Organize, null, delegate { SingletonMonoBehaviour <UIShortCutMenu> .Instance.CloseMenu(); SingletonMonoBehaviour <UIShortCutMenu> .Instance.LockTouchControl(isEnable: false); _clsTop.isControl = true; })) { SingletonMonoBehaviour <UIShortCutMenu> .Instance.LockTouchControl(isEnable : false); } isRun = true; yield return(null); }
private IEnumerator TEST_StartProductionCoroutine(object o, Action onFinished) { ShipModel[] shipModels = new OrganizeManager(1).GetShipList(); ShipModel[] array = shipModels; foreach (ShipModel ship in array) { ShipExpModel shipExpInfo = new ShipExpModel(1, ship, 1, new List <int> { 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11 }); IEnumerator startProductionShipResult = StartProductionShipResult(ship, shipExpInfo, default(PowUpInfo)); yield return(StartCoroutine(startProductionShipResult)); } if (onFinished != null) { SoundUtils.PlaySE(SEFIleInfos.CommonEnter1); onFinished(); } }
public virtual void UpdateButton(bool isLeft, OrganizeManager manager = null) { if ((manager?.IsValidShip(ship.MemId) ?? IsValidShip()) && (manager?.IsValidUnset(ship.MemId) ?? IsValidUnset())) { if (isLeft && buttonManager.nowForcusButton != LeftButton) { RightButton.SetState(UIButtonColor.State.Normal, immediate: true); LeftButton.SetState(UIButtonColor.State.Hover, immediate: true); buttonManager.nowForcusButton = LeftButton; SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); } else if (!isLeft && buttonManager.nowForcusButton != RightButton) { RightButton.SetState(UIButtonColor.State.Hover, immediate: true); LeftButton.SetState(UIButtonColor.State.Normal, immediate: true); buttonManager.nowForcusButton = RightButton; SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove); } } }
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 OnDestroy() { ShipStates = null; key = null; FocusBanner = null; SupplyMng = null; RepairMng = null; OrganizeMng = null; ModeProcessor = null; dialogKeyController = null; repairDockModel = null; Prefab_RepairConfim = null; repairConfim = null; Prefab_RepairKitConfim = null; repairKitConfim = null; Prefab_OrganizeDetailMng = null; Prefab_OrganizeList = null; OrganizeDetailMng = null; DeckNoIcon = null; DeckNoLabel = null; ListSelectShipModel = null; CurrentDeck = null; }
private bool OnDragDropRelease(OrganizeBannerManager target) { if (target == null || _uiDragDropItem == null) { Debug.LogWarning(" DragDrop NULL"); return(false); } OrganizeManager logicManager = OrganizeTaskManager.logicManager; DeckModel currentDeck = deckSwitchManager.currentDeck; ShipModel ship = target.ship; ShipModel ship2 = _uiDragDropItem.ship; if (logicManager.ChangeOrganize(currentDeck.Id, target.number - 1, ship2.MemId)) { target.setBanner(ship2, openAnimation: true, null); _uiDragDropItem.setBanner(ship, openAnimation: true, delegate { OnDragDropEnd(); }); OrganizeTaskManager.Instance.GetListTask().UpdateList(); } return(true); }
public void SetCustomMode() { this.dialogKeyController = App.OnlyController; this.dialogKeyController.IsRun = false; this.BauxiSuccess.get_transform().localPositionX(1000f); this.BauxiField.get_transform().localPositionX(1000f); this.key = new KeyControl(0, 5, 0.4f, 0.1f); this.key.isLoopIndex = false; this.key.setChangeValue(-2f, 1f, 2f, -1f); App.OnlyController = this.key; this.BauxiSuccess.get_transform().get_parent().SetActive(true); this.ModeProcessor = base.GetComponent <ModeProcessor>(); this.ModeProcessor.addMode("Top", new ModeProc.Mode.ModeRun(this.TopModeRun), new ModeProc.Mode.ModeChange(this.TopModeEnter), new ModeProc.Mode.ModeChange(this.TopModeExit)); this.ModeProcessor.addMode("SupplyConfirm", new ModeProc.Mode.ModeRun(this.SupplyConfirmModeRun), new ModeProc.Mode.ModeChange(this.SupplyConfirmModeEnter), new ModeProc.Mode.ModeChange(this.SupplyConfirmModeExit)); this.ModeProcessor.addMode("RepairConfirm", new ModeProc.Mode.ModeRun(this.RepairConfirmModeRun), new ModeProc.Mode.ModeChange(this.RepairConfirmModeEnter), new ModeProc.Mode.ModeChange(this.RepairConfirmModeExit)); this.ModeProcessor.addMode("RepairKitConfirm", new ModeProc.Mode.ModeRun(this.RepairKitConfirmModeRun), new ModeProc.Mode.ModeChange(this.RepairKitConfirmModeEnter), new ModeProc.Mode.ModeChange(this.RepairKitConfirmModeExit)); this.ModeProcessor.addMode("OrganizeDetail", new ModeProc.Mode.ModeRun(this.OrganizeDetailModeRun), new ModeProc.Mode.ModeChange(this.OrganizeDetailModeEnter), new ModeProc.Mode.ModeChange(this.OrganizeDetailModeExit)); this.ModeProcessor.addMode("OrganizeList", new ModeProc.Mode.ModeRun(this.OrganizeListModeRun), new ModeProc.Mode.ModeChange(this.OrganizeListModeEnter), new ModeProc.Mode.ModeChange(this.OrganizeListModeExit)); this.ModeProcessor.addMode("OrganizeListDetail", new ModeProc.Mode.ModeRun(this.OrganizeListDetailModeRun), new ModeProc.Mode.ModeChange(this.OrganizeListDetailModeEnter), new ModeProc.Mode.ModeChange(this.OrganizeListDetailModeExit)); this.FocusBanner = this.ShipStates[0]; UIRebellionOrgaizeShipBanner[] shipStates = this.ShipStates; for (int i = 0; i < shipStates.Length; i++) { UIRebellionOrgaizeShipBanner uIRebellionOrgaizeShipBanner = shipStates[i]; uIRebellionOrgaizeShipBanner.SetOnClick(new Action <int>(this.OnClickBanner)); } this.BannerFocusAnim(true); this.OrganizeMng = new OrganizeManager(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.AreaId); StrategyTopTaskManager.Instance.setActiveStrategy(false); SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; SingletonMonoBehaviour <Live2DModel> .Instance.Disable(); this.ListParent.SetBackButtonEnable(false); StrategyTopTaskManager.Instance.UIModel.HowToStrategy.isForceShow(); this.isInitialize = false; }
private static void DebugInit() { Diagnostics.enableHUD = true; Debug_Mod debug_Mod = new Debug_Mod(); List <int> list = new List <int>(); Debug.Log("ADD SHIP"); debug_Mod.Add_Ship(list); list.Add(330); list.Add(24); list.Add(175); list.Add(117); list.Add(75); list.Add(321); list.Add(182); for (int i = 100; i < 110; i++) { list.Add(i); } debug_Mod.Add_Ship(list); OrganizeManager organizeManager = new OrganizeManager(1); debug_Mod.Add_Deck(2); debug_Mod.Add_Deck(3); debug_Mod.Add_Deck(4); debug_Mod.Add_Deck(5); debug_Mod.Add_Deck(6); ManagerBase.initialize(); organizeManager.ChangeOrganize(1, 2, 2); Dictionary <int, int> dictionary = new Dictionary <int, int>(); for (int j = 0; j < 100; j++) { if ((1 <= j && j <= 3) || (10 <= j && j <= 12) || (49 <= j && j <= 59)) { dictionary[j] = 1; } dictionary[54] = 0; dictionary[59] = 10; } debug_Mod.Add_UseItem(dictionary); debug_Mod.Add_Materials(enumMaterialCategory.Fuel, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Bull, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Steel, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Bauxite, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Repair_Kit, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Dev_Kit, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Revamp_Kit, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Build_Kit, 2000); debug_Mod.Add_Coin(80000); List <int> list2 = new List <int>(); list2.Add(1); list2.Add(1); list2.Add(1); list2.Add(1); list2.Add(1); list2.Add(1); for (int k = 0; k < 30; k++) { list2.Add(14); } for (int l = 1; l < 100; l++) { list2.Add(l); } for (int m = 0; m < 30; m++) { list2.Add(25); } for (int n = 0; n < 6; n++) { list2.Add(42); } for (int num = 1; num < 100; num++) { Debug_Mod.ChangeSlotLevel(list2[num], 9); } debug_Mod.Add_SlotItem(list2); DebugUtils.SLog("DEBUG_MOD OK"); }
static void Main(string[] args) { AppInitializeManager.Awake(); App.InitSystems(); // 26 fuso // var bgm = Mst_DataManager.Instance.GetMstBgm(); // var cabinet = Mst_DataManager.Instance.GetMstCabinet(); // var payitem = Mst_DataManager.Instance.GetPayitem(); // var furnitureText = Mst_DataManager.Instance.GetFurnitureText(); Debug_Mod debug_Mod = new Debug_Mod(); List <int> list = new List <int>(); Debug.Log("ADD SHIP"); debug_Mod.Add_Ship(list); list.Add(330); // Akizuki Kai list.Add(24); // Ooi list.Add(175); // Z3 list.Add(117); // Zuihou Kai list.Add(75); // Hiyou list.Add(321); // Ooyodo Kai list.Add(182); // Akashi for (int i = 100; i < 110; i++) { // 100 Tama // 101 Kiso // 102 Chitose // 103 Chiyoda // 104 Chitose Kai // 105 Chiyoda Kai // 106 Chitose A // 107 Chiyoda A // 108 Chitose-Kou // 109 Chiyoda-Kou list.Add(i); } debug_Mod.Add_Ship(list); var userData = Comm_UserDatas.Instance; // var ui = (new LocalManager()).UserInfo; // LocalManager localManager = new LocalManager(); OrganizeManager organizeManager = new OrganizeManager(1); debug_Mod.Add_Deck(2); debug_Mod.Add_Deck(3); debug_Mod.Add_Deck(4); debug_Mod.Add_Deck(5); debug_Mod.Add_Deck(6); ManagerBase.initialize(); organizeManager.ChangeOrganize(1, 2, 2); organizeManager.ChangeOrganize(1, 3, 3); Dictionary <int, int> dictionary = new Dictionary <int, int>(); for (int j = 0; j < 100; j++) { if ((1 <= j && j <= 3) || (10 <= j && j <= 12) || (49 <= j && j <= 59)) { dictionary[j] = 1; } dictionary[54] = 0; dictionary[59] = 10; } debug_Mod.Add_UseItem(dictionary); debug_Mod.Add_Materials(enumMaterialCategory.Fuel, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Bull, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Steel, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Bauxite, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Repair_Kit, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Dev_Kit, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Revamp_Kit, 2000); debug_Mod.Add_Materials(enumMaterialCategory.Build_Kit, 2000); debug_Mod.Add_Coin(80000); List <int> list2 = new List <int>(); list2.Add(1); list2.Add(1); list2.Add(1); list2.Add(1); list2.Add(1); list2.Add(1); for (int k = 0; k < 30; k++) { list2.Add(14); } for (int l = 1; l < 100; l++) { list2.Add(l); } for (int m = 0; m < 30; m++) { list2.Add(25); } for (int n = 0; n < 6; n++) { list2.Add(42); } for (int num = 1; num < 100; num++) { Debug_Mod.ChangeSlotLevel(list2[num], 9); } debug_Mod.Add_SlotItem(list2); DebugUtils.SLog("DEBUG_MOD OK"); StrategyTopTaskManager top = new StrategyTopTaskManager(); // top.Awake2(); StrategyMapManager strategyMapManager = new StrategyMapManager(); SortieManager sortieManager = strategyMapManager.SelectArea(1); SortieMapManager sortieMapManager = sortieManager.GoSortie(1, 11); SortieBattleManager sortieBattleManager = sortieMapManager.BattleStart(BattleFormationKinds1.TanJuu); BattleResultModel battleResultModel = sortieBattleManager.GetBattleResult(); //SortieMapManager _clsSortieMapManager = sortieManager.GoSortie(1, 11); //SortieMapManager _clsSortieMapManager = sortieManager.GoSortie(1, 14); //SortieBattleManager _clsSortieBattleManager = _clsSortieMapManager.BattleStart(BattleFormationKinds1.TanJuu); // var a = KCV.BattleCut.BattleCutPhase.Command; // CommandPhaseModel _clscommandPhaseModel = _clsSortieBattleManager.GetCommandPhaseModel(); // var a = Server_Controllers.BattleLogic.ExecBattleKinds.DayToNight; // _clsSortieBattleManager.StartDayToNightBattle(); //BattleResultModel res = _clsSortieBattleManager.GetBattleResult(); Console.WriteLine("hajimarimasu"); }