引导问题
This commit is contained in:
parent
9f9ee9e1d9
commit
8c3ce37bbe
@ -6,10 +6,6 @@ local ARENA_COMP = "app/ui/main_city/component/arena_comp"
|
||||
|
||||
local BOTTOM_HEIGHT = 120
|
||||
|
||||
function MainComp:setParentUI(parentUI)
|
||||
self.parentUI = parentUI
|
||||
end
|
||||
|
||||
function MainComp:init()
|
||||
self.uiMap = self:getBaseObject():genAllChildren()
|
||||
|
||||
@ -72,9 +68,6 @@ function MainComp:refreshModule(selectModule)
|
||||
|
||||
if self.curModuleType == GConst.MainCityConst.MAIN_MODULE.CHAPTER then
|
||||
-- 切换到主线章节
|
||||
if self.parentUI and self.parentUI.checkMainPop then
|
||||
self.parentUI:checkMainPop()
|
||||
end
|
||||
elseif self.curModuleType == GConst.MainCityConst.MAIN_MODULE.DAILY_CHALLENGE then
|
||||
-- 切换到每日挑战
|
||||
if not DataManager.TutorialData:getIsInTutorial() and DataManager.DailyChallengeData:getIsPopTask() then
|
||||
|
||||
@ -340,9 +340,6 @@ function MainCityUI:initComp()
|
||||
shopComp:initPrefabHelper()
|
||||
shopComp:genAllChildren()
|
||||
self.subComps[GConst.MainCityConst.BOTTOM_PAGE.SHOP] = shopComp:addLuaComponent(SHOP_COMP)
|
||||
|
||||
-- 初始完成后设置
|
||||
self.mainComp:setParentUI(self)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user