From 7bf9d6f3564945d6acd651faa3655f56481e9d36 Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Fri, 7 Nov 2025 16:36:06 +0800 Subject: [PATCH] fix bug --- lua/app/ui/dungeon/cell/dungeon_cell.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/app/ui/dungeon/cell/dungeon_cell.lua b/lua/app/ui/dungeon/cell/dungeon_cell.lua index 2de7f6b4..b1dfe9be 100644 --- a/lua/app/ui/dungeon/cell/dungeon_cell.lua +++ b/lua/app/ui/dungeon/cell/dungeon_cell.lua @@ -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)