显示优化
This commit is contained in:
parent
e688bfd26d
commit
e2e17b28c6
@ -50,6 +50,10 @@ function ChapterCell:refresh(id)
|
|||||||
touchNode:addClickListener(function()
|
touchNode:addClickListener(function()
|
||||||
ModuleManager.DungeonArmorManager:showFarmUI(id)
|
ModuleManager.DungeonArmorManager:showFarmUI(id)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
if armorData:getRemianFarmCount(id) <= 0 then
|
||||||
|
farmNode:setVisible(false)
|
||||||
|
end
|
||||||
elseif armorData:canFightChapter(id) then -- 可挑战
|
elseif armorData:canFightChapter(id) then -- 可挑战
|
||||||
farmNode:setVisible(false)
|
farmNode:setVisible(false)
|
||||||
if starNum > 0 then -- 通关过
|
if starNum > 0 then -- 通关过
|
||||||
|
|||||||
@ -111,6 +111,7 @@ function DungeonArmorMainUI:_bind()
|
|||||||
self:refreshFund()
|
self:refreshFund()
|
||||||
self:refreshFormation()
|
self:refreshFormation()
|
||||||
self:refreshStarNode()
|
self:refreshStarNode()
|
||||||
|
self:refreshAllCells()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
self:bind(DataManager.FormationData, "dirty", function()
|
self:bind(DataManager.FormationData, "dirty", function()
|
||||||
@ -138,6 +139,14 @@ function DungeonArmorMainUI:refreshScrollrect()
|
|||||||
self:refreshCloud(self.unlockId)
|
self:refreshCloud(self.unlockId)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function DungeonArmorMainUI:refreshAllCells()
|
||||||
|
if not self.scrollRect then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
self.scrollRect:refreshAll()
|
||||||
|
end
|
||||||
|
|
||||||
function DungeonArmorMainUI:refreshFormation()
|
function DungeonArmorMainUI:refreshFormation()
|
||||||
if not self.formationComp then
|
if not self.formationComp then
|
||||||
local uiMap = self.root:genAllChildren()
|
local uiMap = self.root:genAllChildren()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user