fix bug
This commit is contained in:
parent
f72d703afc
commit
f4e02995ad
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user