试玩弹窗优化
This commit is contained in:
parent
ee6d36fa48
commit
f204a47316
@ -1107,6 +1107,12 @@ function MainCityUI:checkGift()
|
|||||||
ModuleManager.ShopManager:triggerGiftPopUI(PayManager.PURCHARSE_TYPE.ACT_GIFT, introductGiftIds[1])
|
ModuleManager.ShopManager:triggerGiftPopUI(PayManager.PURCHARSE_TYPE.ACT_GIFT, introductGiftIds[1])
|
||||||
return true
|
return true
|
||||||
end
|
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
|
if chapterPopUpGifts and #chapterPopUpGifts > 0 then
|
||||||
ModuleManager.ShopManager:triggerGiftPopUI(PayManager.PURCHARSE_TYPE.CHAPTER_GIFT, chapterPopUpGifts[1])
|
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])
|
ModuleManager.ShopManager:triggerGiftPopUI(PayManager.PURCHARSE_TYPE.GROW_UP_GIFT_NEW, growUpPopUpGifts[1])
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
---- 试玩弹窗在所有礼包最后
|
|
||||||
local heroId, chapterId = DataManager.ChapterData:getCacheTrialHeroIdAndChapterId()
|
|
||||||
if heroId and chapterId then
|
|
||||||
ModuleManager.ChapterManager:showHeroTrialUI(heroId, chapterId)
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function MainCityUI:getTaskIconPos()
|
function MainCityUI:getTaskIconPos()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user