parent
39b9488286
commit
763c45ebd0
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue