【升星界面调整】9升10星,十星位置需调整

dev_chengFeng
zhangqiang 2021-02-24 10:53:21 +08:00
parent dc42a492e7
commit ac3fe3f251
1 changed files with 6 additions and 0 deletions

View File

@ -242,7 +242,13 @@ function this:UpdateHeroUpStarProUpShow()
if upStarRankUpConfig and upStarRankUpConfig.Id then
local size = Vector2.New (45,45)
SetHeroStars(this.curStarGrid, curHeroData.star,2,size,-9)
local nextStarPos = Vector3.New(0,0,0)
if curHeroData.star + 1 == 10 then nextStarPos = Vector3.New(0,-18.65,0) end
SetHeroStars(this.nextStarGrid, curHeroData.star + 1,2,size,-9)
local nextStarGridGo = Util.GetGameObject(this.nextStarGrid,"starGrid(Clone)")
if nextStarGridGo then
nextStarGridGo.transform.localPosition = nextStarPos
end
--this.curLvEnd.text = HeroManager.GetCurHeroStarLvEnd(1,curHeroData)
--this.nextLvEnd.text = HeroManager.GetCurHeroStarLvEnd(2,curHeroData,curHeroData.breakId,upStarRankUpConfig.Id)
local nextUpStarConFig = ConfigManager.GetConfigData(ConfigName.HeroRankupConfig,upStarRankUpConfig.Id)