神王进阶修改

tcx_xiyou_zeroOne_dev
wangzhenxing 2024-08-08 22:23:29 +08:00
parent dfe4d62bd8
commit 867de386cd
2 changed files with 5 additions and 2 deletions

View File

@ -8320,7 +8320,6 @@ function this.shenwangUpLvRequest(heroId, consumeMaterials, func)
local data = buffer:DataByte() local data = buffer:DataByte()
local msg = HeroInfoProto_pb.shenwangUpLvResponse() local msg = HeroInfoProto_pb.shenwangUpLvResponse()
msg:ParseFromString(data) msg:ParseFromString(data)
UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1)
-- 基础属性重新计算 -- 基础属性重新计算
HeroPropManager.SetDirtyByType(heroId, Hero_Prop_Type.GodKing) HeroPropManager.SetDirtyByType(heroId, Hero_Prop_Type.GodKing)
if func then if func then

View File

@ -57,13 +57,15 @@ function this:BindEvent()
PlaySoundWithoutClick(SoundConfig.Sound_Recruit3) PlaySoundWithoutClick(SoundConfig.Sound_Recruit3)
if lastPanel then if lastPanel then
--LogError("刷新神王界面·······") --LogError("刷新神王界面·······")
lastPanel:OnOpen(curHeroData,1) --lastPanel:OnOpen(curHeroData,1)
UIManager.OpenPanel(UIName.RoleGodKingLayout,curHeroData,1) UIManager.OpenPanel(UIName.RoleGodKingLayout,curHeroData,1)
UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1)
end end
self:ClosePanel() self:ClosePanel()
end) end)
else else
LogError("材料不足无法,,,,,,,,,,,,,,,,,,,,,,,,")
PopupTipPanel.ShowTip(Language[10415]) PopupTipPanel.ShowTip(Language[10415])
end end
end) end)
@ -80,11 +82,13 @@ function this:RemoveListener()
end end
function this:OnShow() function this:OnShow()
end end
--界面打开时调用(用于子类重写) --界面打开时调用(用于子类重写)
function this:OnOpen(_curHeroData,_config,_lastPanel) function this:OnOpen(_curHeroData,_config,_lastPanel)
isUpStarMaterials=true
shenWangConfig=_config shenWangConfig=_config
lastPanel=_lastPanel lastPanel=_lastPanel
Util.ClearChild(this.grid.transform) Util.ClearChild(this.grid.transform)