【每日礼包】特效问题修改

dev_chengFeng
ZhangBiao 2021-06-01 20:02:48 +08:00
parent 5be197ea1f
commit 681b3b63bb
22 changed files with 67 additions and 1 deletions

View File

@ -145,6 +145,9 @@ end
function this:OnSortingOrderChange()
orginLayer = self.sortingOrder
for k,v in pairs(subViewList) do
v.sub:OnSortingOrderChange(self.sortingOrder)
end
end
----==========================一级页签相关===========================================
-- tab按钮自定义显示设置

View File

@ -90,6 +90,9 @@ function LingShouBaoGe:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function LingShouBaoGe:OnSortingOrderChange()
end
function LingShouBaoGe:OnShow(_sortingOrder)
self.gameObject:SetActive(true)
sortingOrder = _sortingOrder

View File

@ -54,6 +54,9 @@ function LingShowTeHui:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function LingShowTeHui:OnSortingOrderChange()
end
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
function LingShowTeHui:OnShow(_sortingOrder,_parent)
self.gameObject:SetActive(true)

View File

@ -85,6 +85,9 @@ function QianKunBox:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function QianKunBox:OnSortingOrderChange()
end
-- 打开,重新打开时回调
function QianKunBox:OnShow(_sortingOrder)
self.gameObject:SetActive(true)

View File

@ -182,6 +182,9 @@ function SheJiDaDian:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function SheJiDaDian:OnSortingOrderChange()
end
-- 打开,重新打开时回调
function SheJiDaDian:OnShow(_sortingOrder)
self.gameObject:SetActive(true)

View File

@ -66,6 +66,9 @@ function ShengYiTianJiang:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function ShengYiTianJiang:OnSortingOrderChange()
end
-- 打开,重新打开时回调
function ShengYiTianJiang:OnShow(_sortingOrder)
self.gameObject:SetActive(true)

View File

@ -120,6 +120,9 @@ function TimeLimitUpHero:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function TimeLimitUpHero:OnSortingOrderChange()
end
-- 打开,重新打开时回调
function TimeLimitUpHero:OnShow(_sortingOrder)
self.gameObject:SetActive(true)

View File

@ -90,6 +90,9 @@ function TimeLimitedCall:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function TimeLimitedCall:OnSortingOrderChange()
end
-- 打开,重新打开时回调
function TimeLimitedCall:OnShow(_sortingOrder)
self.gameObject:SetActive(true)

View File

@ -82,6 +82,9 @@ function XiangYaoDuoBao:BindEvent()
end)
end
function XiangYaoDuoBao:OnSortingOrderChange()
end
function XiangYaoDuoBao:OnShow(_sortingOrder,_parent)
local actId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.XiangYaoDuoBao)
if not actId or actId <= 0 then return end

View File

@ -111,6 +111,9 @@ function XinJiangLaiXi:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function XinJiangLaiXi:OnSortingOrderChange()
end
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
function XinJiangLaiXi:OnShow(_sortingOrder,_parent)
local actId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.XinJiangLaiXi)

View File

@ -83,6 +83,9 @@ function YiJingBaoKu:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function YiJingBaoKu:OnSortingOrderChange()
end
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
function YiJingBaoKu:OnShow(_sortingOrder)
self.gameObject:SetActive(true)

View File

@ -61,6 +61,9 @@ function CommonActPage:OnOpen(_activityConfig,_index,parent)
PlayerPrefs.SetInt(PlayerManager.uid.."CommonActPage"..self.actConfig.ActiveType,1)
end
function CommonActPage:OnSortingOrderChange()
end
-- 打开,重新打开时回调
function CommonActPage:OnShow(_sortingOrder)
self.gameObject:SetActive(true)

View File

@ -64,6 +64,9 @@ function ConRechargePage:OnOpen(_activityConfig,_index,parent)
self.gameObject.name = "ConRechargePage"..self.actConfig.Id
end
function ConRechargePage:OnSortingOrderChange()
end
-- 打开,重新打开时回调
function ConRechargePage:OnShow(_sortingOrder)
self.gameObject:SetActive(true)

View File

@ -71,6 +71,9 @@ function ExChangePage:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function ExChangePage:OnSortingOrderChange()
end
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
function ExChangePage:OnShow(_sortingOrder)
self.gameObject:SetActive(true)

View File

@ -59,6 +59,9 @@ function ExpertPage:OnOpen(_activityConfig,_index,parent)
self.gameObject.name = "ExpertPage"..self.actConfig.Id
end
function ExpertPage:OnSortingOrderChange()
end
-- 打开,重新打开时回调
function ExpertPage:OnShow(_sortingOrder)
self.gameObject:SetActive(true)

View File

@ -94,6 +94,9 @@ function CumulativeSignInPage:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function CumulativeSignInPage:OnSortingOrderChange()
end
-- 打开,重新打开时回调
function CumulativeSignInPage:OnShow(_sortingOrder)
self.gameObject:SetActive(true)

View File

@ -67,6 +67,9 @@ function GrowthGiftPage:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function GrowthGiftPage:OnSortingOrderChange()
end
-- 打开,重新打开时回调
function GrowthGiftPage:OnShow(_sortingOrder)
VipManager.SetGrowthPackagePointStatus()--成长礼包

View File

@ -81,6 +81,9 @@ function MonthCardPage:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function MonthCardPage:OnSortingOrderChange()
end
-- 打开,重新打开时回调
function MonthCardPage:OnShow(_sortingOrder)
self.gameObject:SetActive(true)

View File

@ -109,6 +109,9 @@ function UpperMonthCard:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function UpperMonthCard:OnSortingOrderChange()
end
-- 打开,重新打开时回调
function UpperMonthCard:OnShow(_sortingOrder)
self.gameObject:SetActive(true)

View File

@ -93,6 +93,11 @@ function EveryDayGift:OnOpen(_activityConfig,_index,parent)
self.gameObject.name = "EveryDayGift"..self.actConfig.Id
end
function EveryDayGift:OnSortingOrderChange(_sortingOrder)
Util.SetParticleSortLayer(self.UI_Effect_jinkuang_Yuan, _sortingOrder+1)
self.sortingOrder = _sortingOrder
end
-- 打开,重新打开时回调
function EveryDayGift:OnShow(_sortingOrder)
self.gameObject:SetActive(true)

View File

@ -57,6 +57,9 @@ function RechargeView:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function RechargeView:OnSortingOrderChange()
end
function RechargeView:OnShow(_sortingOrder)
self.gameObject:SetActive(true)
self.sortingOrder = _sortingOrder

View File

@ -127,7 +127,8 @@ function ShopViewNew:RemoveListener()
Game.GlobalEvent:RemoveEvent(GameEvent.Shop.RefreshItem,RefreshData,self)
end
function ShopViewNew:OnSortingOrderChange()
end
--界面打开时调用(用于子类重写)
function ShopViewNew:OnOpen(_activityConfig,_index,parent)