private void OnClickRightBtn() { List <int> _tempList = m_MergeData[m_TeamId]; GameactivityTemplate _Data = (GameactivityTemplate)DataTemplate.GetInstance().m_GameactivityTable.getTableData(_tempList[0]); string[] jumpTypeArray = _Data.getJumpstype().Split('#'); if (int.Parse(jumpTypeArray[0]) == 1) { //弹出充值窗口 UI_HomeControler.Inst.AddUI(UI_QuikChargeMgr.UI_ResPath); } if (int.Parse(jumpTypeArray[0]) == 3) { //跳转到世界Boss GameObject go = UI_HomeControler.Inst.AddUI(UI_TestPanel.GetPath()); if (go) { go.GetComponent <UI_TestPanel>().GotoWorldBoss(); } OnClickReturnBtn(); } if (int.Parse(jumpTypeArray[0]) == 4) { //跳转到英雄招募 UI_HomeControler.Inst.AddUI(UI_Recruit.UI_ResPath); OnClickReturnBtn(); } if (int.Parse(jumpTypeArray[0]) == 5) { //跳转到遗迹宝藏 UI_HomeControler.Inst.AddUI(UI_Recruit.UI_ResPath); if (UI_Recruit.inst != null) { UI_Recruit.inst.OpenRelicBtn(); } OnClickReturnBtn(); } if (int.Parse(jumpTypeArray[0]) == 6) { UI_HomeControler.Inst.AddUI(UI_ShopMgr.UI_ResPath); UI_ShopMgr.SetCurShowTab(SHOP_TAB.SKIN); //跳转到商城时装 //UI_HomeControler.Inst.AddUI(UI_ShopMgr.UI_ResPath); //if (UI_ShopMgr.inst != null) //{ // UI_ShopMgr.inst.OnSkinToggleValueChanged(true); //} OnClickReturnBtn(); } if (int.Parse(jumpTypeArray[0]) == 7) { //跳转到商城礼包 UI_HomeControler.Inst.AddUI(UI_ShopMgr.UI_ResPath); UI_ShopMgr.SetCurShowTab(SHOP_TAB.GIFT); OnClickReturnBtn(); } if (int.Parse(jumpTypeArray[0]) == 8) { //跳转到商城道具 UI_HomeControler.Inst.AddUI(UI_ShopMgr.UI_ResPath); } if (int.Parse(jumpTypeArray[0]) == 9) { //跳转到神器 UI_HomeControler.Inst.AddUI(UI_Artifact.UI_ResPath); OnClickReturnBtn(); } if (int.Parse(jumpTypeArray[0]) == 10) { //跳转到符文熔炼 UI_HomeControler.Inst.AddUI(UI_RuneExp.UI_ResPath); OnClickReturnBtn(); } if (int.Parse(jumpTypeArray[0]) == 11) { //跳转到熔灵 UI_HomeControler.Inst.AddUI(UI_HeroLitholysin.UI_ResPath); OnClickReturnBtn(); } // 2 跳转到关卡章节 if (int.Parse(jumpTypeArray[0]) == 2) { //当前章节Id int _CurChapterId = StageModule.GetPlayerLastChapterID(); if (_CurChapterId < int.Parse(jumpTypeArray[1])) { InterfaceControler.GetInst().AddMsgBox("指定章节未开放", this.transform); return; } if (jumpTypeArray.Length >= 2) { if (int.Parse(jumpTypeArray[1]) == 1001) { ObjectSelf.GetInstance().SetIsPrompt(true); ObjectSelf.GetInstance().Week = ObjectSelf.GetInstance().GetWeek(); UI_HomeControler.Inst.AddUI(UI_PromptFightArea.UI_ResPath); OnClickReturnBtn(); } else { UI_SelectLevelMgrNew.InitChapterId = int.Parse(jumpTypeArray[1]); UI_HomeControler.Inst.AddUI(UI_SelectLevelMgrNew.UI_ResPath); OnClickReturnBtn(); } } } }
/// <summary> /// 按钮的显示 /// </summary> // public void ReceiveButtonShow(ActivityOverviewData _ActivityOverviewData, GameactivityTemplate _GameactivityTemplate) public void ReceiveButtonShow() { List <int> _tempList = m_MergeData[m_TeamId]; for (int i = 0; i < _tempList.Count; i++) { GameactivityTemplate _Data = (GameactivityTemplate)DataTemplate.GetInstance().m_GameactivityTable.getTableData(_tempList[i]); string[] jumpTypeArray = _Data.getJumpstype().Split('#'); int _allnum = 0; int _todaynum = 0; int _cangetnum = 0; if (m_ActivityOverviewMar.m_ActivityOverviewData.ContainsKey(_tempList[i])) { _allnum = m_ActivityOverviewMar.m_ActivityOverviewData[_tempList[i]].m_allnum; _todaynum = m_ActivityOverviewMar.m_ActivityOverviewData[_tempList[i]].m_todaynum; _cangetnum = m_ActivityOverviewMar.m_ActivityOverviewData[_tempList[i]].m_cangetnum; } int _Periodmax = _Data.getPeriodmax(); int _Daymax = _Data.getDaymax(); if (_Periodmax == -1) { _Periodmax = 1000000; } if (_Daymax == -1) { _Daymax = 1000000; } if (string.IsNullOrEmpty(jumpTypeArray[0])) { m_MiddleButton.gameObject.SetActive(true); m_LeftButton.gameObject.SetActive(false); m_RightButton.gameObject.SetActive(false); if (_todaynum <= _Daymax) { if (_cangetnum > 0) { MiddleButtonLight(); return; } else { MiddleButtonGrey(); } } else { MiddleButtonGrey(); } } else if (int.Parse(jumpTypeArray[0]) == 1) { m_RightButtonText.text = GameUtils.getString("activity_button_n1"); // common_button_recharge 充值 } else { m_RightButtonText.text = GameUtils.getString("liveness_content5"); // 前 往 } if (!string.IsNullOrEmpty(jumpTypeArray[0])) { m_MiddleButton.gameObject.SetActive(false); m_LeftButton.gameObject.SetActive(true); m_RightButton.gameObject.SetActive(true); if (_todaynum <= _Daymax) { if (_cangetnum > 0) { LeftButtonLight(); return; } else { LeftButtonGrey(); } } else { LeftButtonGrey(); } } } }