parent
937096d445
commit
c72d3af853
|
@ -590,6 +590,26 @@ function this.CompareWarPower(heroDId)
|
||||||
FormationManager.CheckHeroIdExist(heroDId)
|
FormationManager.CheckHeroIdExist(heroDId)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--对比战力并更新战力值
|
||||||
|
function this.CompareWarPower1(heroDId,oldWarPowerValue)
|
||||||
|
local newWarPowerValue = HeroPowerManager.GetHeroPower(heroDId)
|
||||||
|
heroDatas[heroDId].warPower = newWarPowerValue
|
||||||
|
if oldWarPowerValue and newWarPowerValue then
|
||||||
|
if oldWarPowerValue ~= newWarPowerValue then
|
||||||
|
if
|
||||||
|
not UIManager.IsOpen(UIName.RoleUpStarSuccessPanel) and
|
||||||
|
not UIManager.IsOpen(UIName.RoleUpLvBreakSuccessPanel)
|
||||||
|
then
|
||||||
|
UIManager.OpenPanel(
|
||||||
|
UIName.WarPowerChangeNotifyPanelV2,
|
||||||
|
{oldValue = oldWarPowerValue, newValue = newWarPowerValue}
|
||||||
|
)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
FormationManager.CheckHeroIdExist(heroDId)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--更新本地单个英雄技能信息
|
--更新本地单个英雄技能信息
|
||||||
|
|
|
@ -3914,6 +3914,8 @@ function NetManager.SoulEquipWearRequest(wearInfo, unloadInfo, func)
|
||||||
end
|
end
|
||||||
local msg = data:SerializeToString()
|
local msg = data:SerializeToString()
|
||||||
Network:SendMessageWithCallBack(MessageTypeProto_pb.SOUL_EQUIP_WEAR_REQUEST, MessageTypeProto_pb.SOUL_EQUIP_WEAR_RESPONSE, msg, function()
|
Network:SendMessageWithCallBack(MessageTypeProto_pb.SOUL_EQUIP_WEAR_REQUEST, MessageTypeProto_pb.SOUL_EQUIP_WEAR_RESPONSE, msg, function()
|
||||||
|
NetManager.RequestUserForceChange(FormationTypeDef.FORMATION_NORMAL)
|
||||||
|
HeroPropManager.SetDirtyByType(wearInfo.heroId, Hero_Prop_Type.SoulPrint)
|
||||||
if func then
|
if func then
|
||||||
func(msg)
|
func(msg)
|
||||||
end
|
end
|
||||||
|
@ -3929,6 +3931,8 @@ function NetManager.SoulEquipUnLoadWearRequest(_heroId, _equipId,_pos, func)
|
||||||
c.position =_pos
|
c.position =_pos
|
||||||
local msg = data:SerializeToString()
|
local msg = data:SerializeToString()
|
||||||
Network:SendMessageWithCallBack(MessageTypeProto_pb.SOUL_EQUIP_UNLOAD_OPT_REQUEST, MessageTypeProto_pb.SOUL_EQUIP_UNLOAD_OPT_RESPONSE, msg, function()
|
Network:SendMessageWithCallBack(MessageTypeProto_pb.SOUL_EQUIP_UNLOAD_OPT_REQUEST, MessageTypeProto_pb.SOUL_EQUIP_UNLOAD_OPT_RESPONSE, msg, function()
|
||||||
|
NetManager.RequestUserForceChange(FormationTypeDef.FORMATION_NORMAL)
|
||||||
|
HeroPropManager.SetDirtyByType(_heroId, Hero_Prop_Type.SoulPrint)
|
||||||
if func then
|
if func then
|
||||||
func(msg)
|
func(msg)
|
||||||
end
|
end
|
||||||
|
|
|
@ -411,11 +411,12 @@ function this.SetScrollPre(root,data)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local pos=this.GetPos()--位置
|
local pos=this.GetPos()--位置
|
||||||
|
local oldPower = HeroManager.GetSingleHeroData(curHeroData.dynamicId).warPower
|
||||||
UIManager.OpenPanel(UIName.SoulPrintPopUp,1,curHeroData.dynamicId,data.id,pos,function()
|
UIManager.OpenPanel(UIName.SoulPrintPopUp,1,curHeroData.dynamicId,data.id,pos,function()
|
||||||
PopupTipPanel.ShowTip(Language[11526])
|
PopupTipPanel.ShowTip(Language[11526])
|
||||||
this.RefreshShow()
|
this.RefreshShow()
|
||||||
--对比战力并更新战力值 播放战力变更动画
|
--对比战力并更新战力值 播放战力变更动画
|
||||||
HeroManager.CompareWarPower(curHeroData.dynamicId)
|
HeroManager.CompareWarPower1(curHeroData.dynamicId,oldPower)
|
||||||
end,data)
|
end,data)
|
||||||
-- end
|
-- end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue