This commit is contained in:
puxuan 2025-09-22 17:37:32 +08:00
parent f72d703afc
commit f4e02995ad

View File

@ -230,7 +230,13 @@ function MainComp:refreshChapterInfo()
end end
self.chapterPageNode:getComponent(GConst.TYPEOF_UNITY_CLASS.BF_HORIZONTAL_OR_VERTICAL_LAYOUT):RefreshLayout() self.chapterPageNode:getComponent(GConst.TYPEOF_UNITY_CLASS.BF_HORIZONTAL_OR_VERTICAL_LAYOUT):RefreshLayout()
self.fightBtn:setActive(chapterId <= chapterMaxId + 1) if chapterId <= chapterMaxId + 1 then
self.fightBtn:setTouchEnable(true)
self.fightBtn:setSprite(GConst.ATLAS_PATH.MAIN, "main_btn_1")
else
self.fightBtn:setTouchEnable(false)
self.fightBtn:setSprite(GConst.ATLAS_PATH.MAIN, "main_btn_4")
end
local chapterI18NInfo = I18N:getConfig("chapter")[chapterId] local chapterI18NInfo = I18N:getConfig("chapter")[chapterId]
if chapterI18NInfo then if chapterI18NInfo then