回春散手动使用次数不刷新修复
parent
bf37ff8cea
commit
252fec5bbd
|
|
@ -600,6 +600,7 @@ function this.SetSelectHero(isFirstIn,isFirstData,isMainIn)
|
||||||
MapManager.addHpCount=MapManager.addHpCount+1
|
MapManager.addHpCount=MapManager.addHpCount+1
|
||||||
PopupTipPanel.ShowTip(string.format(Language[11265],itemConfig[itemId].Name))
|
PopupTipPanel.ShowTip(string.format(Language[11265],itemConfig[itemId].Name))
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.Map.RefreshHeroHp,false,nil,false)--打完刷新血量
|
Game.GlobalEvent:DispatchEvent(GameEvent.Map.RefreshHeroHp,false,nil,false)--打完刷新血量
|
||||||
|
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.OnTempBagChanged)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ function GeneralPopup:BindEvent()
|
||||||
end
|
end
|
||||||
--返回按钮
|
--返回按钮
|
||||||
Util.AddClick(this.backBtn,function()
|
Util.AddClick(this.backBtn,function()
|
||||||
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
|
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.OnTempBagChanged)
|
||||||
self:ClosePanel()
|
self:ClosePanel()
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ end
|
||||||
function this:BindEvent()
|
function this:BindEvent()
|
||||||
--取消按钮
|
--取消按钮
|
||||||
Util.AddClick(this.cancelBtn,function()
|
Util.AddClick(this.cancelBtn,function()
|
||||||
|
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.OnTempBagChanged)
|
||||||
parent:ClosePanel()
|
parent:ClosePanel()
|
||||||
end)
|
end)
|
||||||
--使用按钮
|
--使用按钮
|
||||||
|
|
@ -74,6 +75,7 @@ function this:BindEvent()
|
||||||
curHeroHp=10000
|
curHeroHp=10000
|
||||||
end
|
end
|
||||||
MapTrialManager.SetHeroHp({curHeroHp},selectHeroDid)
|
MapTrialManager.SetHeroHp({curHeroHp},selectHeroDid)
|
||||||
|
Game.GlobalEvent:DispatchEvent(GameEvent.Map.RefreshHeroHp,false,nil,false)
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.OnTempBagChanged)
|
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.OnTempBagChanged)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue