From f204a473169f3115ebbf6adf48ab57cd45442d05 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Fri, 21 Jul 2023 16:24:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E7=8E=A9=E5=BC=B9=E7=AA=97=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/main_city/main_city_ui.lua | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lua/app/ui/main_city/main_city_ui.lua b/lua/app/ui/main_city/main_city_ui.lua index e5b8801d..9baa5296 100644 --- a/lua/app/ui/main_city/main_city_ui.lua +++ b/lua/app/ui/main_city/main_city_ui.lua @@ -1107,6 +1107,12 @@ function MainCityUI:checkGift() ModuleManager.ShopManager:triggerGiftPopUI(PayManager.PURCHARSE_TYPE.ACT_GIFT, introductGiftIds[1]) return true end + ---- 试玩弹窗在章节礼包前 + local heroId, chapterId = DataManager.ChapterData:getCacheTrialHeroIdAndChapterId() + if heroId and chapterId then + ModuleManager.ChapterManager:showHeroTrialUI(heroId, chapterId) + return true + end -- 章节礼包 if chapterPopUpGifts and #chapterPopUpGifts > 0 then ModuleManager.ShopManager:triggerGiftPopUI(PayManager.PURCHARSE_TYPE.CHAPTER_GIFT, chapterPopUpGifts[1]) @@ -1127,14 +1133,6 @@ function MainCityUI:checkGift() ModuleManager.ShopManager:triggerGiftPopUI(PayManager.PURCHARSE_TYPE.GROW_UP_GIFT_NEW, growUpPopUpGifts[1]) return true end - - - ---- 试玩弹窗在所有礼包最后 - local heroId, chapterId = DataManager.ChapterData:getCacheTrialHeroIdAndChapterId() - if heroId and chapterId then - ModuleManager.ChapterManager:showHeroTrialUI(heroId, chapterId) - return true - end end function MainCityUI:getTaskIconPos()