fix bug
This commit is contained in:
parent
1439be930e
commit
79aa6b116d
@ -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, "<color=#87FF9E>(" .. I18N:getGlobalText(I18N.GlobalConst.DAILY_CHALLENGE_DESC_8) .. ")</color>")
|
||||
self.upDiffBtn:addRedPoint(70, 22, 0.8)
|
||||
else
|
||||
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
|
||||
self.upDiffBtnDescTx:setText(str)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user