英雄信息界面修改
parent
105c8f19b2
commit
416289d692
|
|
@ -380,8 +380,7 @@ function RoleInfoPanel:OnShow()
|
|||
this.rightLiveObj = HeroManager.LoadHerolive(rightHeroData,this.rightObj)
|
||||
|
||||
this.curLiveObj = HeroManager.LoadHerolive(curHeroData,this.curObj)
|
||||
local t=ConfigManager.TryGetAllConfigsDataByKey(ConfigName.Train,"HeroID",curHeroData.id)
|
||||
this.trainingBtn:SetActive(CheckFunctionOpen(FUNCTION_OPEN_TYPE.Train) and #t~=0)
|
||||
|
||||
local leftToward=0
|
||||
if leftHeroData.skinId and leftHeroData.skinId~=0 then
|
||||
local roleCon=ConfigManager.TryGetConfigData(ConfigName.RoleConfig,leftHeroData.skinId)
|
||||
|
|
@ -741,6 +740,8 @@ function this:UpdateHeroInfoData()
|
|||
this.GodSoulBtn.gameObject:SetActive(CheckFunctionOpen(FUNCTION_OPEN_TYPE.shenhun) and curHeroData.heroConfig.IsSoulOpen)
|
||||
this.potencyObj:SetActive(CheckFunctionOpen(FUNCTION_OPEN_TYPE.Potency))
|
||||
this.giftBtn.gameObject:SetActive(CheckFunctionOpen(FUNCTION_OPEN_TYPE.Gift))
|
||||
local t=ConfigManager.TryGetAllConfigsDataByKey(ConfigName.Train,"HeroID",curHeroData.id)
|
||||
this.trainingBtn:SetActive(CheckFunctionOpen(FUNCTION_OPEN_TYPE.Train) and #t~=0)
|
||||
for k,v in pairs(this.PageList) do
|
||||
v:OnHide()
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue