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