This commit is contained in:
puxuan 2025-11-07 16:36:06 +08:00
parent 9c5492c5b5
commit 7bf9d6f356

View File

@ -9,6 +9,7 @@ function DungeonCell:init()
self.timesTx = uiMap["dungeon_cell.content.info.tx_time"]
self.lockNode = uiMap["dungeon_cell.content.lock"]
self.lockTx = uiMap["dungeon_cell.content.lock.text"]
self.banner = uiMap["dungeon_cell.content.banner"]
self.rewardCells = {}
for i = 1, 3 do
table.insert(self.rewardCells, uiMap["dungeon_cell.content.info.rewards.reward_cell_" .. i]:addLuaComponent(GConst.TYPEOF_LUA_CLASS.REWARD_CELL))
@ -26,7 +27,7 @@ function DungeonCell:init()
ModuleManager.TipsManager:showHelpTips(params)
end)
self.contentNode:addClickListener(function()
self.baseObject:addClickListener(function()
self:onClickGo()
end)
end
@ -48,7 +49,7 @@ function DungeonCell:refresh(moduleKey)
cell:setActive(false)
end
end
self.baseObject:setSprite(GConst.ATLAS_PATH.UI_DUNGEON, GConst.DungeonConst.IMG_BANNER[self.moduleKey])
self.banner:setSprite(GConst.ATLAS_PATH.UI_DUNGEON, GConst.DungeonConst.IMG_BANNER[self.moduleKey])
if DataManager.DungeonData:isOpen(self.moduleKey) then
self.infoNode:setVisible(true)
self.lockNode:setVisible(false)