fix bug
This commit is contained in:
parent
3961798e5b
commit
cd58359de1
@ -317,6 +317,9 @@ end
|
||||
|
||||
function BattleBaseUI:initSpeedBtn()
|
||||
local spdBtn = self.uiMap["battle_ui.top_node.speed_btn"]
|
||||
if not spdBtn then
|
||||
return
|
||||
end
|
||||
local spdBtnImg = self.uiMap["battle_ui.top_node.speed_btn.img"]
|
||||
spdBtn:addClickListener(function()
|
||||
if not DataManager.PrivilegeCardData:getIsMonthlyCardActive() then
|
||||
|
||||
@ -84,6 +84,7 @@ function EquipCell:_refresh(entity, showMask, showCheck, showLock)
|
||||
v:setActive(false)
|
||||
end
|
||||
end
|
||||
self.starNode:setActive(true)
|
||||
self.starNode:getComponent(GConst.TYPEOF_UNITY_CLASS.BF_HORIZONTAL_OR_VERTICAL_LAYOUT):RefreshLayout()
|
||||
|
||||
self:showMask(showMask)
|
||||
|
||||
@ -111,7 +111,6 @@ function MainCityUI:onClose()
|
||||
end
|
||||
|
||||
function MainCityUI:onReshow()
|
||||
self:checkMainPop()
|
||||
-- 检查目前没开的侧边栏功能是否有可以开启的
|
||||
if self.sideBarComp then
|
||||
self.sideBarComp:onReshow()
|
||||
@ -686,7 +685,7 @@ function MainCityUI:checkTutorial(onlyCheck)
|
||||
end
|
||||
end
|
||||
|
||||
if DataManager.TalentData:getIsOpen() then
|
||||
if not DataManager.TutorialData:getIsFuncTutorialFinished2(GConst.TutorialConst.TALENT_OPEN) and DataManager.TalentData:getIsOpen() then
|
||||
if ModuleManager.TutorialManager:checkFuncTutorial(GConst.TutorialConst.TALENT_OPEN, onlyCheck) then
|
||||
return true
|
||||
end
|
||||
@ -698,8 +697,8 @@ function MainCityUI:checkTutorial(onlyCheck)
|
||||
end
|
||||
end
|
||||
|
||||
if DataManager.DailyChallengeData:isOpen() then
|
||||
if ModuleManager.TutorialManager:checkFuncTutorial(GConst.TutorialConst.UNLOCK_DAILY_CHALLENGE, onlyCheck) then
|
||||
if not DataManager.TutorialData:getIsFuncTutorialFinished2(GConst.TutorialConst.DAILY_CHALLENGE_OPEN) and DataManager.DailyChallengeData:isOpen() then
|
||||
if ModuleManager.TutorialManager:checkFuncTutorial(GConst.TutorialConst.DAILY_CHALLENGE_OPEN, onlyCheck) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
@ -710,13 +709,7 @@ function MainCityUI:checkTutorial(onlyCheck)
|
||||
-- end
|
||||
-- end
|
||||
|
||||
if DataManager.DailyChallengeData:isOpen() then
|
||||
if ModuleManager.TutorialManager:checkFuncTutorial(GConst.TutorialConst.DAILY_CHALLENGE_OPEN, onlyCheck) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
if DataManager.ArenaData:isOpen() then
|
||||
if not DataManager.TutorialData:getIsFuncTutorialFinished2(GConst.TutorialConst.UNLOCK_ARENA) and DataManager.ArenaData:isOpen() then
|
||||
if ModuleManager.TutorialManager:checkFuncTutorial(GConst.TutorialConst.UNLOCK_ARENA, onlyCheck) then
|
||||
return true
|
||||
end
|
||||
|
||||
@ -918,7 +918,7 @@ function EquipData:hasEquipRefineRedPoint(slotId, part)
|
||||
end
|
||||
local refine = self:getPartRefine(slotId, part)
|
||||
local needLevel = self:getRefineNeedLevel(refine + 1)
|
||||
if needLevel == nil or needLevel > self:getPartLevel(slotId, part) then
|
||||
if needLevel == nil or needLevel > self:getPartLv(slotId, part) then
|
||||
return false
|
||||
end
|
||||
local itemCost = self:getRefineCost(refine + 1)
|
||||
|
||||
@ -31,7 +31,7 @@ function TalentData:clear()
|
||||
end
|
||||
|
||||
function TalentData:getIsOpen()
|
||||
if ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.TALENT_OPEN) then
|
||||
if ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.TALENT_OPEN, true) then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
||||
@ -223,6 +223,12 @@ function TutorialData:getIsFuncTutorialFinished(id)
|
||||
return self.funcTutorialMap[id] == true
|
||||
end
|
||||
|
||||
--@TODO 2025-10-28 20:33:16
|
||||
function TutorialData:getIsFuncTutorialFinished2(id)
|
||||
local cfg = ConfigManager:getConfig("tutorial_start")[id]
|
||||
return self:getIsFuncTutorialFinished(cfg.start_id)
|
||||
end
|
||||
|
||||
function TutorialData:getTutorialIdList()
|
||||
if not self.tutorialIdlist then
|
||||
self.tutorialIdlist = {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user