英雄升级信息显示修改

wangzhenxing 2023-11-28 13:57:33 +08:00
parent 07372d82b1
commit 5210074f75
3 changed files with 7 additions and 6 deletions

View File

@ -658,11 +658,11 @@ function SetHeroStars(spLoader, starGrid, star, type,_starSize,_scale,_pivot,rot
if type==nil then
type=1
end
if star>11 then
if star>=11 then
type=3
end
if type==3 then
star=star-11
star=star-10
end
local starSize
if not _starSize and type == 3 then
@ -702,7 +702,7 @@ function SetHeroStars(spLoader, starGrid, star, type,_starSize,_scale,_pivot,rot
starPre:GetComponent("LayoutGroup").spacing = scale
starPre:GetComponent("RectTransform").pivot = pivot
starPre.transform:GetChild(0).gameObject:SetActive(false)
--LogError("star============="..star.." type=========="..type)
LogError("star============="..star.." type=========="..type)
if star < 7 and type and type == 3 then
starPre.transform:GetChild(0).gameObject:SetActive(true)
for i = 2, 24 do

View File

@ -200,7 +200,7 @@ function this.UpdateHeroDatas(_msgHeroData, isFindHandBook)
local godSoulLv = GodSoulManager.GetGodSoulLv(heroData.dynamicId)
if godSoulLv and godSoulLv > 0 then
return godSoulLv,3
elseif heroData.star >= 12 then
elseif heroData.star >= 11 then
return heroData.star,3
elseif heroData.star > 9 then
return heroData.star,2
@ -1213,6 +1213,7 @@ function this.UpdateHeroLvEnd()
if heroEndStar == nil then
heroEndStar = v.Star
end
LogError("heroEndStar================="..heroEndStar)
for i, v2 in ConfigPairs(heroRankUpConfig) do
if v2.Star == v.Star then
if v2.OpenStar == heroEndStar then

View File

@ -590,7 +590,7 @@ function this:UpdateBtnList()
tabsList[k].gameObject:SetActive(false)
end
elseif k == RoleInfoPanelIndex.jinjie then
if curHeroData.star < 11 then
if curHeroData.star < 10 then
tabsList[k].gameObject:SetActive(true)
else
tabsList[k].gameObject:SetActive(false)
@ -610,7 +610,7 @@ function this:UpdateBtnList()
end
elseif k == RoleInfoPanelIndex.feiSheng then
local isopen=ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.FlyUp)
if curHeroData.heroConfig.MaxRank >11 and curHeroData.star>=11 and curHeroData.star < 16 then
if curHeroData.heroConfig.MaxRank >11 and curHeroData.star>=10 and curHeroData.star < 15 then
tabsList[k].gameObject:SetActive(true)
else
tabsList[k].gameObject:SetActive(false)