神王进阶修改
parent
dfe4d62bd8
commit
867de386cd
|
|
@ -8320,7 +8320,6 @@ function this.shenwangUpLvRequest(heroId, consumeMaterials, func)
|
|||
local data = buffer:DataByte()
|
||||
local msg = HeroInfoProto_pb.shenwangUpLvResponse()
|
||||
msg:ParseFromString(data)
|
||||
UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1)
|
||||
-- 基础属性重新计算
|
||||
HeroPropManager.SetDirtyByType(heroId, Hero_Prop_Type.GodKing)
|
||||
if func then
|
||||
|
|
|
|||
|
|
@ -57,13 +57,15 @@ function this:BindEvent()
|
|||
PlaySoundWithoutClick(SoundConfig.Sound_Recruit3)
|
||||
if lastPanel then
|
||||
--LogError("刷新神王界面·······")
|
||||
lastPanel:OnOpen(curHeroData,1)
|
||||
--lastPanel:OnOpen(curHeroData,1)
|
||||
UIManager.OpenPanel(UIName.RoleGodKingLayout,curHeroData,1)
|
||||
UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1)
|
||||
end
|
||||
self:ClosePanel()
|
||||
end)
|
||||
|
||||
else
|
||||
LogError("材料不足无法,,,,,,,,,,,,,,,,,,,,,,,,")
|
||||
PopupTipPanel.ShowTip(Language[10415])
|
||||
end
|
||||
end)
|
||||
|
|
@ -80,11 +82,13 @@ function this:RemoveListener()
|
|||
end
|
||||
|
||||
function this:OnShow()
|
||||
|
||||
end
|
||||
|
||||
|
||||
--界面打开时调用(用于子类重写)
|
||||
function this:OnOpen(_curHeroData,_config,_lastPanel)
|
||||
isUpStarMaterials=true
|
||||
shenWangConfig=_config
|
||||
lastPanel=_lastPanel
|
||||
Util.ClearChild(this.grid.transform)
|
||||
|
|
|
|||
Loading…
Reference in New Issue