神印商店红点添加
parent
44804a9a4d
commit
bce1445a77
|
|
@ -787,6 +787,7 @@ RedPointType = {
|
|||
Shop_Tab_General = 25310,
|
||||
Shop_Tab_Soul = 25320,
|
||||
Shop_Tab_Secret = 25321,
|
||||
Shop_Tab_God = 25322,--神印页签
|
||||
Shop_Tab_Arena = 25330,
|
||||
Shop_Tab_Guild = 25331,
|
||||
Shop_Tab_Roam = 25350,
|
||||
|
|
@ -794,6 +795,7 @@ RedPointType = {
|
|||
Shop_General_Check = 253100,
|
||||
Shop_General_Refresh = 253101,
|
||||
Shop_Soul_Refresh = 253102,
|
||||
Shop_God_Refresh = 253103,--神印红点
|
||||
Shop_Secret_Check = 253200,
|
||||
Shop_Arena_Check = 253300,
|
||||
Shop_Guild_Check = 253310,
|
||||
|
|
|
|||
|
|
@ -137,6 +137,8 @@ function this.InitRedPointAllRelate()
|
|||
RPData:SetParent(RedPointType.Shop_Tab_Arena, RedPointType.Shop_Page_Play)
|
||||
RPData:SetParent(RedPointType.Shop_Tab_Guild, RedPointType.Shop_Page_Play)
|
||||
RPData:SetParent(RedPointType.Shop_Tab_Roam, RedPointType.Shop_Page_Roam)
|
||||
RPData:SetParent(RedPointType.Shop_Tab_God, RedPointType.Shop_Page_Play)
|
||||
RPData:SetParent(RedPointType.Shop_God_Refresh, RedPointType.Shop_Tab_God)
|
||||
-- ====== 商店功能
|
||||
RPData:SetParent(RedPointType.Shop_General_Check, RedPointType.Shop_Tab_General)
|
||||
RPData:SetParent(RedPointType.Shop_General_Refresh, RedPointType.Shop_Tab_General)
|
||||
|
|
@ -392,6 +394,7 @@ function this.RegisterRedCheckFunc()
|
|||
RPData:AddCheckFunc(RedPointType.Shop_General_Check, ShopManager.ShopRedCheck)
|
||||
RPData:AddCheckFunc(RedPointType.Shop_General_Refresh, ShopManager.ShopRedCheck)
|
||||
RPData:AddCheckFunc(RedPointType.Shop_Soul_Refresh, ShopManager.ShopRedCheck)
|
||||
RPData:AddCheckFunc(RedPointType.Shop_God_Refresh, ShopManager.ShopRedCheck)
|
||||
RPData:AddCheckFunc(RedPointType.Shop_Secret_Check, ShopManager.ShopRedCheck)
|
||||
RPData:AddCheckFunc(RedPointType.Shop_Arena_Check, ShopManager.ShopRedCheck)
|
||||
RPData:AddCheckFunc(RedPointType.Shop_Roam_Check, ShopManager.ShopRedCheck)
|
||||
|
|
@ -776,11 +779,6 @@ end
|
|||
|
||||
--- 检测红点状态
|
||||
function this.CheckRedPointStatus(rpType)
|
||||
function _CheckRepeat(rpType)
|
||||
|
||||
end
|
||||
|
||||
|
||||
if this.isDirty then
|
||||
if not table.indexof(this.refreshList, rpType) then
|
||||
table.insert(this.refreshList, rpType)
|
||||
|
|
|
|||
|
|
@ -362,6 +362,8 @@ function this.GetTabRPType(shopType)
|
|||
rpType = RedPointType.Shop_Tab_Roam
|
||||
elseif shopType == SHOP_TYPE.GUILD_SHOP then
|
||||
rpType = RedPointType.Shop_Tab_Guild
|
||||
elseif shopType == SHOP_TYPE.GodPrint then
|
||||
rpType = RedPointType.Shop_Tab_God
|
||||
end
|
||||
return rpType
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1110,6 +1110,8 @@ function this.ShopRedCheck(redType)
|
|||
return this.ShopRefreshRPIsShow(SHOP_TYPE.GENERAL_SHOP)
|
||||
elseif redType == RedPointType.Shop_Soul_Refresh then
|
||||
return this.ShopRefreshRPIsShow(SHOP_TYPE.SOUL_PRINT_SHOP)
|
||||
elseif redType == RedPointType.Shop_God_Refresh then
|
||||
return this.ShopRefreshRPIsShow(SHOP_TYPE.GodPrint)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -1130,6 +1132,8 @@ function this.CheckShopRedpot(shopType)
|
|||
CheckRedPointStatus(RedPointType.Shop_General_Refresh)
|
||||
elseif shopType == SHOP_TYPE.SOUL_PRINT_SHOP then
|
||||
CheckRedPointStatus(RedPointType.Shop_Soul_Refresh)
|
||||
elseif shopType == SHOP_TYPE.GodPrint then
|
||||
CheckRedPointStatus(RedPointType.Shop_God_Refresh)
|
||||
elseif shopType == SHOP_TYPE.BUYCOIN_SHOP then
|
||||
CheckRedPointStatus(RedPointType.UpView_Gold)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -182,9 +182,10 @@ function this:OnClose()
|
|||
-- 红点销毁
|
||||
if self.ShopType == SHOP_TYPE.GENERAL_SHOP then
|
||||
ClearRedPointObject(RedPointType.Shop_General_Refresh)
|
||||
end
|
||||
if self.ShopType == SHOP_TYPE.SOUL_PRINT_SHOP then
|
||||
elseif self.ShopType == SHOP_TYPE.SOUL_PRINT_SHOP then
|
||||
ClearRedPointObject(RedPointType.Shop_Soul_Refresh)
|
||||
elseif self.ShopType == SHOP_TYPE.GodPrint then
|
||||
ClearRedPointObject(RedPointType.Shop_God_Refresh)
|
||||
end
|
||||
|
||||
if self.ScrollView then
|
||||
|
|
@ -676,16 +677,18 @@ function this:ShowShop(shopType,_sortingOrder)
|
|||
self.refreshRedpot:SetActive(false)
|
||||
if self.ShopType == SHOP_TYPE.GENERAL_SHOP then
|
||||
ClearRedPointObject(RedPointType.Shop_General_Refresh)
|
||||
end
|
||||
if self.ShopType == SHOP_TYPE.SOUL_PRINT_SHOP then
|
||||
elseif self.ShopType == SHOP_TYPE.SOUL_PRINT_SHOP then
|
||||
ClearRedPointObject(RedPointType.Shop_Soul_Refresh)
|
||||
elseif self.ShopType == SHOP_TYPE.GodPrint then
|
||||
ClearRedPointObject(RedPointType.Shop_God_Refresh)
|
||||
end
|
||||
-- 绑定新红点
|
||||
if shopType == SHOP_TYPE.GENERAL_SHOP then
|
||||
BindRedPointObject(RedPointType.Shop_General_Refresh, self.refreshRedpot)
|
||||
end
|
||||
if shopType == SHOP_TYPE.SOUL_PRINT_SHOP then
|
||||
elseif shopType == SHOP_TYPE.SOUL_PRINT_SHOP then
|
||||
BindRedPointObject(RedPointType.Shop_Soul_Refresh, self.refreshRedpot)
|
||||
elseif shopType == SHOP_TYPE.GodPrint then
|
||||
BindRedPointObject(RedPointType.Shop_God_Refresh, self.refreshRedpot)
|
||||
end
|
||||
|
||||
-- 刷新显示
|
||||
|
|
|
|||
Loading…
Reference in New Issue