[限时招募礼包]====红点提交
parent
7ec1580c3e
commit
19e5205496
|
|
@ -937,6 +937,7 @@ RedPointType = {
|
||||||
XiaoYaoYouRedPoint=10009,
|
XiaoYaoYouRedPoint=10009,
|
||||||
--显示祈愿
|
--显示祈愿
|
||||||
TimeLimitWish = 10010,
|
TimeLimitWish = 10010,
|
||||||
|
TimeLimitWishStore=10011,
|
||||||
--灵兽
|
--灵兽
|
||||||
PokemonMainCity = 790,--灵兽主界面
|
PokemonMainCity = 790,--灵兽主界面
|
||||||
Pokemon_UpLv = 791,--灵兽升级
|
Pokemon_UpLv = 791,--灵兽升级
|
||||||
|
|
@ -2718,6 +2719,7 @@ DirectBuyType = {
|
||||||
ZHENQIBAOGE = 23, --珍奇宝阁
|
ZHENQIBAOGE = 23, --珍奇宝阁
|
||||||
XINRENSHANGCHENG = 30, --新人商城
|
XINRENSHANGCHENG = 30, --新人商城
|
||||||
linglongShagnshi = 40,
|
linglongShagnshi = 40,
|
||||||
|
XIANSHIMIBAO = 51, --限时招募秘宝
|
||||||
}
|
}
|
||||||
--新月卡类型定义
|
--新月卡类型定义
|
||||||
MONTH_CARD_TYPE = {
|
MONTH_CARD_TYPE = {
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,8 @@ function TimeLimitUpHero:InitComponent()
|
||||||
self.dragView=Util.GetGameObject(self.mask1,"dragView")
|
self.dragView=Util.GetGameObject(self.mask1,"dragView")
|
||||||
self.btn_hero=Util.GetGameObject(self.gameObject,"btngroup/btn_hero")
|
self.btn_hero=Util.GetGameObject(self.gameObject,"btngroup/btn_hero")
|
||||||
self.lsth = Util.GetGameObject(self.gameObject,"btngroup/zqbg")
|
self.lsth = Util.GetGameObject(self.gameObject,"btngroup/zqbg")
|
||||||
|
self.zqbgRed = Util.GetGameObject(self.gameObject,"btngroup/zqbg/red")
|
||||||
|
BindRedPointObject(RedPointType.TimeLimitWishStore,self.zqbgRed)
|
||||||
self.heroIcon=Util.GetGameObject(self.btn_hero,"Icon"):GetComponent("Image")
|
self.heroIcon=Util.GetGameObject(self.btn_hero,"Icon"):GetComponent("Image")
|
||||||
self.callTimeImg=Util.GetGameObject(self.gameObject,"callTimeImg"):GetComponent("Image")
|
self.callTimeImg=Util.GetGameObject(self.gameObject,"callTimeImg"):GetComponent("Image")
|
||||||
self.callTimeTxt=Util.GetGameObject(self.gameObject,"callTimeImg/Text"):GetComponent("Text")
|
self.callTimeTxt=Util.GetGameObject(self.gameObject,"callTimeImg/Text"):GetComponent("Text")
|
||||||
|
|
@ -76,6 +78,7 @@ function TimeLimitUpHero:InitComponent()
|
||||||
|
|
||||||
self.mask2 = Util.GetGameObject(self.gameObject,"Bg2/mask2")
|
self.mask2 = Util.GetGameObject(self.gameObject,"Bg2/mask2")
|
||||||
self.mask2Img = Util.GetGameObject(self.mask2,"curObj/Image"):GetComponent("Image")
|
self.mask2Img = Util.GetGameObject(self.mask2,"curObj/Image"):GetComponent("Image")
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--绑定事件(用于子类重写)
|
--绑定事件(用于子类重写)
|
||||||
|
|
@ -114,7 +117,6 @@ function TimeLimitUpHero:BindEvent()
|
||||||
JumpManager.GoJump(40068)
|
JumpManager.GoJump(40068)
|
||||||
end)
|
end)
|
||||||
Util.AddOnceClick(self.lsth, function()
|
Util.AddOnceClick(self.lsth, function()
|
||||||
LogError("111111111")
|
|
||||||
JumpManager.GoJump(40071)
|
JumpManager.GoJump(40071)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
@ -187,7 +189,8 @@ function TimeLimitUpHero:OnShow(_sortingOrder)
|
||||||
self:RefreshHeroData()
|
self:RefreshHeroData()
|
||||||
self:RefreshGetHeroTimes()
|
self:RefreshGetHeroTimes()
|
||||||
self:TimeCountDown()
|
self:TimeCountDown()
|
||||||
self:RefreshNextLevelReward()
|
self:RefreshNextLevelReward()
|
||||||
|
CheckRedPointStatus(RedPointType.TimeLimitWishStore)
|
||||||
end
|
end
|
||||||
local lastLiveName
|
local lastLiveName
|
||||||
function TimeLimitUpHero:RefreshHeroData()
|
function TimeLimitUpHero:RefreshHeroData()
|
||||||
|
|
@ -313,6 +316,10 @@ function TimeLimitUpHero:RefreshGetHeroTimes()
|
||||||
Util.AddOnceClick(m.btn,sureFunc)
|
Util.AddOnceClick(m.btn,sureFunc)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
function TimeLimitUpHero:OnFocus()
|
||||||
|
CheckRedPointStatus(RedPointType.TimeLimitWishStore)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
function TimeLimitUpHero:Recruit(actId,type,itemId)
|
function TimeLimitUpHero:Recruit(actId,type,itemId)
|
||||||
local recrutType =type==1 and 1 or 10
|
local recrutType =type==1 and 1 or 10
|
||||||
|
|
@ -476,7 +483,7 @@ function TimeLimitUpHero:OnClose()
|
||||||
self.timer:Stop()
|
self.timer:Stop()
|
||||||
self.timer = nil
|
self.timer = nil
|
||||||
end
|
end
|
||||||
|
ClearRedPointObject(RedPointType.TimeLimitWishStore,self.zqbgRed)
|
||||||
if UIManager.IsOpen(UIName.GeneralPopup) then
|
if UIManager.IsOpen(UIName.GeneralPopup) then
|
||||||
UIManager.ClosePanel(UIName.GeneralPopup)
|
UIManager.ClosePanel(UIName.GeneralPopup)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -646,6 +646,7 @@ function this.GetWishDrawRedPointStatus()
|
||||||
RecruitManager.freeUseTimeList[freeTimesId]=freeTime
|
RecruitManager.freeUseTimeList[freeTimesId]=freeTime
|
||||||
return freeTime and freeTime >= 1
|
return freeTime and freeTime >= 1
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.GetTianDiHongLuRedPointStatus()
|
function this.GetTianDiHongLuRedPointStatus()
|
||||||
|
|
@ -832,6 +833,25 @@ function this.CheckMonthGiftPageRedPoint()
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function this.CheckTimeLimitHeroStoreRedPoint()
|
||||||
|
local boughtNum = 0
|
||||||
|
local limitNum = 0
|
||||||
|
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
|
||||||
|
return false
|
||||||
|
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
--为限时神装写的(只有一个)
|
--为限时神装写的(只有一个)
|
||||||
function this.GetTimeLimitSkinInfoList()
|
function this.GetTimeLimitSkinInfoList()
|
||||||
local giftList={}
|
local giftList={}
|
||||||
|
|
|
||||||
|
|
@ -348,6 +348,7 @@ function this.InitRedPointAllRelate()
|
||||||
|
|
||||||
--命格
|
--命格
|
||||||
RPData:SetParent(RedPointType.Gem,RedPointType.Practice_main)
|
RPData:SetParent(RedPointType.Gem,RedPointType.Practice_main)
|
||||||
|
RPData:SetParent(RedPointType.TimeLimitWishStore,RedPointType.TimeLimitWish)
|
||||||
--战力冲刺
|
--战力冲刺
|
||||||
RPData:SetParent(RedPointType.PowerRiceGool,RedPointType.PowerRice)
|
RPData:SetParent(RedPointType.PowerRiceGool,RedPointType.PowerRice)
|
||||||
RPData:SetParent(RedPointType.eastSeaFindGod1,RedPointType.eastSeaFindGod)
|
RPData:SetParent(RedPointType.eastSeaFindGod1,RedPointType.eastSeaFindGod)
|
||||||
|
|
@ -524,6 +525,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.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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue