This commit is contained in:
puxuan 2025-09-22 10:18:07 +08:00
parent 50cc038083
commit 8424f7c65d
3 changed files with 6 additions and 2 deletions

View File

@ -752,6 +752,7 @@ local LocalizationGlobalConst =
EQUIP_QLT_SELECT_ALL_1 = "EQUIP_QLT_SELECT_ALL_1",
EQUIP_QLT_SELECT_ALL_2 = "EQUIP_QLT_SELECT_ALL_2",
REBACK_MATERIAL_DESC = "REBACK_MATERIAL_DESC",
DAILY_CHALLENGE_DESC_9 = "DAILY_CHALLENGE_DESC_9",
}
return LocalizationGlobalConst

View File

@ -752,6 +752,7 @@ local localization_global =
["EQUIP_QLT_SELECT_ALL_1"] = "所有品质",
["EQUIP_QLT_SELECT_ALL_2"] = "所有部位",
["REBACK_MATERIAL_DESC"] = "分解获得",
["DAILY_CHALLENGE_DESC_9"] = "难度:{0}",
}
return localization_global

View File

@ -52,6 +52,7 @@ function DailyChallengeUI:onLoadRootComplete()
self.debuffBtn = uiMap["daily_challenge_ui.buffs.debuff"]
self.bossSpine = uiMap["daily_challenge_ui.spine_node"]
self.countdownTx = uiMap["daily_challenge_ui.countdown.time_tx"]
self.diffTx = uiMap["daily_challenge_ui.diff_tx"]
self.fightBtn = uiMap["daily_challenge_ui.fight_btn"]
-- 体力消耗
@ -246,8 +247,8 @@ function DailyChallengeUI:refreshDiffBtn()
self.upDiffBtn:setActive(true)
local cfg = DataManager.DailyChallengeData:getDifficultyCfg(diffChapter + 1)
local chapterId = DataManager.ChapterData:getMaxChapterId()
local chapterPage = DataManager.ChapterData:getChapterPage(diffChapter + 1)
local chapterStage = DataManager.ChapterData:getChapterStage(diffChapter + 1)
local chapterPage = DataManager.ChapterData:getChapterPage(cfg.max_chapter)
local chapterStage = DataManager.ChapterData:getChapterStage(cfg.max_chapter)
local str
if cfg.max_chapter <= chapterId then
str = I18N:getGlobalText(I18N.GlobalConst.DAILY_CHALLENGE_DESC_3, chapterPage, chapterStage, "<color=#87FF9E>(" .. I18N:getGlobalText(I18N.GlobalConst.DAILY_CHALLENGE_DESC_8) .. ")</color>")
@ -257,6 +258,7 @@ function DailyChallengeUI:refreshDiffBtn()
self.upDiffBtnDescTx:setText(str)
end
self.downDiffBtn:setActive(diffChapter > 1)
self.diffTx:setText(I18N:getGlobalText(I18N.GlobalConst.DAILY_CHALLENGE_DESC_9, diffChapter))
end
return DailyChallengeUI