From 3961798e5b30a97d2cc653226f1e98822c82210e Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Tue, 28 Oct 2025 18:33:26 +0800 Subject: [PATCH] fix bug --- lua/app/ui/arena/arena_ui.lua | 6 ++++++ lua/app/ui/fund/fund_chapter_comp.lua | 2 +- lua/app/ui/fund/fund_level_comp.lua | 2 +- lua/app/ui/shop/first_recharge_ui.lua | 3 +-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lua/app/ui/arena/arena_ui.lua b/lua/app/ui/arena/arena_ui.lua index bf6d6288..a04cc244 100644 --- a/lua/app/ui/arena/arena_ui.lua +++ b/lua/app/ui/arena/arena_ui.lua @@ -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 diff --git a/lua/app/ui/fund/fund_chapter_comp.lua b/lua/app/ui/fund/fund_chapter_comp.lua index a712a303..fad0d164 100755 --- a/lua/app/ui/fund/fund_chapter_comp.lua +++ b/lua/app/ui/fund/fund_chapter_comp.lua @@ -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 diff --git a/lua/app/ui/fund/fund_level_comp.lua b/lua/app/ui/fund/fund_level_comp.lua index 2446b340..0d2bbf5b 100755 --- a/lua/app/ui/fund/fund_level_comp.lua +++ b/lua/app/ui/fund/fund_level_comp.lua @@ -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 diff --git a/lua/app/ui/shop/first_recharge_ui.lua b/lua/app/ui/shop/first_recharge_ui.lua index 5d2484b6..330bce7b 100755 --- a/lua/app/ui/shop/first_recharge_ui.lua +++ b/lua/app/ui/shop/first_recharge_ui.lua @@ -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)