//主线任务打开副本界面 public static void StartTaskCampaignFinding(string taskid, bool isMainCampaign) { if (AllianceUtil.IsInTransferDart) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_TaskSystem_5855")); return; } if (isMainCampaign) { string campaign_name = Hotfix_LT.Data.TaskTemplateManager.Instance.GetTask(taskid).target_parameter_1; Hotfix_LT.Data.LostMainCampaignsTemplate campaignData = Hotfix_LT.Data.SceneTemplateManager.Instance.GetLostMainCampaignTplById(campaign_name); if (!LTInstanceUtil.GetChapterIsOpen(int.Parse(campaignData.ChapterId))) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_TaskSystem_17027")); return; } Action act = new Action(delegate { LTMainInstanceHudController.EnterInstance(campaignData.ChapterId); }); UIStack.Instance.ShowLoadingScreen(act, false, true, true); } else { Hotfix_LT.Data.FuncTemplate ft = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10065); if (ft != null && !ft.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ft.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("LTChallengeInstanceSelectHud"); } }
public void OnMultiBlitzBtnClick() { if (campaignId <= 0) { return; } Hotfix_LT.Data.FuncTemplate ft = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10077); if (ft != null && !ft.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ft.GetConditionStr()); return; } int vaildTimes = IsVigorEnough(10); if (vaildTimes <= 0) { BalanceResourceUtil.TurnToVigorGotView(); return; } if (isRequest) { return; } InputBlockerManager.Instance.Block(InputBlockReason.FUSION_BLOCK_UI_INTERACTION, 0.5f); isRequest = true; if (mCallback != null) { mCallback(); } LTInstanceMapModel.Instance.RequestMainBlitzCampaign(campaignId, vaildTimes, delegate { isRequest = false; List <LTMainInstanceBlitzData> list = LTInstanceUtil.GetBlitzData(); for (int i = 0; i < list.Count; ++i) { FusionTelemetry.ItemsUmengCurrency(list[i].ItemList, "主线扫荡"); } Hashtable data = Johny.HashtablePool.Claim(); data.Add("list", list); data.Add("num", 10); data.Add("ItemId", mTargetItemId); GlobalMenuManager.Instance.Open("LTMainInstanceBlitzView", data); if (!string.IsNullOrEmpty(mTargetItemId)) { controller.Close(); } }); }
//是否显示周月日礼包页签 public bool IsShowMoreGiftCate() { Hotfix_LT.Data.FuncTemplate ft = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10089); bool isconditionOk = false; if (ft != null && ft.IsConditionOK()) { return(true); } return((CumulativeRecharge >= ShowChargeGiftLimit) || isconditionOk); }
public void OnGotoBtnClick() { if (curActData.need_alliance && AlliancesManager.Instance.Account.State != eAllianceState.Joined) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_LTDailyHudController_10226")); return; } if (string.IsNullOrEmpty(curActData.nav_parameter)) { controller.Close(); return; } int funcID = 0; int.TryParse(curActData.nav_parameter, out funcID); if (funcID != 0) { Hotfix_LT.Data.FuncTemplate funcTem = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(funcID); if (funcTem != null) { Hotfix_LT.Data.FuncTemplateManager.OpenFunc(funcTem.id, funcTem.parameter); //GlobalMenuManager.Instance.Open(funcTem.ui_model, funcTem.parameter); } else { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_LTDailyHudController_10933")); EB.Debug.LogError(string.Format("LTDaily GotoFuncID is Error, Data is Null! funcID = {0}", funcID)); } return; } string[] strs = curActData.nav_parameter.Split(';'); if (strs.Length < 2) { EB.Debug.LogError(string.Format("LTDaily NavParameter is Error, Length less than 2! activityID = {0}, param = {1}", curActData.id, curActData.nav_parameter)); } else { if (AllianceUtil.GetIsInTransferDart(null)) { return; } controller.Close(); if (strs[1].CompareTo("EnemySpawns_11") == 0) { //世界boss特殊处理,需要走到的是目标区域,但是配置的是怪的模型 strs[1] = "AreaTrigger_E"; } WorldMapPathManager.Instance.StartPathFindToNpcFly(MainLandLogic.GetInstance().CurrentSceneName, strs[0], strs[1]); } }
public void OnExpFBBtnClick() { Hotfix_LT.Data.FuncTemplate ft = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10021); if (!ft.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ft.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("LTResourceInstanceUI", "Exp"); controller.Close(); }
public void OnClickPartnerUpgradeButton() { controller.Close(); InputBlockerManager.Instance.Block(InputBlockReason.FUSION_BLOCK_UI_INTERACTION, 0.5f); Hotfix_LT.Data.FuncTemplate ft = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10050); if (!ft.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ft.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("LTPartnerHud", param); }
public override void Start() { m_FuncTpl = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(m_FuncId); IsDayLimitOpenFunc = m_FuncTpl.condition.Contains("d"); if (m_FuncTpl == null) { EB.Debug.LogWarning("Can Not Find Func = {0}", m_FuncId); return; } OnLevelChange(null); string iconName = m_FuncTpl.iconName; if (m_FuncTpl.iconName.Contains("Icons_Renwu")) { iconName = m_FuncTpl.iconName.Replace("Renwu", "Renwu2"); } else if (m_FuncTpl.iconName.Contains("Icons_Huoban")) { iconName = m_FuncTpl.iconName.Replace("Huoban", "Huoban2"); } m_Sprite.spriteName = iconName; LTUIUtil.SetText(m_Label, m_FuncTpl.display_name); UIButton btn = m_Sprite.GetComponent <UIButton>(); if (btn != null) { btn.normalSprite = iconName; if (IsNpcFunc) { btn.onClick.Add(new EventDelegate(OnNpcFuncBtnClick)); } else { if (btn.onClick.Count == 0) { btn.onClick.Add(new EventDelegate(OnBtnClick)); } } } DoCondition(); if (IsDayLimitOpenFunc) { Messenger.AddListener(Hotfix_LT.EventName.FuncOpenBtnReflash, OnReflash); } }
public void OnGotoPartnersIllustratedHandbook() { Hotfix_LT.Data.FuncTemplate func = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10049); if (!func.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, func.GetConditionStr()); return; } sDefeatSkip = true; GlobalMenuManager.Instance.ClearCache(); sDefeatSkipPanel = "PartnerHandbookHudView"; sDefeatSkipParam = null; _battleResultScreenController.OnContinueClick(); }
public static void UpdateTaskType() { Hotfix_LT.Data.FuncTemplate m_FuncTpl = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10052); if (!m_FuncTpl.IsConditionOK()) { //LTRedPointSystem.Instance.SetRedPointNodeNum(RedPointConst.daytask,0); //LTRedPointSystem.Instance.SetRedPointNodeNum(RedPointConst.weektask,0); //LTRedPointSystem.Instance.SetRedPointNodeNum(RedPointConst.maintask,0); return; } for (int i = 0; i < TypeDic.Count; ++i) { GetIsHaveReward(i); } }
public void UpdateUI() { mNoticeFuncTbl = Data.FuncTemplateManager.Instance.RefreshNoticeList(); if (mNoticeFuncTbl.Count > 1) { curFuncTemplate = mNoticeFuncTbl[0]; int curNum = 0; int TargetNum = 0; if (curFuncTemplate.openType == Data.FuncOpenType.level) { int level = curFuncTemplate.conditionParam; if (level > 0 && level < 99) { curNum = currentLevel; TargetNum = level; LTUIUtil.SetText(LevelLabel, curFuncTemplate.GetConditionStrShort()); if (curNum >= TargetNum) { SetDataId(); } } } else if (curFuncTemplate.openType == Data.FuncOpenType.maincampaign) { int t_camid = curFuncTemplate.conditionParam; var t_targetcampaign = Data.SceneTemplateManager.Instance.GetLostMainCampaignTplById(t_camid.ToString()); LTUIUtil.SetText(LevelLabel, string.Format(EB.Localizer.GetString("ID_FUNC_OPENTIP_2"), t_targetcampaign.Name)); //int maxCap = LTInstanceUtil.GetCurMaxCompleteCampaignId(olddata as Hashtable); //var t_currcampaign = Data.SceneTemplateManager.Instance.GetLostMainCampaignTplById(maxCap.ToString()); //TargetNum = t_targetcampaign.totalcampaign; //curNum = t_currcampaign == null?0:t_currcampaign.totalcampaign; } //UiProgressBar.value = (float)curNum / TargetNum; //ProgressBarLabel.text = string.Format("{0}/{1}", curNum, TargetNum); LTUIUtil.SetText(NameLabel, curFuncTemplate.display_name); Icon.spriteName = curFuncTemplate.iconName; DescLabel.text = curFuncTemplate.discript; return; } mDL.gameObject.SetActive(false); }
//关闭特效 public void SetFxState(bool isShow) { if (isShow) { m_FuncTpl = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10065); if (!m_FuncTpl.IsConditionOK()) { BgSprite.color = new Color(1, 0, 1, 1); } else { BgSprite.color = new Color(1, 1, 1, 1); Fx.CustomSetActive(true); } } else { Fx.CustomSetActive(false); } }
public void HideBossUI() { for (int i = 0; i < BossAreaList.Count; ++i) { BossAreaList[i].CustomSetActive(false); } for (int i = 0; i < MainLandAreaList.Count; ++i) { MainLandAreaList[i].CustomSetActive(true); } WorldBossRankUITran.gameObject.CustomSetActive(false); Hotfix_LT.Data.FuncTemplate FlagAreaft = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10074); FlagAreaTran.gameObject.CustomSetActive((FlagAreaft != null && FlagAreaft.IsConditionOK() || FlagAreaft == null)); isOpen = false; if (LTMainMenuHudController.Instance != null) { LTMainMenuHudController.Instance.UpdateTopFunc(); } }
static void ProcessSpecialActionTaskRunning(string taskid) { Hotfix_LT.Data.TaskTemplate taskTpl = Hotfix_LT.Data.TaskTemplateManager.Instance.GetTask(taskid); if (taskTpl == null) { return; } int taskspecialtype = 0;; if (!int.TryParse(taskTpl.target_parameter_1, out taskspecialtype)) { return; } switch ((eTaskSpecialType)taskspecialtype) { case eTaskSpecialType.FINISH_CAMPAIGN: if (AllianceUtil.IsInTransferDart) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_TaskSystem_5855")); return; } GlobalMenuManager.Instance.Open("LTInstanceMapHud"); break; case eTaskSpecialType.ALLIACE_DONATE: LegionLogic.GetInstance().ShowUI(ChoiceState.Donate); break; case eTaskSpecialType.GOLD_CAMPAIGN: if (AllianceUtil.IsInTransferDart) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_TaskSystem_5855")); return; } Hotfix_LT.Data.FuncTemplate ftemp = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10020); if (ftemp != null && !ftemp.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ftemp.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("LTResourceInstanceUI", "Gold"); break; case eTaskSpecialType.WORLD_CHAT: GlobalMenuManager.Instance.Open("ChatHudView", null); break; case eTaskSpecialType.LADDER: StartTaskAcceptNpcPathFinding(taskid); break; case eTaskSpecialType.ARENA: StartTaskAcceptNpcPathFinding(taskid); break; case eTaskSpecialType.BUY_GOLD: GlobalMenuManager.Instance.Open("LTResourceShopUI"); break; case eTaskSpecialType.GAMBLE: GlobalMenuManager.Instance.Open("LTDrawCardTypeUI"); break; case eTaskSpecialType.YABIAO: StartTaskAcceptNpcPathFinding(taskid); break; case eTaskSpecialType.UlTIMATE: StartTaskAcceptNpcPathFinding(taskid); break; case eTaskSpecialType.HANT: StartTaskAcceptNpcPathFinding(taskid); break; case eTaskSpecialType.LADDER_CHALLENGE: StartTaskAcceptNpcPathFinding(taskid); break; case eTaskSpecialType.BUY_VIGOR: GlobalMenuManager.Instance.Open("LTResourceShopUI"); break; case eTaskSpecialType.BUY_ITEM: GlobalMenuManager.Instance.Open("LTStoreUI"); break; case eTaskSpecialType.PK: GlobalMenuManager.Instance.ComebackToMianMenu(); break; case eTaskSpecialType.CHALLENGE_CAMPAIGN: if (AllianceUtil.IsInTransferDart) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_TaskSystem_5855")); return; } GlobalMenuManager.Instance.Open("LTChallengeInstanceSelectHud"); break; case eTaskSpecialType.SEND_VIGOR: Hotfix_LT.Data.FuncTemplate ft3 = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10057); if (ft3 != null && !ft3.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ft3.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("FriendHud", null); break; case eTaskSpecialType.COST_DIAMOND: GlobalMenuManager.Instance.Open("LTDrawCardTypeUI", DrawCardType.hc); break; case eTaskSpecialType.EQUIP_INTENSIFY: Hotfix_LT.Data.FuncTemplate ft2 = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10050); if (ft2 != null && !ft2.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ft2.GetConditionStr()); return; } InputBlockerManager.Instance.Block(InputBlockReason.FUSION_BLOCK_UI_INTERACTION, 0.5f); GlobalMenuManager.Instance.Open("LTPartnerEquipmentUI", LTPartnerDataManager.Instance.GetOwnPartnerList()[0]); break; case eTaskSpecialType.CLASH_OF_HEROES: StartTaskAcceptNpcPathFinding(taskid); break; case eTaskSpecialType.EXP_CAMPAIGN: if (AllianceUtil.IsInTransferDart) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_TaskSystem_5855")); return; } Hotfix_LT.Data.FuncTemplate ft = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10021); if (ft != null && !ft.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ft.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("LTResourceInstanceUI", "Exp"); break; case eTaskSpecialType.CHALLENGE_INSTANCE: if (AllianceUtil.IsInTransferDart) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_TaskSystem_5855")); return; } Hotfix_LT.Data.FuncTemplate f_ch = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10065); if (f_ch != null && !f_ch.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, f_ch.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("LTChallengeInstanceSelectHud"); break; case eTaskSpecialType.LEGION_INSSTANCE: if (!LegionModel.GetInstance().isJoinedLegion) { LegionLogic.GetInstance().ShowUI(); } else { GlobalMenuManager.Instance.Open("LTLegionFBUI"); } break; case eTaskSpecialType.WORLD_BOSS: if (AllianceUtil.GetIsInTransferDart(null)) { return; } //配置npc GlobalMenuManager.Instance.CloseMenu("NormalTaskView"); string[] strs = new string[2] { "s001a", "AreaTrigger_E" }; WorldMapPathManager.Instance.StartPathFindToNpcFly(MainLandLogic.GetInstance().CurrentSceneName, strs[0], strs[1]); break; case eTaskSpecialType.PARENER_ADVANCED: Hotfix_LT.Data.FuncTemplate ft4 = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10050); if (ft4 != null && !ft4.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ft4.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("LTPartnerView", "Develop_Upgrade"); break; case eTaskSpecialType.PARENER_UPLEVEL: Hotfix_LT.Data.FuncTemplate ft5 = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10050); if (ft5 != null && !ft5.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ft5.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("LTPartnerView", "Develop"); break; default: break; } }
//如果处于进行状态 则导航到目的(NPC,场景,副本,某某功能) public static void ProcessTaskRunning(string taskid) { Hotfix_LT.Data.TaskTemplate taskTpl = Hotfix_LT.Data.TaskTemplateManager.Instance.GetTask(taskid); switch (taskTpl.target_type) { case 103: StartTaskCampaignFinding(taskid, false); break; case 2: StartTaskCampaignFinding(taskid, true); break; case 301: //301 = 增加主线(累计计数型) int target_parameter = int.Parse(taskTpl.target_parameter_1); switch (target_parameter) { case 1: //主角等级 GlobalMenuManager.Instance.Open("LTInstanceMapHud", null); break; case 2: //征战关卡获得星数 if (AllianceUtil.IsInTransferDart) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_TaskSystem_5855")); return; } GlobalMenuManager.Instance.Open("LTInstanceMapHud", null); break; case 3: //夺宝奇兵累计杀怪数 GlobalMenuManager.Instance.ComebackToMianMenu(); break; case 4: //累计军团护送次数 StartTaskAcceptNpcPathFinding(taskid); break; case 5: //累计军团援助次数 GlobalMenuManager.Instance.ComebackToMianMenu(); break; case 6: //累计军团拦截次数 StartTaskAcceptNpcPathFinding(taskid); break; case 7: //累计幸运悬赏次数 StartTaskAcceptNpcPathFinding(taskid); break; case 8: //累计英雄交锋次数 StartTaskAcceptNpcPathFinding(taskid); break; case 9: //累计角斗场次数 StartTaskAcceptNpcPathFinding(taskid); break; case 10: //累计伙伴上阵图鉴数量 Hotfix_LT.Data.FuncTemplate func = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10049); if (!func.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, func.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("PartnerHandbookHudView"); break; case 11: //玩家拥有好友数量 { Hotfix_LT.Data.FuncTemplate ftemp = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10057); if (ftemp != null && !ftemp.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ftemp.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("FriendHud", null); } break; case 12: //玩家拥有伙伴数量 GlobalMenuManager.Instance.Open("LTDrawCardTypeUI"); break; case 13: //伙伴总星级 Hotfix_LT.Data.FuncTemplate ft = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10050); if (ft != null && !ft.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ft.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("LTPartnerView", "Develop_StarUp"); break; case 14: //累计军团预赛获得分数 LegionLogic.GetInstance().ShowUI(); break; case 15: //累计购买金币次数 GlobalMenuManager.Instance.Open("LTResourceShopUI"); break; case 16: //累计购买体力次数 GlobalMenuManager.Instance.Open("LTResourceShopUI"); break; case 17: //累计购买伙伴经验次数 GlobalMenuManager.Instance.Open("LTResourceShopUI"); break; case 18: //累计购买入场券次数 GlobalMenuManager.Instance.Open("LTResourceShopUI"); break; case 19: //累计购买金币抽卡次数 GlobalMenuManager.Instance.Open("LTDrawCardTypeUI", DrawCardType.gold); break; case 20: //累计购买钻石抽卡次数 GlobalMenuManager.Instance.Open("LTDrawCardTypeUI", DrawCardType.hc); break; case 21: //累计完成日常任务次数 GlobalMenuManager.Instance.Open("NormalTaskView", null); break; case 22: //累计天梯胜利次数 StartTaskAcceptNpcPathFinding(taskid); break; case 23: //累计军团捐献获得军团币数量 LegionLogic.GetInstance().ShowUI(ChoiceState.Donate); break; case 24: //累计军团护送次数 StartTaskAcceptNpcPathFinding(taskid); break; default: EB.Debug.LogError("Main Task target_parameter_1 Error ,target_parameter_1={0}", target_parameter); break; } break; case 302: int target_parameter_other = int.Parse(taskTpl.target_parameter_1); switch (target_parameter_other) { case 1: //玩家完美通关金币副本XX难度 { if (AllianceUtil.IsInTransferDart) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_TaskSystem_5855")); return; } Hotfix_LT.Data.FuncTemplate ftemp = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10020); if (ftemp != null && !ftemp.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ftemp.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("LTResourceInstanceUI", "Gold"); } break; case 2: //玩家完美通关经验副本XX难度 if (AllianceUtil.IsInTransferDart) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_TaskSystem_5855")); return; } Hotfix_LT.Data.FuncTemplate ftemp1 = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10021); if (ftemp1 != null && !ftemp1.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ftemp1.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("LTResourceInstanceUI", "Exp"); break; case 3: //玩家通关极限试练X-Y StartTaskAcceptNpcPathFinding(taskid); break; case 4: //玩家天梯达到XX段位 StartTaskAcceptNpcPathFinding(taskid); break; case 5: //玩家角斗场排名达到X StartTaskAcceptNpcPathFinding(taskid); break; case 6: //玩家爵位晋升为XX Hotfix_LT.Data.FuncTemplateManager.OpenFunc(10069); break; case 7: //玩家攻击城池累计伤害达到X GlobalMenuManager.Instance.Open("LTNationBattleEntryUI"); break; case 8: //玩家防守城池累计修理值达到X GlobalMenuManager.Instance.Open("LTNationBattleEntryUI"); break; case 9: //玩家X个图鉴评分等级评分达到Y Hotfix_LT.Data.FuncTemplate func = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10049); if (!func.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, func.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("PartnerHandbookHudView"); break; case 10: //玩家把X个伙伴升到Y级 Hotfix_LT.Data.FuncTemplate ft = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10050); if (ft != null && !ft.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ft.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("LTPartnerView", "Develop"); break; case 11: //玩家把X件装备强化到Y级 Hotfix_LT.Data.FuncTemplate ft1 = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10050); if (ft1 != null && !ft1.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ft1.GetConditionStr()); return; } InputBlockerManager.Instance.Block(InputBlockReason.FUSION_BLOCK_UI_INTERACTION, 0.5f); GlobalMenuManager.Instance.Open("LTPartnerEquipmentUI", LTPartnerDataManager.Instance.GetOwnPartnerList()[0]); break; case 12: //玩家把X个伙伴进阶到Y Hotfix_LT.Data.FuncTemplate ft2 = Hotfix_LT.Data.FuncTemplateManager.Instance.GetFunc(10050); if (ft2 != null && !ft2.IsConditionOK()) { MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, ft2.GetConditionStr()); return; } GlobalMenuManager.Instance.Open("LTPartnerView", "Develop_Upgrade"); break; case 13: //荣耀角斗场积分达到Y分 StartTaskAcceptNpcPathFinding(taskid); break; case 14: //天梯达到Y分 StartTaskAcceptNpcPathFinding(taskid); break; case 15: //战力达到Y GlobalMenuManager.Instance.Open("LTPartnerView", "Develop_Upgrade"); break; case 16: //荣耀角斗场获胜次数达到X场 StartTaskAcceptNpcPathFinding(taskid); break; case 17: //亚曼拉单次挑战伤害达到X StartTaskAcceptNpcPathFinding(taskid); break; case 18: //军团副本单次挑战获得宝箱数达到X个 LegionLogic.GetInstance().OpenLegionBossUI(); break; default: EB.Debug.LogError("Main Task target_parameter_1 Error ,target_parameter_1={0}", target_parameter_other); break; } break; case 7: //日常任务 ProcessSpecialActionTaskRunning(taskid); break; default: break; } }