This commit is contained in:
puxuan 2025-10-28 18:33:26 +08:00
parent 48dd8543a7
commit 3961798e5b
4 changed files with 9 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)