【ID1011391】

飞升鸿蒙阵等级限制调整

(cherry picked from commit 0f69eb822293597556fe825a6b9f99d27b8d8f91)
dev_chengFeng
jiaoyangna 2022-03-29 16:16:28 +08:00
parent 9f2b6a80b5
commit 701938ad27
1 changed files with 14 additions and 0 deletions

View File

@ -60,6 +60,8 @@ function RoleFlyUpLayout:InitComponent()
this.help=Util.GetGameObject(self.gameObject,"upStar/btns/help")
this.heroSource = Util.GetGameObject(self.gameObject,"upStar/btns/heroSource")
this.tip = Util.GetGameObject(self.gameObject,"upStar/tip"):GetComponent("Text")
end
--绑定事件用于子类重写s
@ -113,6 +115,18 @@ function RoleFlyUpLayout:SetData(_sortinglayer,_parent,_curHerodata,_isUpZhen,_h
isUpZhen = _isUpZhen
this:GetCurHeroUpLvOrUpStarSData()
this:UpdateHeroUpStarData()--进阶
if upStarRankUpConfig then
LogGreen("AddLv:"..HarmonyManager.GetSingleAdditions(HarmonyAddType.AddLv).." LimitHongmengLevel:"..upStarRankUpConfig.LimitHongmengLevel)
if HarmonyManager.GetSingleAdditions(HarmonyAddType.AddLv) >= upStarRankUpConfig.LimitHongmengLevel then -- 鸿蒙阵神将共鸣等级
this.upStarBtn.gameObject:SetActive(true)
this.tip.gameObject:SetActive(false)
else
this.upStarBtn.gameObject:SetActive(false)
this.tip.gameObject:SetActive(true)
this.tip.text = "飞升需求鸿蒙阵等级:"..upStarRankUpConfig.LimitHongmengLevel
end
end
end
--更新英雄进阶数据