【ID1017258】

【碎片合成】碎片仅够合成一个神将时,合成后不自动关闭道具详情界面

(cherry picked from commit 7371405fbd)
dev_chengFeng
jiaoyangna 2021-07-12 11:13:12 +08:00
parent 39b9488286
commit 763c45ebd0
1 changed files with 9 additions and 4 deletions

View File

@ -80,14 +80,11 @@ function RewardItemSingleShowPopup:BindEvent()
item.itemNum=compoundNum*_itemData.itemConfig.UsePerCount item.itemNum=compoundNum*_itemData.itemConfig.UsePerCount
if endHeroNum > 0 then if endHeroNum > 0 then
NetManager.HeroComposeRequest(item,function (drop) NetManager.HeroComposeRequest(item,function (drop)
self:ClosePanel() this.SendBackCompoundReCallBack(drop)
UIManager.OpenPanel(UIName.RewardItemPopup,drop,1,function ()
end,nil,nil,nil,true)
end) end)
if compoundNum<=0 then if compoundNum<=0 then
PopupTipPanel.ShowTip(Language[10183]) PopupTipPanel.ShowTip(Language[10183])
end end
else else
PopupTipPanel.ShowTip(Language[12157]) PopupTipPanel.ShowTip(Language[12157])
end end
@ -226,11 +223,19 @@ end
local callBackFun local callBackFun
function this.SendBackCompoundReCallBack(drop) function this.SendBackCompoundReCallBack(drop)
--this:ClosePanel()
UIManager.OpenPanel(UIName.RewardItemPopup,drop,1,function () UIManager.OpenPanel(UIName.RewardItemPopup,drop,1,function ()
--UIManager.OpenPanel(UIName.BagPanel)
-- if callBackFun then
-- callBackFun()
func() func()
-- end
end,nil,nil,nil,true) end,nil,nil,nil,true)
--改为后端刷新了
--BagManager.UpdateItemsNum(itemData.id,compoundNum*itemData.itemConfig.UsePerCount)
end end
--扣除解锁蓝图材料 并数据 --扣除解锁蓝图材料 并数据
function this.DeleteActiveLanTuData() function this.DeleteActiveLanTuData()
PopupTipPanel.ShowTip(Language[11515] .. GetLanguageStrById(itemConfigData.Name)) PopupTipPanel.ShowTip(Language[11515] .. GetLanguageStrById(itemConfigData.Name))