From 79aa6b116db81bd1d0dfdfc37620d2a4757c1045 Mon Sep 17 00:00:00 2001 From: kai <413323644@qq.com> Date: Tue, 14 Oct 2025 16:35:40 +0800 Subject: [PATCH] fix bug --- lua/app/ui/daily_challenge/daily_challenge_ui.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lua/app/ui/daily_challenge/daily_challenge_ui.lua b/lua/app/ui/daily_challenge/daily_challenge_ui.lua index 4841c6e8..919361be 100644 --- a/lua/app/ui/daily_challenge/daily_challenge_ui.lua +++ b/lua/app/ui/daily_challenge/daily_challenge_ui.lua @@ -23,6 +23,10 @@ function DailyChallengeUI:getPrefabPath() return "assets/prefabs/ui/daily_challenge/daily_challenge_ui.prefab" end +function DailyChallengeUI:onClose() + self.bossSpine:removeAllChildren() +end + function DailyChallengeUI:ctor() ModuleManager.DailyChallengeManager:checkDayChange() end @@ -93,6 +97,11 @@ function DailyChallengeUI:onLoadRootComplete() end, } GFunc.showMessageBox(params) + else + local chapterPage = DataManager.ChapterData:getChapterPage(cfg.max_chapter) + local chapterStage = DataManager.ChapterData:getChapterStage(cfg.max_chapter) + local str = I18N:getGlobalText(I18N.GlobalConst.FUNC_OPEN_STAGE, DataManager.ChapterData:getChapterNameXYMode(cfg.max_chapter)) + GFunc.showToast(str) end end end) @@ -254,8 +263,10 @@ function DailyChallengeUI:refreshDiffBtn() 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) .. ")") + self.upDiffBtn:addRedPoint(70, 22, 0.8) else str = I18N:getGlobalText(I18N.GlobalConst.DAILY_CHALLENGE_DESC_3, chapterPage, chapterStage, "(" .. I18N:getGlobalText(I18N.GlobalConst.CHAPTER_WAVE_REAWRD_1) .. ")") + self.upDiffBtn:removeRedPoint() end self.upDiffBtnDescTx:setText(str) end