From 4ffcda7f0e75e09d1913b7dca7b6179090a8dec4 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 15 Aug 2023 19:41:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/activity/activity_hero_comp.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/app/ui/activity/activity_hero_comp.lua b/lua/app/ui/activity/activity_hero_comp.lua index 5cf50f75..241680c5 100644 --- a/lua/app/ui/activity/activity_hero_comp.lua +++ b/lua/app/ui/activity/activity_hero_comp.lua @@ -10,6 +10,7 @@ function ActivityHeroComp:init() self.txTime = uiMap["hero_panel.tx_time"] self.btnBuy = uiMap["hero_panel.btn_buy"] self.txBuy = uiMap["hero_panel.btn_buy.tx_buy"] + self.rewardNode = uiMap["hero_panel.rewards"] self.rewardCells = {} for i = 1, 3 do table.insert(self.rewardCells, uiMap["hero_panel.rewards.pop_reward_cell_" .. i]:addLuaComponent(GConst.TYPEOF_LUA_CLASS.POP_REWARD_CELL)) @@ -36,6 +37,7 @@ function ActivityHeroComp:refresh() cell:setVisible(false) end end + self.rewardNode:getComponent(GConst.TYPEOF_UNITY_CLASS.BF_HORIZONTAL_OR_VERTICAL_LAYOUT):RefreshLayout() if DataManager.ShopData:getGiftRemainBuyNum(GConst.ActivityConst.HERO_GIFT_ID_1) > 0 then self.btnBuy:setTouchEnable(true) self.btnBuy:setSprite(GConst.ATLAS_PATH.COMMON, "common_btn_green_2")