From b3a00ab628864af19089b8a9e9880723c3c032ac Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 15 Aug 2023 18:42:13 +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/shop/gift_pop_ui.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lua/app/ui/shop/gift_pop_ui.lua b/lua/app/ui/shop/gift_pop_ui.lua index ffe14e45..cb579f21 100644 --- a/lua/app/ui/shop/gift_pop_ui.lua +++ b/lua/app/ui/shop/gift_pop_ui.lua @@ -122,11 +122,17 @@ function GiftPopUI:refresh(needCheck) if self.actType == PayManager.PURCHARSE_TYPE.ACT_GIFT then local type = PayManager:getGiftConfigInfo(self.actType, self.actId).type self.titleTx:setText(I18N:getGlobalText(GIFT_TITLE_TEXT[self.actType][type])) - self.banner:setTexture(GIFT_BG_BANNER_NAME[self.actType][type]) + self.banner:setVisible(false) + self.banner:setTexture(GIFT_BG_BANNER_NAME[self.actType][type], function() + self.banner:setVisible(true) + end) self.bg:setTexture(GIFT_BG_NAME[self.actType][type]) else self.titleTx:setText(I18N:getGlobalText(GIFT_TITLE_TEXT[self.actType])) - self.banner:setTexture(GIFT_BG_BANNER_NAME[self.actType]) + self.banner:setVisible(false) + self.banner:setTexture(GIFT_BG_BANNER_NAME[self.actType], function() + self.banner:setVisible(true) + end) self.bg:setTexture(GIFT_BG_NAME[self.actType]) end