fix bug
This commit is contained in:
parent
50cc038083
commit
8424f7c65d
@ -752,6 +752,7 @@ local LocalizationGlobalConst =
|
|||||||
EQUIP_QLT_SELECT_ALL_1 = "EQUIP_QLT_SELECT_ALL_1",
|
EQUIP_QLT_SELECT_ALL_1 = "EQUIP_QLT_SELECT_ALL_1",
|
||||||
EQUIP_QLT_SELECT_ALL_2 = "EQUIP_QLT_SELECT_ALL_2",
|
EQUIP_QLT_SELECT_ALL_2 = "EQUIP_QLT_SELECT_ALL_2",
|
||||||
REBACK_MATERIAL_DESC = "REBACK_MATERIAL_DESC",
|
REBACK_MATERIAL_DESC = "REBACK_MATERIAL_DESC",
|
||||||
|
DAILY_CHALLENGE_DESC_9 = "DAILY_CHALLENGE_DESC_9",
|
||||||
}
|
}
|
||||||
|
|
||||||
return LocalizationGlobalConst
|
return LocalizationGlobalConst
|
||||||
@ -752,6 +752,7 @@ local localization_global =
|
|||||||
["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"] = "难度:{0}",
|
||||||
}
|
}
|
||||||
|
|
||||||
return localization_global
|
return localization_global
|
||||||
@ -52,6 +52,7 @@ function DailyChallengeUI:onLoadRootComplete()
|
|||||||
self.debuffBtn = uiMap["daily_challenge_ui.buffs.debuff"]
|
self.debuffBtn = uiMap["daily_challenge_ui.buffs.debuff"]
|
||||||
self.bossSpine = uiMap["daily_challenge_ui.spine_node"]
|
self.bossSpine = uiMap["daily_challenge_ui.spine_node"]
|
||||||
self.countdownTx = uiMap["daily_challenge_ui.countdown.time_tx"]
|
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"]
|
self.fightBtn = uiMap["daily_challenge_ui.fight_btn"]
|
||||||
-- 体力消耗
|
-- 体力消耗
|
||||||
@ -246,8 +247,8 @@ function DailyChallengeUI:refreshDiffBtn()
|
|||||||
self.upDiffBtn:setActive(true)
|
self.upDiffBtn:setActive(true)
|
||||||
local cfg = DataManager.DailyChallengeData:getDifficultyCfg(diffChapter + 1)
|
local cfg = DataManager.DailyChallengeData:getDifficultyCfg(diffChapter + 1)
|
||||||
local chapterId = DataManager.ChapterData:getMaxChapterId()
|
local chapterId = DataManager.ChapterData:getMaxChapterId()
|
||||||
local chapterPage = DataManager.ChapterData:getChapterPage(diffChapter + 1)
|
local chapterPage = DataManager.ChapterData:getChapterPage(cfg.max_chapter)
|
||||||
local chapterStage = DataManager.ChapterData:getChapterStage(diffChapter + 1)
|
local chapterStage = DataManager.ChapterData:getChapterStage(cfg.max_chapter)
|
||||||
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>")
|
||||||
@ -257,6 +258,7 @@ function DailyChallengeUI:refreshDiffBtn()
|
|||||||
self.upDiffBtnDescTx:setText(str)
|
self.upDiffBtnDescTx:setText(str)
|
||||||
end
|
end
|
||||||
self.downDiffBtn:setActive(diffChapter > 1)
|
self.downDiffBtn:setActive(diffChapter > 1)
|
||||||
|
self.diffTx:setText(I18N:getGlobalText(I18N.GlobalConst.DAILY_CHALLENGE_DESC_9, diffChapter))
|
||||||
end
|
end
|
||||||
|
|
||||||
return DailyChallengeUI
|
return DailyChallengeUI
|
||||||
Loading…
x
Reference in New Issue
Block a user