diff --git a/lua/app/config/localization/localization_global_const.lua b/lua/app/config/localization/localization_global_const.lua index 4b00678f..9a99f2db 100644 --- a/lua/app/config/localization/localization_global_const.lua +++ b/lua/app/config/localization/localization_global_const.lua @@ -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 \ No newline at end of file diff --git a/lua/app/config/strings/cn/global.lua b/lua/app/config/strings/cn/global.lua index 57e28eb4..194750a4 100644 --- a/lua/app/config/strings/cn/global.lua +++ b/lua/app/config/strings/cn/global.lua @@ -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 \ No newline at end of file diff --git a/lua/app/ui/daily_challenge/daily_challenge_ui.lua b/lua/app/ui/daily_challenge/daily_challenge_ui.lua index 06404e0c..77cbfbf9 100644 --- a/lua/app/ui/daily_challenge/daily_challenge_ui.lua +++ b/lua/app/ui/daily_challenge/daily_challenge_ui.lua @@ -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, "(" .. I18N:getGlobalText(I18N.GlobalConst.DAILY_CHALLENGE_DESC_8) .. ")") @@ -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 \ No newline at end of file