角色星级扩展

dev_chengFeng
wangzhenxing 2022-11-02 16:26:40 +08:00
parent d99afa9b3e
commit 0543114a36
5 changed files with 14 additions and 8 deletions

View File

@ -451,7 +451,7 @@ function SetHeroFlyEffect(par,spLoader,_star,_layer,_scale,imgFloor,addY,isList)
local go=img
if _star>11 then
if _star>13 then
go.gameObject:SetActive(true)
go.gameObject:SetActive(false)
else
go.gameObject:SetActive(false)
end
@ -545,7 +545,7 @@ function SetHeroFormationFlyEffect(par,spLoader,effect,_star,_layer)
return
end
img=img:GetComponent("Image")
img.gameObject:SetActive(true)
img.gameObject:SetActive(false)
if _star==12 then
img.sprite=spLoader:LoadSprite("r_tongyong_tianfufeisheng_kapai1")
elseif _star==13 then
@ -793,7 +793,7 @@ function SetHeroBg(spLoader, bg,cardBg,star,quality,layer)
bgEffect2:SetActive(false)
long:SetActive(false)
if star>13 then
flyImg.gameObject:SetActive(true)
flyImg.gameObject:SetActive(false)
if star==14 then
shan:SetActive(true)
flyImg:GetComponent("Image").sprite=spLoader:LoadSprite("r_tongyong_tianfufeisheng_kapai1")

View File

@ -102,9 +102,9 @@ function this:OnOpen(...)
end
if curSkillData.needStar and curSkillData.needStar~=1 then
LogError("urSkillData.needStar=="..curSkillData.needStar)
if curSkillData.needStar==13 then
if curSkillData.needStar==16 then
--this.hintTxt.text=" ".."飞升3解锁"
des1="<color=red>".."飞升2解锁".."</color>".."\n"..des1
des1="<color=red>".."飞升5解锁".."</color>".."\n"..des1
else
--this.hintTxt.text=" "..
des1="<color=red>"..NumToSimplenessFont[curSkillData.needStar].."星解锁\n".."</color>"..des1

View File

@ -157,6 +157,12 @@ function RoleFlyUpLayout:UpdateHeroUpStarData()
elseif curHeroData.star==13 then
str="r_tongyong_tianfufeishengxiao3"
flyStr="飞升三阶"
elseif curHeroData.star==14 then
str="r_tongyong_tianfufeishengxiao3"
flyStr="飞升四阶"
elseif curHeroData.star==15 then
str="r_tongyong_tianfufeishengxiao3"
flyStr="飞升五阶"
else
str="r_hero_tianfu2_zh"
end

View File

@ -372,8 +372,8 @@ function this.SkillInfo()
sText.fontSize = GetCurLanguage() ~= 2 and 30 or 25
Util.SetGray(go,skillList[i].isOpen)
if skillList[i].isOpen then
if skillList[i].needStar==13 then
sText.text="飞升2解锁"
if skillList[i].needStar==16 then
sText.text="飞升5解锁"
else
sText.text=NumToSimplenessFont[skillList[i].needStar].."星解锁"
end

View File

@ -578,7 +578,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 < 14 then
if curHeroData.heroConfig.MaxRank >11 and curHeroData.star>=11 and curHeroData.star < 16 then
tabsList[k].gameObject:SetActive(true)
else
tabsList[k].gameObject:SetActive(false)