2021-05-20 21:00:29 +08:00
|
|
|
|
JumpManager = {};
|
2020-05-09 13:31:21 +08:00
|
|
|
|
local this = JumpManager
|
|
|
|
|
local JumpConfig=ConfigManager.GetConfig(ConfigName.JumpConfig)
|
|
|
|
|
function this.Initialize()
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
local jumpDic = {
|
|
|
|
|
[JumpType.Lottery] = function(data)--招募
|
2020-05-25 19:16:23 +08:00
|
|
|
|
--local openPanle =
|
2021-07-20 13:46:13 +08:00
|
|
|
|
local config = ConfigManager.TryGetConfigDataByThreeKey(ConfigName.ActivityGroups,"Sort",data[1],"FunType",JumpType.Lottery,"PageType",JumpType.Lottery)
|
2021-07-20 10:20:41 +08:00
|
|
|
|
UIManager.OpenPanel(UIName.RecruitMainPanel,config.ShopData[1][1])
|
2020-05-25 19:16:23 +08:00
|
|
|
|
--if openPanle and data then
|
|
|
|
|
-- openPanle.ShowGuideGo(data[1])
|
|
|
|
|
--end
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.Team] = function()--编队
|
2020-05-25 19:16:23 +08:00
|
|
|
|
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.MAIN)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.DifferDemons] = function()--异妖
|
|
|
|
|
UIManager.OpenPanel(UIName.DiffMonsterPanel)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.Guild] = function()--公会
|
|
|
|
|
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.GUILD) then
|
|
|
|
|
if PlayerManager.familyId == 0 then
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildFindPopup)
|
|
|
|
|
else
|
2020-10-31 17:01:46 +08:00
|
|
|
|
UIManager.OpenPanel(UIName.GuildMainCityPanel)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
-- 进入公会界面之前初始化一遍数据
|
|
|
|
|
MyGuildManager.InitAllData(function()
|
2020-10-31 17:01:46 +08:00
|
|
|
|
-- UIManager.OpenPanel(UIName.GuildMainCityPanel)
|
|
|
|
|
local openPanel = UIManager.GetOpenPanel(UIName.GuildMainCityPanel)
|
|
|
|
|
if openPanel then
|
|
|
|
|
openPanel:OnShow()
|
|
|
|
|
end
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end)
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FUNCTION_OPEN_TYPE.GUILD))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.Foods] = function()--百味居
|
|
|
|
|
UIManager.OpenPanel(UIName.FoodShopMainPanel)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.Adventure] = function(data)--秘境
|
|
|
|
|
local openPanle = UIManager.OpenPanel(UIName.AdventureMainPanel)
|
|
|
|
|
if openPanle and data and data[1] < 0 then
|
|
|
|
|
--引导光圈 -1 时再极速探索显示按钮
|
|
|
|
|
openPanle.ShowGuideGo()
|
|
|
|
|
end
|
|
|
|
|
end,
|
2024-01-03 15:24:49 +08:00
|
|
|
|
[20015] = function(data)
|
|
|
|
|
this.JumpActivity(20015,data[1])
|
|
|
|
|
end,
|
2020-05-09 13:31:21 +08:00
|
|
|
|
[JumpType.Arena] = function(data)--竞技场
|
2020-08-15 23:23:38 +08:00
|
|
|
|
local arenaDefend = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_ARENA_DEFEND)
|
|
|
|
|
-- local arenaAttack = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_ARENA_ATTACK)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
|
|
|
|
|
--首次进入竞技场 将主线编队复制到竞技场防守、进攻编队
|
2020-08-15 19:02:20 +08:00
|
|
|
|
-- if #arenaAttack.teamHeroInfos==0 then
|
|
|
|
|
-- -- LogColor("red","竞技进攻编队为空")
|
|
|
|
|
-- local formation = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_NORMAL)
|
|
|
|
|
-- local newFormation = {}
|
|
|
|
|
-- for index = 1, #formation.teamHeroInfos do
|
|
|
|
|
-- local teamInfo = formation.teamHeroInfos[index]
|
|
|
|
|
-- local singleData = {}
|
|
|
|
|
-- singleData.heroId = teamInfo.heroId
|
|
|
|
|
-- singleData.position = index
|
|
|
|
|
-- table.insert(newFormation, singleData)
|
|
|
|
|
-- end
|
2021-09-10 16:25:38 +08:00
|
|
|
|
-- FormationManager.SaveFormation(FormationTypeDef.FORMATION_ARENA_ATTACK,newFormation,formation.teamPokemonInfos)
|
2020-08-15 19:02:20 +08:00
|
|
|
|
-- end
|
2020-05-09 13:31:21 +08:00
|
|
|
|
if #arenaDefend.teamHeroInfos == 0 then
|
|
|
|
|
-- LogColor("red","竞技防守编队为空")
|
|
|
|
|
local formation = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_NORMAL)
|
|
|
|
|
local newFormation = {}
|
|
|
|
|
for index = 1, #formation.teamHeroInfos do
|
|
|
|
|
local teamInfo = formation.teamHeroInfos[index]
|
|
|
|
|
local singleData = {}
|
|
|
|
|
singleData.heroId = teamInfo.heroId
|
|
|
|
|
singleData.position = index
|
|
|
|
|
table.insert(newFormation, singleData)
|
|
|
|
|
end
|
2021-09-10 16:25:38 +08:00
|
|
|
|
FormationManager.SaveFormation(FormationTypeDef.FORMATION_ARENA_DEFEND,newFormation,formation.teamPokemonInfos)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
-- UIManager.OpenPanel(UIName.FormationPanel, FORMATION_TYPE.ARENA_DEFEND)
|
|
|
|
|
-- PopupTipPanel.ShowTip("请先设置防守阵容")
|
2021-07-02 11:23:07 +08:00
|
|
|
|
--this.isOpen = false
|
2020-05-09 13:31:21 +08:00
|
|
|
|
-- return
|
|
|
|
|
end
|
|
|
|
|
local openPanle = UIManager.OpenPanel(UIName.ArenaMainPanel)
|
|
|
|
|
if openPanle and data and data[1] then
|
|
|
|
|
--引导光圈 -1 时 第一个挑战
|
|
|
|
|
if data[1] < 0 then
|
|
|
|
|
openPanle.ShowGuideGo()
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.HanYuan] = function()--汉元之境
|
2021-04-09 12:26:35 +08:00
|
|
|
|
PopupTipPanel.ShowTip(Language[11394])
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.WangHun] = function()--亡魂之海
|
2021-04-09 12:26:35 +08:00
|
|
|
|
PopupTipPanel.ShowTip(Language[11394])
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
|
|
|
|
|
--暂不开放
|
|
|
|
|
--[JumpType.MultipleChallenge] = function(data)--综合副本
|
|
|
|
|
-- CarbonManager.difficulty=data[1]
|
|
|
|
|
-- UIManager.OpenPanel(UIName.CarbonPanel,data[1])
|
|
|
|
|
--end,
|
|
|
|
|
[JumpType.DailyTasks] = function()--每日任务
|
2020-06-13 11:47:13 +08:00
|
|
|
|
local openPanle = UIManager.OpenPanel(UIName.MissionDailyPanel)
|
2020-06-03 19:09:01 +08:00
|
|
|
|
--if openPanle then
|
|
|
|
|
-- --引导光圈 第一个领取显示
|
|
|
|
|
-- openPanle.ShowGuideGo()
|
|
|
|
|
--end
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.WorldBoss] = function()--世界boss
|
2021-04-09 12:26:35 +08:00
|
|
|
|
PopupTipPanel.ShowTip(Language[11394])
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.Talking] = function()--聊天
|
2020-05-25 19:16:23 +08:00
|
|
|
|
UIManager.OpenPanel(UIName.ChatPanel)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.LoginReward] = function(data)--七日登陆
|
|
|
|
|
--local openPanle =UIManager.OpenPanel(UIName.CourtesyDressPanel,data[1])
|
|
|
|
|
--if openPanle then
|
|
|
|
|
-- openPanle.ShowGuideGo(data[1])
|
|
|
|
|
--end
|
2020-05-25 19:16:23 +08:00
|
|
|
|
UIManager.OpenPanel(UIName.EightDayGiftPanel)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.OnlineReward] = function(data)--在线奖励
|
|
|
|
|
--local openPanle
|
|
|
|
|
--openPanle = UIManager.OpenPanel(UIName.FightPointPassMainPanel)
|
|
|
|
|
--if openPanle then
|
|
|
|
|
-- openPanle.ShowGuideGo(data[1])
|
|
|
|
|
--end
|
|
|
|
|
if data then
|
2020-05-25 19:16:23 +08:00
|
|
|
|
-- UIManager.OpenPanel(UIName.CourtesyDressPanel,ActivityTypeDef.OnlineGift)
|
|
|
|
|
UIManager.OpenPanel(UIName.OnlineRewardPanel)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.CommonChallenge] = function(data)--剧情副本
|
|
|
|
|
local jumpCarbonId = CarbonManager.NeedLockId(data[2],1)
|
|
|
|
|
local openPanle
|
|
|
|
|
if jumpCarbonId then
|
|
|
|
|
if jumpCarbonId == data[2] or data[2] == -1 then
|
|
|
|
|
CarbonManager.difficulty=data[1]
|
|
|
|
|
openPanle = UIManager.OpenPanel(UIName.PlotCarbonPanel,jumpCarbonId)
|
|
|
|
|
if openPanle then
|
|
|
|
|
openPanle.ShowGuideGo(jumpCarbonId)
|
|
|
|
|
end
|
|
|
|
|
else
|
2021-04-09 12:26:35 +08:00
|
|
|
|
MsgPanel.ShowTwo(Language[11395], nil, function ()
|
2020-05-09 13:31:21 +08:00
|
|
|
|
CarbonManager.difficulty=data[1]
|
|
|
|
|
openPanle = UIManager.OpenPanel(UIName.PlotCarbonPanel,jumpCarbonId)
|
|
|
|
|
if openPanle then
|
|
|
|
|
openPanle.ShowGuideGo(jumpCarbonId)
|
|
|
|
|
end
|
|
|
|
|
end)
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(JumpType.CommonChallenge))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.HeroChallenge] = function(data)--精英副本
|
|
|
|
|
local jumpCarbonId = CarbonManager.NeedLockId(data[2],3,math.floor(data[2]/10))
|
|
|
|
|
local openPanle
|
|
|
|
|
if jumpCarbonId then
|
|
|
|
|
if jumpCarbonId == data[2] or data[2] == -1 then
|
|
|
|
|
CarbonManager.difficulty=data[1]
|
|
|
|
|
Log("jumpManager jumpCarbonId "..jumpCarbonId)
|
|
|
|
|
openPanle = UIManager.OpenPanel(UIName.EliteCarbonPanel,jumpCarbonId)
|
|
|
|
|
if openPanle then
|
|
|
|
|
openPanle.JumpChooseRefresh(jumpCarbonId)
|
|
|
|
|
openPanle.ShowGuideGo(jumpCarbonId)
|
|
|
|
|
end
|
|
|
|
|
else
|
2021-04-09 12:26:35 +08:00
|
|
|
|
MsgPanel.ShowTwo(Language[11395], nil, function ()
|
2020-05-09 13:31:21 +08:00
|
|
|
|
CarbonManager.difficulty=data[1]
|
|
|
|
|
openPanle = UIManager.OpenPanel(UIName.EliteCarbonPanel,jumpCarbonId)
|
|
|
|
|
if openPanle then
|
|
|
|
|
openPanle.JumpChooseRefresh(jumpCarbonId)
|
|
|
|
|
openPanle.ShowGuideGo(jumpCarbonId)
|
|
|
|
|
end
|
|
|
|
|
end)
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(JumpType.HeroChallenge))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.ChapterReward] = function(data)--章节奖励
|
|
|
|
|
--local openPanle
|
|
|
|
|
--openPanle = UIManager.OpenPanel(UIName.FightPointPassMainPanel)
|
|
|
|
|
--if openPanle then
|
|
|
|
|
-- openPanle.ShowGuideGo(data[1])
|
|
|
|
|
--end
|
|
|
|
|
if data then
|
|
|
|
|
UIManager.OpenPanel(UIName.CourtesyDressPanel,ActivityTypeDef.ChapterAward)
|
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.Store] = function(data)--商店
|
|
|
|
|
local isActive, tips = ShopManager.IsActive(data[1])
|
|
|
|
|
if not isActive then
|
2021-04-09 12:26:35 +08:00
|
|
|
|
PopupTipPanel.ShowTip(tips or Language[10574])
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-05-09 13:31:21 +08:00
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
UIManager.OpenPanel(UIName.MainShopPanel,data[1])
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.DifferDemonsBox] = function(data)--秘盒
|
|
|
|
|
|
|
|
|
|
local openPanle = UIManager.OpenPanel(UIName.SecretBoxPanel)
|
|
|
|
|
if openPanle and data and data[1] then
|
|
|
|
|
--引导光圈 单抽
|
|
|
|
|
openPanle.ShowGuideGo()
|
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.MemberCamp] = function()--成员
|
2021-04-22 16:50:45 +08:00
|
|
|
|
UIManager.CloseAllStack(true)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
HeroManager.heroListPanelSortID = 1
|
|
|
|
|
HeroManager.heroListPanelProID = 0
|
2021-04-22 15:24:46 +08:00
|
|
|
|
UIManager.OpenPanel(UIName.RoleListPanel)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.StoreHouse] = function(data)--仓库
|
2021-04-22 16:50:45 +08:00
|
|
|
|
UIManager.CloseAllStack(true)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
if data then
|
|
|
|
|
local openPanle = UIManager.OpenPanel(UIName.BagPanel,data[1])
|
|
|
|
|
if openPanle then
|
|
|
|
|
--引导光圈 可合成碎片第一个
|
|
|
|
|
openPanle.ShowGuideGo()
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
UIManager.OpenPanel(UIName.BagPanel)
|
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.Resolve] = function(data)--二维数组 1回溯献祭 2 英雄 装备 法宝分解
|
|
|
|
|
if data then
|
|
|
|
|
if data[1] == 1 then
|
|
|
|
|
UIManager.OpenPanel(UIName.ResolvePanel,data[2])
|
|
|
|
|
elseif data[1] == 2 then
|
|
|
|
|
UIManager.OpenPanel(UIName.HeroAndEquipResolvePanel,data[2])
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.Friend] = function(data)--好友
|
|
|
|
|
UIManager.OpenPanel(UIName.GoodFriendMainPanel,nil,data[1])
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.Level] = function(data)--关卡
|
|
|
|
|
local openPanle
|
2021-05-20 21:00:29 +08:00
|
|
|
|
if UIManager.IsTopShow(UIName.FightPointPassMainPanel) then
|
|
|
|
|
openPanle = UIManager.GetOpenPanel(UIName.FightPointPassMainPanel)
|
|
|
|
|
else
|
|
|
|
|
UIManager.CloseAllStack(true)
|
|
|
|
|
openPanle = UIManager.OpenPanel(UIName.FightPointPassMainPanel)
|
|
|
|
|
|
|
|
|
|
end
|
2020-05-09 13:31:21 +08:00
|
|
|
|
if openPanle then
|
|
|
|
|
openPanle.ShowGuideGo(data[1])
|
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.RechargeStore] = function(data)--充值商店
|
|
|
|
|
--PopupTipPanel.ShowTip("商店未开启")
|
2021-07-02 11:23:07 +08:00
|
|
|
|
--this.isOpen = false
|
2020-05-15 16:52:35 +08:00
|
|
|
|
-- UIManager.OpenPanel(UIName.MainShopPanel,data[1])
|
2021-03-30 20:17:26 +08:00
|
|
|
|
JumpManager.GoJump(36008)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.DatTask] = function(data)--日常任务
|
2020-06-13 11:47:13 +08:00
|
|
|
|
local openPanle = UIManager.OpenPanel(UIName.MissionDailyPanel)
|
2020-06-03 19:09:01 +08:00
|
|
|
|
--if openPanle then
|
|
|
|
|
-- --引导光圈 第一个领取显示
|
|
|
|
|
-- openPanle.ShowGuideGo()
|
|
|
|
|
--end
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
--[JumpType.Talent] = function(data)--天赋
|
|
|
|
|
-- local openPanle = UIManager.OpenPanel(UIName.TalentPanel,{})
|
|
|
|
|
-- if openPanle then
|
|
|
|
|
-- --引导光圈 注入按钮
|
|
|
|
|
-- openPanle.ShowGuideGo()
|
|
|
|
|
-- end
|
|
|
|
|
--end,
|
|
|
|
|
[JumpType.Trial] = function(data)--试炼
|
|
|
|
|
CarbonManager.difficulty = 2
|
2021-01-04 18:29:20 +08:00
|
|
|
|
MapManager.curCarbonType =CarBonTypeId.TRIAL
|
|
|
|
|
NetManager.MapInfoRequest(MapManager.curCarbonType, function(msg)
|
|
|
|
|
MapManager.isReloadEnter = false
|
|
|
|
|
MapTrialManager.firstEnter = true
|
|
|
|
|
MapManager.SetViewSize(20)--设置视野范围(明雷形式)
|
|
|
|
|
MapManager.curAreaId =FormationTypeDef.FORMATION_DREAMLAND
|
|
|
|
|
MapTrialManager.isHaveBoss = false
|
|
|
|
|
MapManager.isTimeOut = false
|
|
|
|
|
SwitchPanel.OpenPanel(UIName.MapPanel)
|
|
|
|
|
end)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.BuyVigor] = function(data)--体力购买
|
|
|
|
|
UIManager.OpenPanel(UIName.QuickPurchasePanel, { type = UpViewRechargeType.Energy })
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.BuyGold] = function(data)--金币购买
|
|
|
|
|
UIManager.OpenPanel(UIName.QuickPurchasePanel, { type = UpViewRechargeType.Gold })
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.ElementDrawCard] = function(data)--元素招募
|
2021-07-19 21:58:45 +08:00
|
|
|
|
UIManager.OpenPanel(UIName.RecruitMainPanel,TableRecruitType.Siyuanzhen)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.Pray] = function(data)--云梦
|
2021-12-10 13:41:03 +08:00
|
|
|
|
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.recharge] = function(data)--充值
|
2021-03-30 20:17:26 +08:00
|
|
|
|
this.JumpActivity(JumpType.recharge,data[1])
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.Welfare] = function(data)--福利
|
2021-03-30 20:17:26 +08:00
|
|
|
|
this.JumpActivity(JumpType.Welfare,data[1])
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.Expert] = function(data)--限时活动
|
|
|
|
|
if data and data[1] then
|
2021-05-10 10:06:53 +08:00
|
|
|
|
-- if data[1] == ExperType.ExChange then--限时兑换
|
|
|
|
|
-- local LimitExchange = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.LimitExchange)
|
|
|
|
|
-- if LimitExchange then
|
|
|
|
|
-- if LimitExchange.endTime - GetTimeStamp() > 0 then
|
|
|
|
|
-- local id = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.LimitExchange)
|
|
|
|
|
-- local tempData = ConfigManager.GetConfigData(ConfigName.GlobalActivity,id)
|
|
|
|
|
-- if tempData.ShowArt == 1 then
|
|
|
|
|
-- UIManager.OpenPanel(UIName.ExpertPanel,data[1])
|
|
|
|
|
-- else
|
|
|
|
|
-- UIManager.OpenPanel(UIName.DynamicActivityPanel,ActivityTypeDef.LimitExchange)--10)
|
|
|
|
|
-- end
|
|
|
|
|
-- else
|
|
|
|
|
-- PopupTipPanel.ShowTip(Language[11396])
|
2021-07-02 11:23:07 +08:00
|
|
|
|
--this.isOpen = false
|
2021-05-10 10:06:53 +08:00
|
|
|
|
-- end
|
|
|
|
|
-- else
|
|
|
|
|
-- PopupTipPanel.ShowTip(Language[11396])
|
2021-07-02 11:23:07 +08:00
|
|
|
|
--this.isOpen = false
|
2021-05-10 10:06:53 +08:00
|
|
|
|
-- end
|
|
|
|
|
-- else
|
|
|
|
|
-- this.JumpActivity(JumpType.Expert,data[1])
|
|
|
|
|
-- end
|
|
|
|
|
this.JumpActivity(JumpType.Expert,data[1])
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.Privilege] = function(data)--特权
|
2021-04-22 16:50:45 +08:00
|
|
|
|
UIManager.CloseAllStack(true)
|
2020-05-25 19:16:23 +08:00
|
|
|
|
local openPanle = UIManager.OpenPanel(UIName.VipPanelV2)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
if openPanle and data and data[1] < 0 then
|
|
|
|
|
--引导光圈 -1 下边条目领取按钮
|
|
|
|
|
openPanle.ShowGuideGo()
|
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.HeroUpLv] = function(data)--特定妖灵师升级(新手专用)
|
|
|
|
|
if data and data[1] > 0 then
|
|
|
|
|
local heroData = HeroManager.GetHeroDataByHeroSIdAndMinSortId(data[1])
|
|
|
|
|
if heroData and heroData.id then
|
|
|
|
|
local openPanle = UIManager.OpenPanel(UIName.RoleInfoPanel, heroData, HeroManager.GetAllHeroDatas(),true)
|
|
|
|
|
if openPanle then
|
|
|
|
|
openPanle.ShowGuideGo(1)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
local formationList = FormationManager.GetFormationByID(1)
|
|
|
|
|
if formationList.teamHeroInfos[1] then
|
|
|
|
|
local heroData = HeroManager.GetSingleHeroData(formationList.teamHeroInfos[1].heroId)
|
|
|
|
|
local openPanle = UIManager.OpenPanel(UIName.RoleInfoPanel, heroData, HeroManager.GetAllHeroDatas(),true)
|
|
|
|
|
if openPanle then
|
|
|
|
|
openPanle.ShowGuideGo(1)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.HeroUpStar] = function(data)--特定妖灵师升星(新手专用)
|
|
|
|
|
Log("data[1] "..data[1])
|
|
|
|
|
local heroData = HeroManager.GetHeroDataByHeroSIdAndMinSortId(data[1])
|
|
|
|
|
if heroData and heroData.id then
|
|
|
|
|
local openPanle = UIManager.OpenPanel(UIName.RoleInfoPanel, heroData, HeroManager.GetAllHeroDatas(),true)
|
|
|
|
|
if openPanle then
|
|
|
|
|
openPanle.JumpOnClickBtnUpStar()
|
|
|
|
|
openPanle.ShowGuideGo(2)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.BeastIncomingTide]=function()
|
2021-05-25 14:51:26 +08:00
|
|
|
|
-- UIManager.OpenPanel(UIName.MonsterCampPanel)
|
|
|
|
|
UIManager.OpenPanel(UIName.MonsterCampNewPanel)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.AllForMation]=function(data)
|
|
|
|
|
if ActTimeCtrlManager.SingleFuncState(FormationManager.AllFormationFunIds[data[1]]) then
|
|
|
|
|
UIManager.OpenPanel(UIName.FormationSetPanel,data[1])
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FormationManager.AllFormationFunIds[data[1]]))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.QuickPurchase] = function(data)--快捷购买
|
|
|
|
|
UIManager.OpenPanel(UIName.QuickPurchasePanel, { type = data[1] })
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.GiveMePower] = function()--我要变强
|
|
|
|
|
UIManager.OpenPanel(UIName.GiveMePowerPanel)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.EndlessFight] = function()--无尽副本
|
2020-08-26 14:53:31 +08:00
|
|
|
|
MapManager.curCarbonType = CarBonTypeId.ENDLESS
|
2022-04-25 13:43:46 +08:00
|
|
|
|
--UIManager.OpenPanel(UIName.EndLessCarbonPanel)
|
|
|
|
|
UIManager.OpenPanel(UIName.ChallengeCopyPanel)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.SoulPrintAstrology] = function()--无尽副本
|
|
|
|
|
UIManager.OpenPanel(UIName.SoulPrintAstrologyPanel)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.Alien] = function()--外敌入侵
|
|
|
|
|
UIManager.OpenPanel(UIName.AlienMainPanel)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.FiveStarActivity] = function()--外敌入侵
|
|
|
|
|
--UIManager.OpenPanel(UIName.GrowGiftPopup)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.Setting] = function(data)--外敌入侵
|
|
|
|
|
UIManager.OpenPanel(UIName.SettingPanel,data[1])
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.LuckyTurn] = function(data)--幸运探宝
|
2022-11-30 18:36:50 +08:00
|
|
|
|
--UIManager.OpenPanel(UIName.LuckyTurnTablePanel,data[1])
|
|
|
|
|
UIManager.OpenPanel(UIName.ActivityMainPanel,40,5)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.TopMatch] = function(data)--巅峰赛
|
|
|
|
|
UIManager.OpenPanel(UIName.ArenaTopMatchPanel,data[1])
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.FindFairy] = function(data)--东海寻仙
|
|
|
|
|
UIManager.OpenPanel(UIName.FindFairyPanel,data[1])
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.FindTreasure] = function()--迷宫寻宝
|
|
|
|
|
UIManager.OpenPanel(UIName.FindTreasureMainPanel)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.Expedition]=function(data)--远征
|
|
|
|
|
if ActTimeCtrlManager.SingleFuncState(JumpType.Expedition) then
|
2020-05-25 19:16:23 +08:00
|
|
|
|
UIManager.OpenPanel(UIName.ExpeditionMainPanel,true)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FUNCTION_OPEN_TYPE.EXPEDITION))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
end,
|
2020-05-15 17:03:13 +08:00
|
|
|
|
[JumpType.GuildAid] = function(data)--公会援助
|
2020-06-13 11:47:13 +08:00
|
|
|
|
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.GUILD) then
|
|
|
|
|
if PlayerManager.familyId == 0 then
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildFindPopup)
|
|
|
|
|
else
|
2021-04-22 15:24:46 +08:00
|
|
|
|
|
2021-04-22 16:50:45 +08:00
|
|
|
|
UIManager.CloseAllStack(true)
|
2020-06-13 11:47:13 +08:00
|
|
|
|
if UIManager.IsOpen(UIName.GuildMainCityPanel) then
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildAidMainPopup,data[1])
|
|
|
|
|
else
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildMainCityPanel)
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildAidMainPopup,data[1])
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FUNCTION_OPEN_TYPE.GUILD))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-06-13 11:47:13 +08:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.GuildSkill] = function(data)--公会技能
|
|
|
|
|
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.GUILD) then
|
|
|
|
|
if PlayerManager.familyId == 0 then
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildFindPopup)
|
|
|
|
|
else
|
|
|
|
|
if UIManager.IsOpen(UIName.GuildMainCityPanel) then
|
|
|
|
|
local index = 1
|
|
|
|
|
if data then index = data[1] end
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildSkillUpLvPopup,index)
|
|
|
|
|
else
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildMainCityPanel)
|
|
|
|
|
local index = 1
|
|
|
|
|
if data then index = data[1] end
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildSkillUpLvPopup,index)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FUNCTION_OPEN_TYPE.GUILD))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-06-13 11:47:13 +08:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.GuildFete] = function()--公会祭祀
|
|
|
|
|
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.GUILD) then
|
|
|
|
|
if PlayerManager.familyId == 0 then
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildFindPopup)
|
|
|
|
|
else
|
|
|
|
|
if UIManager.IsOpen(UIName.GuildMainCityPanel) then
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildFetePopup)
|
|
|
|
|
else
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildMainCityPanel)
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildFetePopup)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FUNCTION_OPEN_TYPE.GUILD))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-06-13 11:47:13 +08:00
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.Compound] = function(data)--锻造炉
|
|
|
|
|
local index = 1
|
|
|
|
|
if data then index = data[2] end
|
2021-05-27 11:07:32 +08:00
|
|
|
|
local ConfigData = ConfigManager.GetConfig(ConfigName.SpecialConfig)
|
|
|
|
|
if index == 2 then
|
2022-03-11 17:34:15 +08:00
|
|
|
|
local string = ConfigData[89].Value
|
|
|
|
|
if PlayerManager.level < tonumber(string) then
|
|
|
|
|
PopupTipPanel.ShowTip(string.format(Language[10770],string))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2021-05-27 11:07:32 +08:00
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
if index == 3 then
|
2022-03-11 17:34:15 +08:00
|
|
|
|
local string = ConfigData[40].Value
|
|
|
|
|
local num = string.split(string.split(string,"|")[1],"#")[2]
|
|
|
|
|
if PlayerManager.level < tonumber(num) then
|
|
|
|
|
PopupTipPanel.ShowTip(string.format(Language[10770],num))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2021-05-27 11:07:32 +08:00
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
end
|
2020-06-13 11:47:13 +08:00
|
|
|
|
UIManager.OpenPanel(UIName.CompoundPanel,index)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.DailyCarbon_Gold] = function(data)--每日金币副本
|
|
|
|
|
local index = 1
|
|
|
|
|
if data then index = data[2] end
|
|
|
|
|
UIManager.OpenPanel(UIName.DailyCarbonPanel,index)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.DailyCarbon_Exp] = function(data)--每日经验副本
|
|
|
|
|
local index = 1
|
|
|
|
|
if data then index = data[2] end
|
|
|
|
|
UIManager.OpenPanel(UIName.DailyCarbonPanel,index)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.DailyCarbon_Hero] = function(data)--每日角色碎片副本
|
|
|
|
|
local index = 1
|
|
|
|
|
if data then index = data[2] end
|
|
|
|
|
UIManager.OpenPanel(UIName.DailyCarbonPanel,index)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.DailyCarbon_Transure] = function(data)--每日法宝副本
|
|
|
|
|
local index = 1
|
|
|
|
|
if data then index = data[2] end
|
|
|
|
|
UIManager.OpenPanel(UIName.DailyCarbonPanel,index)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.DailyCarbon_SoulPrint] = function(data)--每日魂印副本
|
|
|
|
|
local index = 1
|
|
|
|
|
if data then index = data[2] end
|
|
|
|
|
UIManager.OpenPanel(UIName.DailyCarbonPanel,index)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.DeathPos] = function()--十绝阵
|
|
|
|
|
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.GUILD) then
|
|
|
|
|
if PlayerManager.familyId == 0 then
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildFindPopup)
|
|
|
|
|
else
|
2021-03-27 16:46:42 +08:00
|
|
|
|
if DeathPosManager.status==DeathPosStatus.Death then
|
2021-04-09 12:26:35 +08:00
|
|
|
|
PopupTipPanel.ShowTip(Language[10909])
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2021-03-27 16:46:42 +08:00
|
|
|
|
return
|
|
|
|
|
elseif DeathPosManager.status==DeathPosStatus.Close then
|
2021-04-09 12:26:35 +08:00
|
|
|
|
PopupTipPanel.ShowTip(Language[10910])
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2021-03-27 16:46:42 +08:00
|
|
|
|
return
|
|
|
|
|
end
|
2020-06-13 11:47:13 +08:00
|
|
|
|
if UIManager.IsOpen(UIName.GuildMainCityPanel) then
|
|
|
|
|
UIManager.OpenPanel(UIName.DeathPosPanel)
|
|
|
|
|
else
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildMainCityPanel)
|
|
|
|
|
UIManager.OpenPanel(UIName.DeathPosPanel)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FUNCTION_OPEN_TYPE.GUILD))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-06-13 11:47:13 +08:00
|
|
|
|
end
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.GuildCarDelay] = function()--车迟斗法
|
|
|
|
|
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.GUILD) then
|
|
|
|
|
if PlayerManager.familyId == 0 then
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildFindPopup)
|
|
|
|
|
else
|
|
|
|
|
UIManager.OpenPanel(UIName.GuildCarDelayMainPanel)
|
|
|
|
|
end
|
2020-05-15 17:03:13 +08:00
|
|
|
|
else
|
2020-06-13 11:47:13 +08:00
|
|
|
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FUNCTION_OPEN_TYPE.GUILD))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-05-15 17:03:13 +08:00
|
|
|
|
end
|
|
|
|
|
end,
|
2021-04-25 14:02:27 +08:00
|
|
|
|
[JumpType.CompoundHero] = function(data)--神将合成、置换
|
|
|
|
|
local index = 1
|
|
|
|
|
if data then index = data[2] end
|
|
|
|
|
UIManager.OpenPanel(UIName.CompoundHeroPanel,index)
|
2020-08-05 15:36:22 +08:00
|
|
|
|
end,
|
2020-08-26 14:51:10 +08:00
|
|
|
|
[JumpType.XuanYuanMirror] = function()--轩辕
|
|
|
|
|
UIManager.OpenPanel(UIName.XuanYuanMirrorPanel)
|
2020-10-31 17:01:46 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.EndlessShop] = function()--无尽商店
|
|
|
|
|
local isActive, tips = ShopManager.IsActive(13)
|
|
|
|
|
if not isActive then
|
2021-04-09 12:26:35 +08:00
|
|
|
|
PopupTipPanel.ShowTip(tips or Language[10574])
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-10-31 17:01:46 +08:00
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
UIManager.OpenPanel(UIName.MainShopPanel,13)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.EndlessShop] = function()--无尽商店
|
|
|
|
|
local isActive, tips = ShopManager.IsActive(13)
|
|
|
|
|
if not isActive then
|
2021-04-09 12:26:35 +08:00
|
|
|
|
PopupTipPanel.ShowTip(tips or Language[10574])
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-10-31 17:01:46 +08:00
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
UIManager.OpenPanel(UIName.MainShopPanel,13)
|
|
|
|
|
end,
|
2021-08-04 16:58:19 +08:00
|
|
|
|
[JumpType.Pokemon] = function(data)--灵兽山(驭兽斋)
|
|
|
|
|
if data and data[1] == 1 then
|
|
|
|
|
UIManager.OpenPanel(UIName.PokemonSummonPanel)
|
|
|
|
|
elseif data and data[1] == 2 then
|
|
|
|
|
UIManager.OpenPanel(UIName.PokemonMainPanel)
|
|
|
|
|
end
|
2020-08-26 14:51:10 +08:00
|
|
|
|
end,
|
2020-12-14 17:14:42 +08:00
|
|
|
|
[JumpType.SacredTree]=function(data)--建木神树
|
|
|
|
|
if ActTimeCtrlManager.SingleFuncState(JumpType.SacredTree) then
|
|
|
|
|
UIManager.OpenPanel(UIName.SacredTreePanel)
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FUNCTION_OPEN_TYPE.SACREDTREE))
|
|
|
|
|
end
|
|
|
|
|
end,
|
2021-01-04 19:40:39 +08:00
|
|
|
|
[JumpType.HongMengZhen] = function ()
|
|
|
|
|
-- body
|
2021-01-18 17:43:11 +08:00
|
|
|
|
if HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv) then
|
2021-01-05 10:46:35 +08:00
|
|
|
|
-- body
|
2021-01-18 17:43:11 +08:00
|
|
|
|
if HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).heroTid == 0 then
|
2021-01-05 14:26:26 +08:00
|
|
|
|
-- body
|
|
|
|
|
UIManager.OpenPanel(UIName.HongMengEnvoyPanel)
|
|
|
|
|
else
|
|
|
|
|
UIManager.OpenPanel(UIName.HongMengPanel)
|
|
|
|
|
end
|
2021-01-05 10:46:35 +08:00
|
|
|
|
else
|
|
|
|
|
UIManager.OpenPanel(UIName.HongMengPanel)
|
|
|
|
|
end
|
2021-01-06 20:05:35 +08:00
|
|
|
|
end,
|
2021-05-13 20:59:29 +08:00
|
|
|
|
[JumpType.TimeLimiteCall] = function (data)
|
2021-06-01 14:58:57 +08:00
|
|
|
|
this.JumpActivity(JumpType.ZhuTiHuoDong,data[1])
|
2020-12-22 10:14:54 +08:00
|
|
|
|
end,
|
2021-05-13 20:59:29 +08:00
|
|
|
|
[JumpType.QianKunBox] = function (data)
|
|
|
|
|
this.JumpActivity(JumpType.ZhuTiHuoDong,data[1])
|
2020-12-22 10:14:54 +08:00
|
|
|
|
end,
|
2021-05-13 20:59:29 +08:00
|
|
|
|
[JumpType.Celebration] = function (data)
|
|
|
|
|
this.JumpActivity(JumpType.ZhuTiHuoDong,data[1])
|
2020-12-22 10:14:54 +08:00
|
|
|
|
end,
|
2021-05-13 20:59:29 +08:00
|
|
|
|
[JumpType.YiJingBaoKu] = function (data)
|
|
|
|
|
this.JumpActivity(JumpType.ZhuTiHuoDong,data[1])
|
2020-12-22 10:14:54 +08:00
|
|
|
|
end,
|
2021-05-13 20:59:29 +08:00
|
|
|
|
[JumpType.LingShouBaoGe] = function (data)
|
|
|
|
|
this.JumpActivity(JumpType.ZhuTiHuoDong,data[1])
|
2020-12-22 10:14:54 +08:00
|
|
|
|
end,
|
2021-05-13 20:59:29 +08:00
|
|
|
|
[JumpType.XiangYaoDuoBao] = function (data)
|
|
|
|
|
this.JumpActivity(JumpType.ZhuTiHuoDong,data[1])
|
2021-05-06 17:49:43 +08:00
|
|
|
|
end,
|
2021-05-13 20:59:29 +08:00
|
|
|
|
[JumpType.XianShiDuiHuan] = function (data)
|
|
|
|
|
this.JumpActivity(JumpType.ZhuTiHuoDong,data[1])
|
2020-12-22 10:14:54 +08:00
|
|
|
|
end,
|
2021-05-10 10:06:53 +08:00
|
|
|
|
[JumpType.ZhuTiHuoDong] = function (data)
|
2021-06-01 14:58:57 +08:00
|
|
|
|
if #data > 1 then
|
2021-06-11 10:18:38 +08:00
|
|
|
|
if ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.LimitUpHero) then
|
2021-06-01 14:58:57 +08:00
|
|
|
|
this.JumpActivity(JumpType.ZhuTiHuoDong,data[1])
|
2021-06-11 10:30:57 +08:00
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip("活动尚未开启")
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2021-06-01 14:58:57 +08:00
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
this.JumpActivity(JumpType.ZhuTiHuoDong,data[1])
|
|
|
|
|
end
|
2021-05-10 10:06:53 +08:00
|
|
|
|
end,
|
2021-05-10 20:20:20 +08:00
|
|
|
|
[JumpType.QianKunShangDian] = function (data)
|
|
|
|
|
this.JumpActivity(JumpType.QianKunShangDian,data[1])
|
|
|
|
|
end,
|
|
|
|
|
|
|
|
|
|
[JumpType.SheJiDaDianShangDian] = function (data)
|
2021-05-11 14:59:41 +08:00
|
|
|
|
this.JumpActivity(JumpType.SheJiDaDianShangDian,data[1])
|
|
|
|
|
end,
|
|
|
|
|
|
|
|
|
|
[JumpType.XinJiangLaiXiShangDian] = function (data)
|
|
|
|
|
this.JumpActivity(JumpType.XinJiangLaiXiShangDian,data[1])
|
2020-12-22 10:14:54 +08:00
|
|
|
|
end,
|
2021-05-10 20:20:20 +08:00
|
|
|
|
|
|
|
|
|
[JumpType.SheJiDaDianShangDian] = function (data)
|
2021-05-11 14:59:41 +08:00
|
|
|
|
this.JumpActivity(JumpType.SheJiDaDianShangDian,data[1])
|
|
|
|
|
end,
|
|
|
|
|
|
|
|
|
|
[JumpType.XinJiangLaiXiShangDian] = function (data)
|
|
|
|
|
this.JumpActivity(JumpType.XinJiangLaiXiShangDian,data[1])
|
2021-05-10 20:20:20 +08:00
|
|
|
|
end,
|
2021-05-11 16:59:48 +08:00
|
|
|
|
[JumpType.XingChenShangDian] = function (data)
|
|
|
|
|
this.JumpActivity(JumpType.XingChenShangDian,data[1])
|
|
|
|
|
end,
|
2021-09-15 14:29:14 +08:00
|
|
|
|
[JumpType.XunBaoMiZongShangDian] = function (data) --寻宝迷踪
|
2021-09-16 16:41:23 +08:00
|
|
|
|
local activityId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.XunBaoMiZong)
|
|
|
|
|
if activityId and activityId > 0 and ActivityGiftManager.IsQualifiled(ActivityTypeDef.XunBaoMiZong) then
|
|
|
|
|
this.JumpActivity(JumpType.XunBaoMiZongShangDian,data[1])
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip("活动尚未开启")
|
|
|
|
|
this.isOpen = false
|
|
|
|
|
end
|
2021-09-15 14:29:14 +08:00
|
|
|
|
end,
|
2021-11-24 18:14:25 +08:00
|
|
|
|
[JumpType.StateActivity] = function (data)
|
2022-02-24 15:56:53 +08:00
|
|
|
|
this.JumpActivity(JumpType.StateActivity,data[1], data[2])
|
2021-11-24 18:14:25 +08:00
|
|
|
|
end,
|
2021-05-27 09:50:11 +08:00
|
|
|
|
[JumpType.FightLevel] = function (data)
|
|
|
|
|
UIManager.OpenPanel(UIName.FightLevelChapterPanel)
|
|
|
|
|
end,
|
2021-06-09 11:03:18 +08:00
|
|
|
|
[JumpType.EndlessXingDongliBuy] = function(data)
|
|
|
|
|
UIManager.OpenPanel(UIName.QuickPurchasePanel, { type = 1 })
|
|
|
|
|
end,
|
2021-06-19 17:07:17 +08:00
|
|
|
|
[JumpType.ChaoFanRuSheng] = function(data)
|
|
|
|
|
this.JumpActivity(ActivityTypeDef.ChaoFanRuSheng,data[1])
|
|
|
|
|
end,
|
2021-06-29 20:05:15 +08:00
|
|
|
|
|
|
|
|
|
[JumpType.firstRecharge] = function(data)
|
2022-11-24 10:37:40 +08:00
|
|
|
|
local aaa={}
|
|
|
|
|
aaa.tabIndex=data[1]
|
|
|
|
|
UIManager.OpenPanel(UIName.FirstRechargePanel,aaa)
|
2021-06-29 20:05:15 +08:00
|
|
|
|
end,
|
|
|
|
|
[JumpType.ZhiZunJiangShi] = function(data)
|
2021-12-20 13:41:16 +08:00
|
|
|
|
local actId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.SupremeHero)
|
|
|
|
|
if actId == 42 then
|
|
|
|
|
UIManager.OpenPanel(UIName.SupremeHeroPopup)
|
|
|
|
|
else
|
|
|
|
|
UIManager.OpenPanel(UIName.SupremeHeroPopupNew)
|
|
|
|
|
end
|
2021-06-29 20:05:15 +08:00
|
|
|
|
end,
|
2021-07-01 15:01:57 +08:00
|
|
|
|
[JumpType.SurpriseBox] = function(data)
|
|
|
|
|
local activityId = ActivityGiftManager.IsActivityTypeOpen(data[1])
|
|
|
|
|
if activityId and activityId > 0 and ActivityGiftManager.IsQualifiled(data[1]) then
|
|
|
|
|
UIManager.OpenPanel(UIName.SurpriseBoxPanel)
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip("活动尚未开启")
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2021-07-01 15:01:57 +08:00
|
|
|
|
end
|
|
|
|
|
end,
|
2021-07-06 16:48:59 +08:00
|
|
|
|
[JumpType.zhenqibaoge] = function(data)
|
2022-02-18 15:14:25 +08:00
|
|
|
|
this.JumpActivity(JumpType.zhenqibaoge,data[1])
|
2021-07-06 16:48:59 +08:00
|
|
|
|
end,
|
2022-08-17 17:45:12 +08:00
|
|
|
|
[JumpType.xunxianbaoge] = function(data)
|
|
|
|
|
this.JumpActivity(JumpType.xunxianbaoge,data[1])
|
|
|
|
|
end,
|
2021-11-25 15:59:31 +08:00
|
|
|
|
[JumpType.LingShouTehui] = function(data)--零售特惠
|
|
|
|
|
this.JumpActivity(JumpType.LingShouTehui,data[1])
|
|
|
|
|
end,
|
2021-07-06 16:48:59 +08:00
|
|
|
|
[JumpType.xianshishangshi] = function(data)
|
|
|
|
|
this.JumpActivity(JumpType.xianshishangshi,data[1])
|
|
|
|
|
end,
|
2021-07-19 11:48:41 +08:00
|
|
|
|
[JumpType.chaozhijijin] = function(data)
|
|
|
|
|
this.JumpActivity(JumpType.chaozhijijin % 10000,data[1])
|
|
|
|
|
end,
|
2021-07-22 19:01:46 +08:00
|
|
|
|
[JumpType.JumpServerHightLadder] = function(data)
|
|
|
|
|
if not ActTimeCtrlManager.IsQualifiled(FUNCTION_OPEN_TYPE.JumpServer_HightLadder) then
|
|
|
|
|
PopupTipPanel.ShowTip( ActTimeCtrlManager.GetFuncTip( FUNCTION_OPEN_TYPE.JumpServer_HightLadder))
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
local conFigWorldLevel = ConfigManager.GetConfigData(ConfigName.MServerArenaSetting,1).WorldLevel
|
|
|
|
|
if PlayerManager.worldLeve < conFigWorldLevel then --如果世界等级不足
|
|
|
|
|
PopupTipPanel.ShowTip(string.format("世界等级到达%s后开启!",conFigWorldLevel))
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.JumpServer_HightLadder) == false then --如果未解锁
|
|
|
|
|
PopupTipPanel.ShowTip("赛季过渡中!")
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
JumpServerManager.GetWorldArenaInfoRequest(function()
|
|
|
|
|
if not JumpServerManager.GetHightLadderDataIsStart() then
|
|
|
|
|
PopupTipPanel.ShowTip(string.format("开服第%s周开放!",ConfigManager.GetConfigData(ConfigName.MServerArenaSetting,1).OpenWeek))
|
|
|
|
|
return
|
|
|
|
|
elseif not JumpServerManager.GetHightLadderDataIsGroup() then
|
|
|
|
|
PopupTipPanel.ShowTip("未划分跨服分组,无法参与!")
|
|
|
|
|
return
|
|
|
|
|
else
|
|
|
|
|
UIManager.OpenPanel(UIName.JumpServerHightLadderPanel)
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
end)
|
|
|
|
|
end,
|
2021-09-01 10:08:25 +08:00
|
|
|
|
[JumpType.FourElementTrail] = function(data)
|
|
|
|
|
if ActTimeCtrlManager.IsQualifiled(FUNCTION_OPEN_TYPE.FourElementTrail) then
|
|
|
|
|
UIManager.OpenPanel(UIName.MonsterCampMainPanel)
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip("四灵试炼暂未开启")
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
end,
|
2021-09-22 20:22:59 +08:00
|
|
|
|
[JumpType.linglongShangShi] = function(data)
|
|
|
|
|
this.JumpActivity(JumpType.linglongShangShi,data[1])
|
|
|
|
|
end,
|
2021-09-26 21:32:04 +08:00
|
|
|
|
[JumpType.likeability] = function()
|
|
|
|
|
UIManager.OpenPanel(UIName.LikeAbilityPanel)
|
|
|
|
|
end,
|
2022-11-30 18:36:50 +08:00
|
|
|
|
[JumpType.Song10Wan] = function()
|
|
|
|
|
UIManager.OpenPanel(UIName.GMSong10WanPanel)
|
|
|
|
|
end,
|
|
|
|
|
[JumpType.SongWuXian] = function()
|
|
|
|
|
UIManager.OpenPanel(UIName.OpenSeverWelfarePanel)
|
|
|
|
|
end,
|
2021-09-27 15:50:25 +08:00
|
|
|
|
[JumpType.xiaoyaoyou] = function()
|
|
|
|
|
XiaoYaoManager.OpenMapList()
|
|
|
|
|
end,
|
2021-09-23 14:51:04 +08:00
|
|
|
|
[JumpType.QiJieShiLian] = function(data)
|
2021-09-24 19:23:30 +08:00
|
|
|
|
if UIManager.IsOpen(UIName.GeneralRankRewardPanel) then
|
|
|
|
|
UIManager.ClosePanel(UIName.GeneralRankRewardPanel)
|
|
|
|
|
end
|
2021-09-24 16:47:06 +08:00
|
|
|
|
QiJieShiLianManager.CheckQiJieJump(FUNCTION_OPEN_TYPE.QIJIESHILIAN,3,function ()
|
2021-09-27 17:02:43 +08:00
|
|
|
|
local qiejieConfig = ConfigManager.GetConfig(ConfigName.QijieStage)
|
|
|
|
|
NetManager.SevenWorldInfoRequest(0,function (msg)
|
|
|
|
|
QiJieShiLianManager.IsLock = false
|
|
|
|
|
if qiejieConfig[msg.id] then
|
|
|
|
|
UIManager.OpenPanel(UIName.QiJieShiLianPanel)
|
|
|
|
|
else
|
|
|
|
|
LogError("七界试炼不存在该ID:"..tostring(msg.id))
|
|
|
|
|
PopupTipPanel.ShowTip("无法进入,请联系客服!")
|
|
|
|
|
end
|
|
|
|
|
end)
|
2021-09-24 16:47:06 +08:00
|
|
|
|
end)
|
2021-09-23 14:51:04 +08:00
|
|
|
|
end,
|
2021-10-12 15:33:39 +08:00
|
|
|
|
[JumpType.YuXuLunDao] = function(data)
|
|
|
|
|
QiJieShiLianManager.CheckQiJieJump(FUNCTION_OPEN_TYPE.JumpServer_YuXu,2,function ()
|
2021-10-14 21:30:35 +08:00
|
|
|
|
NetManager.CrossYuXuLunDaoGetInfoRequest(1,function(msg)
|
2021-10-12 15:33:39 +08:00
|
|
|
|
UIManager.OpenPanel(UIName.WorldArenaMainPanel,msg)
|
|
|
|
|
end)
|
|
|
|
|
end)
|
|
|
|
|
end,
|
2021-09-23 16:50:24 +08:00
|
|
|
|
[JumpType.linglongBaojing] = function(data)
|
|
|
|
|
this.JumpActivity(JumpType.linglongBaojing % 10000,data[1])
|
|
|
|
|
end,
|
2021-09-27 14:32:59 +08:00
|
|
|
|
[JumpType.SiXiangXinFa] = function(data)
|
|
|
|
|
UIManager.OpenPanel(UIName.PracticePanel)
|
|
|
|
|
UIManager.OpenPanel(UIName.FourQuadrantPopup)
|
|
|
|
|
end,
|
2022-07-11 15:21:28 +08:00
|
|
|
|
[JumpType.player] = function(data)
|
|
|
|
|
UIManager.OpenPanel(UIName.PracticePanel)
|
|
|
|
|
end,
|
2021-10-15 11:15:42 +08:00
|
|
|
|
[JumpType.YuJianXingShangDian] = function (data) --御剑行商店
|
|
|
|
|
local activityId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.YuJianXing)
|
|
|
|
|
if activityId and activityId > 0 and ActivityGiftManager.IsQualifiled(ActivityTypeDef.YuJianXing) then
|
|
|
|
|
this.JumpActivity(JumpType.YuJianXingShangDian,data[1])
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip("活动尚未开启")
|
|
|
|
|
this.isOpen = false
|
|
|
|
|
end
|
|
|
|
|
end,
|
2021-10-19 10:34:45 +08:00
|
|
|
|
[JumpType.TianShuMiJuan] = function(data)
|
|
|
|
|
UIManager.OpenPanel(UIName.TianShuMiJuan,data[1])
|
|
|
|
|
end,
|
2021-11-10 00:58:39 +08:00
|
|
|
|
[JumpType.JiTianHaoLi] = function(data)
|
|
|
|
|
this.JumpActivity(JumpType.JiTianHaoLi, data[1])
|
|
|
|
|
end,
|
2021-11-22 13:27:54 +08:00
|
|
|
|
[JumpType.LingMaiMiJing] = function(data)
|
|
|
|
|
NetManager.GetLingMaiInfoRequest(0,function ()
|
|
|
|
|
if LingMaiMiJingManager.state == 0 then
|
|
|
|
|
PopupTipPanel.ShowTip("今日不开放灵脉秘境玩法!")
|
|
|
|
|
else
|
|
|
|
|
if not LingMaiMiJingManager.GetData() then
|
|
|
|
|
LogError("灵脉试炼数据为空")
|
|
|
|
|
PopupTipPanel.ShowTip("灵脉暂无法进入,请耐心等待!")
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
UIManager.OpenPanel(UIName.LingMaiMiJingPanel)
|
|
|
|
|
end
|
|
|
|
|
end)
|
|
|
|
|
end,
|
2021-11-26 17:04:54 +08:00
|
|
|
|
[JumpType.honglushop] = function(data)
|
|
|
|
|
this.JumpActivity(JumpType.honglushop, data[1])
|
|
|
|
|
end,
|
2021-12-02 15:18:56 +08:00
|
|
|
|
[JumpType.fangcunxunbaoShop] = function(data)
|
|
|
|
|
this.JumpActivity(JumpType.fangcunxunbaoShop, data[1])
|
|
|
|
|
end,
|
2021-12-03 13:21:15 +08:00
|
|
|
|
[JumpType.ContinuePackage] = function(data,args)
|
|
|
|
|
UIManager.OpenPanel(UIName.ContinuePackagePanel,args[1])
|
|
|
|
|
end,
|
2021-12-06 16:22:13 +08:00
|
|
|
|
[JumpType.shenwaihuashen] = function(data,args)
|
2021-12-06 16:31:30 +08:00
|
|
|
|
UIManager.OpenPanel(UIName.IncarnationPanel,data[1])
|
2021-12-06 16:22:13 +08:00
|
|
|
|
end,
|
2021-12-10 13:57:24 +08:00
|
|
|
|
[JumpType.Gem] = function(data,args)
|
|
|
|
|
UIManager.OpenPanel(UIName.GemPanel,data[1])
|
|
|
|
|
end,
|
2021-12-17 13:29:08 +08:00
|
|
|
|
[JumpType.tehuishangcheng] = function(data,args)
|
|
|
|
|
UIManager.OpenPanel(UIName.ActivityMainPanel,36)
|
|
|
|
|
end,
|
2021-12-31 16:30:53 +08:00
|
|
|
|
[JumpType.HomeLand] = function(data,args)
|
2022-01-06 10:56:59 +08:00
|
|
|
|
HomeLandManager.GetData(function ()
|
|
|
|
|
UIManager.OpenPanel(UIName.HomeLandPanel)
|
|
|
|
|
end)
|
2021-12-31 16:30:53 +08:00
|
|
|
|
end,
|
2021-12-30 13:50:39 +08:00
|
|
|
|
[JumpType.Explor] = function(data,args)
|
|
|
|
|
UIManager.OpenPanel(UIName.ExploreMainPanel)
|
|
|
|
|
end,
|
2022-01-11 11:29:43 +08:00
|
|
|
|
[JumpType.TreasureStoreSeason2] = function(data,args)
|
|
|
|
|
local activityId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.TreasureStoreSeason2)
|
|
|
|
|
if activityId and activityId > 0 and ActivityGiftManager.IsQualifiled(ActivityTypeDef.TreasureStoreSeason2) then
|
|
|
|
|
UIManager.OpenPanel(UIName.TreasureStoreSeason2)
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip("活动尚未开启")
|
|
|
|
|
end
|
|
|
|
|
end,
|
2022-01-19 17:47:07 +08:00
|
|
|
|
[JumpType.zhongzhichengcheng] = function(data,args)
|
|
|
|
|
this.JumpActivity(ActivityTypeDef.zhongzhichengcheng,data[1])
|
|
|
|
|
end,
|
2022-01-20 16:17:26 +08:00
|
|
|
|
[JumpType.zhongzhichengcheng_Explor] = function(data,args)
|
|
|
|
|
if not MyGuildManager.MyGuildInfo or not MyGuildManager.MyGuildInfo.id then
|
|
|
|
|
this.isOpen = false
|
|
|
|
|
PopupTipPanel.ShowTip("需要先加入一个公会!")
|
|
|
|
|
return 0
|
|
|
|
|
end
|
|
|
|
|
if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.Explore) then
|
|
|
|
|
this.isOpen = false
|
|
|
|
|
PopupTipPanel.ShowTip("功能尚未开启")
|
|
|
|
|
return 0
|
|
|
|
|
end
|
|
|
|
|
UIManager.OpenPanel(UIName.ExploreMainPanel)
|
|
|
|
|
end,
|
2020-05-09 13:31:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
2022-02-24 15:56:53 +08:00
|
|
|
|
function this.JumpActivity(data,skipfactor, guideType)
|
2021-05-18 15:50:17 +08:00
|
|
|
|
local isOpen = DynamicActivityManager.IsActivityOpenByJumpIndex(data, skipfactor)
|
|
|
|
|
if not isOpen then
|
|
|
|
|
PopupTipPanel.ShowTip("活动尚未开启")
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2021-05-18 15:50:17 +08:00
|
|
|
|
return
|
|
|
|
|
end
|
2021-07-28 11:20:27 +08:00
|
|
|
|
if isOpen == 1 then
|
|
|
|
|
PopupTipPanel.ShowTip("功能尚未开启")
|
|
|
|
|
this.isOpen = false
|
|
|
|
|
return
|
|
|
|
|
end
|
2021-05-18 21:04:58 +08:00
|
|
|
|
if DynamicActivityManager.curActivityType == data then
|
|
|
|
|
DynamicActivityManager.RemoveUIList()
|
|
|
|
|
end
|
2021-04-08 10:50:19 +08:00
|
|
|
|
if UIManager.IsOpen(UIName.ActivityMainPanel) then
|
2021-03-30 20:17:26 +08:00
|
|
|
|
UIManager.ClosePanel(UIName.ActivityMainPanel)
|
|
|
|
|
end
|
2021-04-27 15:45:49 +08:00
|
|
|
|
DynamicActivityManager.AddUIList(this.jumpId)
|
2022-02-24 15:56:53 +08:00
|
|
|
|
local panel = UIManager.OpenPanel(UIName.ActivityMainPanel,data,skipfactor)
|
|
|
|
|
-- 限时引导光效
|
|
|
|
|
if guideType and guideType > 0 then
|
|
|
|
|
panel:ShowGuideGo(guideType)
|
|
|
|
|
end
|
2021-03-30 20:17:26 +08:00
|
|
|
|
end
|
|
|
|
|
-- function this.GetTip(openType,openValue)
|
|
|
|
|
-- if openType == 1 then
|
|
|
|
|
-- if not FightPointPassManager.IsFightPointPass(openValue) then
|
|
|
|
|
-- local fightConfig = ConfigManager.GetConfigData(ConfigName.MainLevelConfig, openValue)
|
|
|
|
|
-- return string.format("通关%s关卡解锁", fightConfig.Name)
|
|
|
|
|
-- end
|
|
|
|
|
-- elseif openType == 2 then
|
|
|
|
|
-- if PlayerManager.level < openValue then
|
|
|
|
|
-- return string.format("玩家%s级后开放", openValue)
|
|
|
|
|
-- end
|
|
|
|
|
-- end
|
|
|
|
|
-- end
|
2020-05-09 13:31:21 +08:00
|
|
|
|
function this.CheckJump(_jumpId)
|
|
|
|
|
local jumpSData = JumpConfig[_jumpId]
|
|
|
|
|
if jumpSData.Type < 10000 then
|
|
|
|
|
local b = jumpSData and ActTimeCtrlManager.SingleFuncState(jumpSData.Type)
|
|
|
|
|
if not b then
|
|
|
|
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(jumpSData.Type))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
return b
|
|
|
|
|
else
|
|
|
|
|
return true
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function this.GoJumpWithoutTip(_jumpId)
|
|
|
|
|
local jumpSData = JumpConfig[_jumpId]
|
|
|
|
|
if jumpSData then
|
|
|
|
|
jumpDic[jumpSData.Type](jumpSData.Skipfactor)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
2021-12-03 13:21:15 +08:00
|
|
|
|
function this.GoJump(_jumpId,fun,...)
|
|
|
|
|
local args = {...}
|
2021-07-28 11:20:27 +08:00
|
|
|
|
Log("jumpId:"..tostring(_jumpId))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = true
|
2021-03-30 20:17:26 +08:00
|
|
|
|
this.jumpId = _jumpId
|
2020-05-09 13:31:21 +08:00
|
|
|
|
local jumpSData = JumpConfig[_jumpId]
|
|
|
|
|
if jumpSData then
|
|
|
|
|
if jumpSData.Type < 10000 then
|
|
|
|
|
local serData = ActTimeCtrlManager.GetSerDataByTypeId(jumpSData.Type)
|
2020-12-24 15:40:30 +08:00
|
|
|
|
if serData then
|
2020-05-09 13:31:21 +08:00
|
|
|
|
if ActTimeCtrlManager.SingleFuncState(jumpSData.Type) then
|
|
|
|
|
jumpDic[jumpSData.Type](jumpSData.Skipfactor)
|
|
|
|
|
else
|
|
|
|
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(jumpSData.Type))
|
2021-07-02 11:23:07 +08:00
|
|
|
|
this.isOpen = false
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
else
|
2021-12-03 13:21:15 +08:00
|
|
|
|
jumpDic[jumpSData.Type](jumpSData.Skipfactor,args)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
else
|
2021-12-03 13:21:15 +08:00
|
|
|
|
jumpDic[jumpSData.Type](jumpSData.Skipfactor,args)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
end
|
2020-12-24 16:33:15 +08:00
|
|
|
|
if fun then
|
2021-07-02 11:23:07 +08:00
|
|
|
|
fun(this.isOpen)
|
2020-12-24 16:33:15 +08:00
|
|
|
|
end
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function this.ShowGuide(panelId, targetGO)
|
|
|
|
|
local go = poolManager:LoadAsset("GuideEffect", PoolManager.AssetType.GameObject)
|
|
|
|
|
go.transform:SetParent(targetGO.transform)
|
|
|
|
|
go.transform.localPosition = Vector3.zero
|
|
|
|
|
go.transform.localScale = Vector3.one
|
|
|
|
|
go.transform:SetAsLastSibling()
|
|
|
|
|
|
|
|
|
|
local layer = tonumber(go.name) or 0
|
|
|
|
|
Util.AddParticleSortLayer(go, UIManager.GetOpenPanel(panelId).sortingOrder - layer)
|
|
|
|
|
go.name = tostring(UIManager.GetOpenPanel(panelId).sortingOrder)
|
|
|
|
|
Util.GetGameObject(go, "GameObject"):SetActive(true)
|
|
|
|
|
|
|
|
|
|
local update
|
|
|
|
|
update = function()
|
|
|
|
|
if Input.GetMouseButtonDown(0) then
|
|
|
|
|
poolManager:UnLoadAsset("GuideEffect", go, PoolManager.AssetType.GameObject)
|
|
|
|
|
UpdateBeat:Remove(update, this)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
UpdateBeat:Add(update, this)
|
|
|
|
|
end
|
|
|
|
|
|
2020-06-23 18:36:24 +08:00
|
|
|
|
return this
|