【道具使用跳转】跳转后返回关闭弹窗界面

ZhangBiao 2020-12-24 16:33:15 +08:00
parent e7698bd4e1
commit 150ec3eb2f
2 changed files with 12 additions and 9 deletions

View File

@ -636,7 +636,7 @@ function this.GoJumpWithoutTip(_jumpId)
end
end
function this.GoJump(_jumpId)
function this.GoJump(_jumpId,fun)
local jumpSData = JumpConfig[_jumpId]
if jumpSData then
if jumpSData.Type < 10000 then
@ -654,6 +654,9 @@ function this.GoJump(_jumpId)
jumpDic[jumpSData.Type](jumpSData.Skipfactor)
end
end
if fun then
fun()
end
end
function this.ShowGuide(panelId, targetGO)

View File

@ -62,9 +62,7 @@ function RewardItemSingleShowPopup:BindEvent()
NetManager.HeroComposeRequest(item,function (drop)
this.SendBackCompoundReCallBack(drop)
end)
if compoundNum>0 then
else
if compoundNum<=0 then
PopupTipPanel.ShowTip(Language[10200])
end
else
@ -93,7 +91,7 @@ function RewardItemSingleShowPopup:BindEvent()
UIManager.OpenPanel(UIName.CreateNamePopup)
elseif itemConfigData.ItemType == ItemType.Skin then
local group = ConfigManager.GetConfigData(ConfigName.RewardGroup,tonumber(itemConfig[itemSid].ResolveReward)).ShowItem
MsgPanel.ShowTwo(string.format("分解后可获得%s%s,是否继续分解",group[1][2],itemConfig[group[1][1]].Name),function()
MsgPanel.ShowTwo(string.format("分解后可获得%s%s,是否继续分解",group[1][2],itemConfig[group[1][1]].Name),function()
end, function()
local curResolveAllItemList = {}
table.insert(curResolveAllItemList,{itemId = itemSid,itemNum = 1})
@ -114,7 +112,7 @@ function RewardItemSingleShowPopup:BindEvent()
local skinConfig = ConfigManager.GetConfigData(ConfigName.HeroSkin,itemSid)
if HeroSkinManager.IsExist(skinConfig.Type) then
PopupTipPanel.ShowTip("已解锁该皮肤,请在皮肤有效期之后再解锁")
else
else
local curResolveAllItemList = {}
table.insert(curResolveAllItemList,{itemId = itemSid,itemNum = 1})
NetManager.UseAndPriceItemRequest(0,curResolveAllItemList,function (drop)
@ -124,14 +122,16 @@ function RewardItemSingleShowPopup:BindEvent()
local herodata = HeroManager.GetHeroDataByHeroSIdAndMinSortIdAndSkinId(skinConfig.HeroId,skinConfig.Type)
LogGreen("herodata.dynamicId:"..tostring(herodata.dynamicId))
UIManager.OpenPanel(UIName.RoleInfoPanel,herodata, HeroManager.GetAllHeroDatas(),true,5)
end,"取消","确定","",false,"")
end,"取消","确定","",false,"")
else
PopupTipPanel.ShowTip(string.format("成功解锁皮肤%s",skinConfig.ReadingName))
end
end
end)
end
elseif itemConfigData then
JumpManager.GoJump(itemConfigData.UseJump)
JumpManager.GoJump(itemConfigData.UseJump,function ()
this:ClosePanel()
end)
end
end)
end