This commit is contained in:
kai 2025-10-14 16:35:40 +08:00
parent 1439be930e
commit 79aa6b116d

View File

@ -23,6 +23,10 @@ function DailyChallengeUI:getPrefabPath()
return "assets/prefabs/ui/daily_challenge/daily_challenge_ui.prefab" return "assets/prefabs/ui/daily_challenge/daily_challenge_ui.prefab"
end end
function DailyChallengeUI:onClose()
self.bossSpine:removeAllChildren()
end
function DailyChallengeUI:ctor() function DailyChallengeUI:ctor()
ModuleManager.DailyChallengeManager:checkDayChange() ModuleManager.DailyChallengeManager:checkDayChange()
end end
@ -93,6 +97,11 @@ function DailyChallengeUI:onLoadRootComplete()
end, end,
} }
GFunc.showMessageBox(params) 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 end
end) end)
@ -254,8 +263,10 @@ function DailyChallengeUI:refreshDiffBtn()
local str local str
if cfg.max_chapter <= chapterId then 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>") str = I18N:getGlobalText(I18N.GlobalConst.DAILY_CHALLENGE_DESC_3, chapterPage, chapterStage, "<color=#87FF9E>(" .. I18N:getGlobalText(I18N.GlobalConst.DAILY_CHALLENGE_DESC_8) .. ")</color>")
self.upDiffBtn:addRedPoint(70, 22, 0.8)
else else
str = I18N:getGlobalText(I18N.GlobalConst.DAILY_CHALLENGE_DESC_3, chapterPage, chapterStage, "<color=#FF8787>(" .. I18N:getGlobalText(I18N.GlobalConst.CHAPTER_WAVE_REAWRD_1) .. ")</color>") str = I18N:getGlobalText(I18N.GlobalConst.DAILY_CHALLENGE_DESC_3, chapterPage, chapterStage, "<color=#FF8787>(" .. I18N:getGlobalText(I18N.GlobalConst.CHAPTER_WAVE_REAWRD_1) .. ")</color>")
self.upDiffBtn:removeRedPoint()
end end
self.upDiffBtnDescTx:setText(str) self.upDiffBtnDescTx:setText(str)
end end