fix bug
This commit is contained in:
parent
48dd8543a7
commit
3961798e5b
@ -1,6 +1,8 @@
|
||||
local ArenaUI = class("ArenaUI", BaseUI)
|
||||
|
||||
-- local GIFT_CELL = "app/ui/main_city/cell/side_bar_arena_gift_cell"
|
||||
local BG_PATH = "assets/arts/textures/background/arena/arena_main_bg_%s.png"
|
||||
|
||||
function ArenaUI:isFullScreen()
|
||||
return false
|
||||
end
|
||||
@ -44,6 +46,7 @@ function ArenaUI:onLoadRootComplete()
|
||||
self:closeUI()
|
||||
end)
|
||||
|
||||
self.bg = uiMap["arena_ui.bg"]
|
||||
self.txSeason = uiMap["arena_ui.tx_season"]
|
||||
self.txTitle = uiMap["arena_ui.tx_title"]
|
||||
self.txCountdown = uiMap["arena_ui.countdown.tx_time"]
|
||||
@ -219,6 +222,8 @@ function ArenaUI:refreshBounty()
|
||||
end
|
||||
|
||||
function ArenaUI:refreshInfo()
|
||||
local rankIdx = DataManager.ArenaData:getFormartMaxGrading()
|
||||
rankIdx = (rankIdx - 1) // 3 + 1
|
||||
local gradingId = DataManager.ArenaData:getGradingId()
|
||||
local totalScore = DataManager.ArenaData:getScore()
|
||||
local maxScore = DataManager.ArenaData:getGradingScoreTotal(totalScore)
|
||||
@ -227,6 +232,7 @@ function ArenaUI:refreshInfo()
|
||||
local gradingNumName = DataManager.ArenaData:getGradingNumName(gradingId)
|
||||
self.txSeason:setText(I18N:getGlobalText(I18N.GlobalConst.ARENA_DESC_3, DataManager.ArenaData:getSeason()))
|
||||
self.txGarding:setText(DataManager.ArenaData:getGradingName(gradingId))
|
||||
self.bg:setTexture(string.format(BG_PATH, rankIdx))
|
||||
if maxScore then
|
||||
self.txProg:setText(curScore.."/"..maxScore)
|
||||
self.imgProg:getComponent(GConst.TYPEOF_UNITY_CLASS.BF_SLIDER).value = curScore/maxScore
|
||||
|
||||
@ -178,7 +178,7 @@ function FundChapterComp:refreshStageTags()
|
||||
self.tagDescs[i]:setText(I18N:getGlobalText(I18N.GlobalConst["FUND_CHAPTER_TAG_DESC_" .. stage]))
|
||||
|
||||
if DataManager.ChapterFundData:canGetRewards(stage) then
|
||||
tag:addRedPoint(80, 33, 0.9)
|
||||
tag:addRedPoint(74, 22, 0.9)
|
||||
else
|
||||
tag:removeRedPoint()
|
||||
end
|
||||
|
||||
@ -201,7 +201,7 @@ function FundLevelComp:refreshStageTags()
|
||||
self.tagDescs[i]:setText(I18N:getGlobalText(I18N.GlobalConst["FUND_TAG_DESC_" .. stage]))
|
||||
|
||||
if DataManager.FundLevelData:canGetRewards(stage) then
|
||||
tag:addRedPoint(80, 33, 0.9)
|
||||
tag:addRedPoint(74, 22, 0.9)
|
||||
else
|
||||
tag:removeRedPoint()
|
||||
end
|
||||
|
||||
@ -140,8 +140,7 @@ function FirstRechargeUI:onRefresh()
|
||||
local tips
|
||||
local spineName
|
||||
tips = I18N:getGlobalText(I18N.GlobalConst["FIRST_CHARGE_TIPS_" .. self.curGear], price)
|
||||
spineName = "ui_first_dec_" .. self.curGear
|
||||
spineName = "ui_first_dec_1"
|
||||
spineName = "ui_act_first_" .. self.curGear
|
||||
self.txTips:setText(tips)
|
||||
|
||||
self.spineBanner:setActive(false)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user