心愿装备珍奇宝阁修改
parent
00efebb390
commit
0161e01588
|
@ -969,6 +969,7 @@ RedPointType = {
|
||||||
TimeLimitWish = 10010,
|
TimeLimitWish = 10010,
|
||||||
--奇珍宝阁红点
|
--奇珍宝阁红点
|
||||||
TimeLimitWishStore=10011,
|
TimeLimitWishStore=10011,
|
||||||
|
WishEquipStore=10012, --心愿法宝抽卡商店
|
||||||
--灵兽
|
--灵兽
|
||||||
PokemonMainCity = 790,--灵兽主界面
|
PokemonMainCity = 790,--灵兽主界面
|
||||||
Pokemon_UpLv = 791,--灵兽升级
|
Pokemon_UpLv = 791,--灵兽升级
|
||||||
|
|
|
@ -929,6 +929,40 @@ function this.CheckTimeLimitHeroStoreRedPoint()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function this.CheckWishEquipStoreRedPoint()
|
||||||
|
local boughtNum = 0
|
||||||
|
local limitNum = 0
|
||||||
|
|
||||||
|
local isOpen =CheckFunctionOpen(FUNCTION_OPEN_TYPE.EquipWish)
|
||||||
|
if isOpen==false then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
local activityId = ActivityGiftManager.IsActivityTypeOpen(20015)
|
||||||
|
if not activityId then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
local shopData = OperatingManager.GetGiftGoodsInfoList(GoodsTypeDef.DirectPurchaseGift)
|
||||||
|
for i = 1, #shopData do
|
||||||
|
if rechargeConfig[shopData[i].goodsId].ShowType == DirectBuyType.XIANSHIMIBAO then
|
||||||
|
boughtNum = OperatingManager.GetGoodsBuyTime(GoodsTypeDef.DirectPurchaseGift, shopData[i].goodsId)
|
||||||
|
limitNum = rechargeConfig[shopData[i].goodsId].Limit
|
||||||
|
local isCanBuy = limitNum - boughtNum >0
|
||||||
|
if isCanBuy and rechargeConfig[shopData[i].goodsId].Price <= 0 then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
local red=DynamicActivityManager.CheckMingWangRed()
|
||||||
|
if red then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
--为限时神装写的(只有一个)
|
--为限时神装写的(只有一个)
|
||||||
function this.GetTimeLimitSkinInfoList()
|
function this.GetTimeLimitSkinInfoList()
|
||||||
local giftList={}
|
local giftList={}
|
||||||
|
|
|
@ -357,6 +357,7 @@ function this.InitRedPointAllRelate()
|
||||||
RPData:SetParent(RedPointType.Gem_2,RedPointType.Gem)
|
RPData:SetParent(RedPointType.Gem_2,RedPointType.Gem)
|
||||||
RPData:SetParent(RedPointType.playerGift,RedPointType.Practice_main)
|
RPData:SetParent(RedPointType.playerGift,RedPointType.Practice_main)
|
||||||
RPData:SetParent(RedPointType.TimeLimitWish,RedPointType.Recruit)
|
RPData:SetParent(RedPointType.TimeLimitWish,RedPointType.Recruit)
|
||||||
|
RPData:SetParent(RedPointType.WishEquipStore,RedPointType.Recruit)
|
||||||
-- RPData:SetParent(RedPointType.TimeLimitWishStore,RedPointType.TimeLimitWish)--奇珍宝阁相关红点屏蔽
|
-- RPData:SetParent(RedPointType.TimeLimitWishStore,RedPointType.TimeLimitWish)--奇珍宝阁相关红点屏蔽
|
||||||
--战力冲刺
|
--战力冲刺
|
||||||
RPData:SetParent(RedPointType.PowerRiceGool,RedPointType.PowerRice)
|
RPData:SetParent(RedPointType.PowerRiceGool,RedPointType.PowerRice)
|
||||||
|
@ -539,6 +540,7 @@ function this.RegisterRedCheckFunc()
|
||||||
-- RPData:AddCheckFunc(RedPointType.TimeLimited,OperatingManager.GetTimeLimitRedPointStatus)
|
-- RPData:AddCheckFunc(RedPointType.TimeLimited,OperatingManager.GetTimeLimitRedPointStatus)
|
||||||
RPData:AddCheckFunc(RedPointType.TimeLimitWish,OperatingManager.GetWishDrawRedPointStatus)
|
RPData:AddCheckFunc(RedPointType.TimeLimitWish,OperatingManager.GetWishDrawRedPointStatus)
|
||||||
RPData:AddCheckFunc(RedPointType.TimeLimitWishStore,OperatingManager.CheckTimeLimitHeroStoreRedPoint)
|
RPData:AddCheckFunc(RedPointType.TimeLimitWishStore,OperatingManager.CheckTimeLimitHeroStoreRedPoint)
|
||||||
|
RPData:AddCheckFunc(RedPointType.WishEquipStore,OperatingManager.CheckWishEquipStoreRedPoint)
|
||||||
RPData:AddCheckFunc(RedPointType.QianKunBox,OperatingManager.GetQiankunBoxRedPointStatus)
|
RPData:AddCheckFunc(RedPointType.QianKunBox,OperatingManager.GetQiankunBoxRedPointStatus)
|
||||||
-- RPData:AddCheckFunc(RedPointType.DynamicActTask, OperatingManager.CheckDynamicActTaskRed)
|
-- RPData:AddCheckFunc(RedPointType.DynamicActTask, OperatingManager.CheckDynamicActTaskRed)
|
||||||
RPData:AddCheckFunc(RedPointType.DynamicActTask_MeiRi, OperatingManager.CheckDynamicActTaskRed)
|
RPData:AddCheckFunc(RedPointType.DynamicActTask_MeiRi, OperatingManager.CheckDynamicActTaskRed)
|
||||||
|
|
|
@ -53,8 +53,9 @@ function RecruitEquipPanelNew:InitComponent()
|
||||||
self.wishPre = Util.GetGameObject(self.wish,"upHeroPre")
|
self.wishPre = Util.GetGameObject(self.wish,"upHeroPre")
|
||||||
|
|
||||||
self.lsth = Util.GetGameObject(self.gameObject,"btngroup/zqbg")
|
self.lsth = Util.GetGameObject(self.gameObject,"btngroup/zqbg")
|
||||||
self.lsth.gameObject:SetActive(false)
|
self.lsth.gameObject:SetActive(ActivityGiftManager.IsActivityTypeOpen(20015)~=nil)
|
||||||
self.zqbgRed = Util.GetGameObject(self.gameObject,"btngroup/zqbg/red")
|
self.zqbgRed = Util.GetGameObject(self.gameObject,"btngroup/zqbg/red")
|
||||||
|
BindRedPointObject(RedPointType.WishEquipStore,self.zqbgRed)
|
||||||
self.zqbgEffect = Util.GetGameObject(self.gameObject,"btngroup/zqbg/Fx_Circle 1")
|
self.zqbgEffect = Util.GetGameObject(self.gameObject,"btngroup/zqbg/Fx_Circle 1")
|
||||||
-- self.tip = Util.GetGameObject(self.panel, "tip/text"):GetComponent("Text")
|
-- self.tip = Util.GetGameObject(self.panel, "tip/text"):GetComponent("Text")
|
||||||
self.tenTip = Util.GetGameObject(self.panel, "TenTip")
|
self.tenTip = Util.GetGameObject(self.panel, "TenTip")
|
||||||
|
@ -95,6 +96,11 @@ function RecruitEquipPanelNew:InitComponent()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function RecruitEquipPanelNew:OnFocus()
|
||||||
|
CheckRedPointStatus(RedPointType.WishEquipStore)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
function RecruitEquipPanelNew:BindEvent()
|
function RecruitEquipPanelNew:BindEvent()
|
||||||
Util.AddOnceClick(self.lsth, function()
|
Util.AddOnceClick(self.lsth, function()
|
||||||
local isOpen =CheckFunctionOpen(FUNCTION_OPEN_TYPE.EquipWish)
|
local isOpen =CheckFunctionOpen(FUNCTION_OPEN_TYPE.EquipWish)
|
||||||
|
@ -173,6 +179,7 @@ function RecruitEquipPanelNew:OnShow(sortingOrder)
|
||||||
local SkeletonGraphic = self.liveNode:GetComponent("SkeletonGraphic")
|
local SkeletonGraphic = self.liveNode:GetComponent("SkeletonGraphic")
|
||||||
SkeletonGraphic.AnimationState:SetAnimation(0, "idle", true)
|
SkeletonGraphic.AnimationState:SetAnimation(0, "idle", true)
|
||||||
end
|
end
|
||||||
|
CheckRedPointStatus(RedPointType.WishEquipStore)
|
||||||
end
|
end
|
||||||
|
|
||||||
local progresss=0
|
local progresss=0
|
||||||
|
@ -326,6 +333,7 @@ function RecruitEquipPanelNew:OnDestroy()
|
||||||
self.timer:Stop()
|
self.timer:Stop()
|
||||||
self.timer = nil
|
self.timer = nil
|
||||||
end
|
end
|
||||||
|
ClearRedPointObject(RedPointType.WishEquipStore,self.zqbgRed)
|
||||||
for i = 1,3 do
|
for i = 1,3 do
|
||||||
if self.upHeroPreList[i] then
|
if self.upHeroPreList[i] then
|
||||||
SubUIManager.Close(self.upHeroPreList[i].item)
|
SubUIManager.Close(self.upHeroPreList[i].item)
|
||||||
|
|
Loading…
Reference in New Issue