数字修改提交
parent
c5ecf50429
commit
a35b9d404b
|
@ -57,13 +57,13 @@ function this:OnShow(_parent,...)
|
|||
data[oldIndex][index].id = curHeroData.heroConfig.Id
|
||||
data[oldIndex][index].star = v[1]
|
||||
data[oldIndex][index].property = curHeroData.heroConfig.PropertyName
|
||||
data[oldIndex][index].num = 1
|
||||
data[oldIndex][index].num = 0
|
||||
index = index + 1
|
||||
data[oldIndex][index] = {}
|
||||
data[oldIndex][index].id = curHeroData.heroConfig.Id
|
||||
data[oldIndex][index].star = v[1] - 1
|
||||
data[oldIndex][index].property = curHeroData.heroConfig.PropertyName
|
||||
data[oldIndex][index].num = 1
|
||||
data[oldIndex][index].num = 0
|
||||
end
|
||||
index = index + 1
|
||||
if not data[oldIndex][index] then
|
||||
|
@ -141,7 +141,7 @@ function this:OnShow(_parent,...)
|
|||
icon.gameObject:SetActive(false)
|
||||
frame.sprite=this.spLoader:LoadSprite(GetHeroQuantityImageByquality(nil,v.star))
|
||||
end
|
||||
num.text = v.num
|
||||
num.text = v.num > 0 and v.num or ""
|
||||
SetHeroStars(this.spLoader, starGrid, v.star,1,nil,-15.3)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue