private void OpenRewardModalMessage(MissionItem missionItem, bool isAll = false) { GameWebAPI.RespDataMS_MissionRewardLogic.Result[] result = ClassSingleton <MissionWebAPI> .Instance.MissionRewardLogicData.result; int num = 0; List <string> list = new List <string> { StringMaster.GetString("Mission-10") }; foreach (GameWebAPI.RespDataMS_MissionRewardLogic.Result result2 in result) { if (result2.viewFlg == "1") { int.TryParse(result2.assetCategoryId, out num); string assetTitle = DataMng.Instance().GetAssetTitle(result2.assetCategoryId, result2.assetValue); string assetNum = result2.assetNum; list.Add(string.Format(StringMaster.GetString("SystemItemCount"), assetTitle, assetNum)); } } string info = string.Join("\n", list.ToArray()); Action <int> action = delegate(int a) { RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON); APIRequestTask apirequestTask = ClassSingleton <MissionWebAPI> .Instance.AccessMissionInfoLogicAPI(); apirequestTask.Add(DataMng.Instance().RequestMyPageData(false)); this.StartCoroutine(apirequestTask.Run(delegate { if (int.Parse(missionItem.missionCategoryId) == 191 || int.Parse(missionItem.missionCategoryId) == 192) { PartsUpperCutinController.AnimeType playType = (!(missionItem.lastStepFlg == "1")) ? PartsUpperCutinController.AnimeType.StageClear : PartsUpperCutinController.AnimeType.MissionClear; Loading.Invisible(); this.cutinController.PlayAnimator(playType, delegate { this.RunReMissionInfoLogicAPIHelper(); }); } else { this.RunReMissionInfoLogicAPIHelper(); } }, delegate(Exception nop) { RestrictionInput.EndLoad(); this.ClosePanel(true); }, null)); }; string title = this.GetTitle(CMD_Mission.nowFocusType); this.stringBuilder.Append(title); this.stringBuilder.Append(StringMaster.GetString("MissionClearItemGet")); CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(action, "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage.Title = ((!isAll) ? StringMaster.GetString("Mission-07") : this.stringBuilder.ToString()); cmd_ModalMessage.Info = info; cmd_ModalMessage.AdjustSize(); this.stringBuilder.Length = 0; }
private void OnClickGetAll() { List <MissionItem> missionStateDataByTypeA = this.GetMissionStateDataByTypeA(CMD_Mission.nowFocusType); if (missionStateDataByTypeA.Count > 0) { this.RequestMissionRewardLogicAPI(missionStateDataByTypeA); } else { string title = this.GetTitle(CMD_Mission.nowFocusType); this.stringBuilder.Append(title); this.stringBuilder.Append(StringMaster.GetString("Mission-09")); CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(null, "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage.Title = this.stringBuilder.ToString(); cmd_ModalMessage.Info = StringMaster.GetString("MissionNotClear"); cmd_ModalMessage.AdjustSize(); this.stringBuilder.Length = 0; } }