qinglong commit
parent
e1a2a7cd52
commit
24b4852ea7
|
@ -124,13 +124,17 @@ function this:topBar()
|
|||
local needScore
|
||||
if lv > 0 then
|
||||
local lastRewardData = QinglongSerectTreasureManager.GetRewardData(lv - 1)
|
||||
needScore = lastRewardData.needScore
|
||||
if not lastRewardData then
|
||||
needScore = 0
|
||||
else
|
||||
needScore = lastRewardData.needScore
|
||||
end
|
||||
else
|
||||
needScore = 0
|
||||
end
|
||||
if rewardData.needScore and rewardData.needScore ~= 0 then
|
||||
this.scoreText.text = curScore .."/"..rewardData.needScore - needScore
|
||||
this.progress.fillAmount = curScore/(rewardData.needScore - needScore)
|
||||
this.scoreText.text = curScore .."/"..rewardData.needScore - needScore
|
||||
this.progress.fillAmount = curScore/(rewardData.needScore - needScore)
|
||||
else
|
||||
this.scoreText.text = Language[12351]
|
||||
this.progress.fillAmount = 1
|
||||
|
|
Loading…
Reference in New Issue