点将台10连加入红点提示
parent
3516118d51
commit
859bd6679e
|
@ -101,6 +101,7 @@ function this.BackDataRefreshEnerny(msgItemInfo)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.BagGold)
|
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.BagGold)
|
||||||
|
CheckRedPointStatus(RedPointType.Recruit_Normal)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,7 @@ function this.InitRedPointAllRelate()
|
||||||
--秘盒红点
|
--秘盒红点
|
||||||
RPData:SetParent(RedPointType.SecretBox_Red1, RedPointType.SecretBox)
|
RPData:SetParent(RedPointType.SecretBox_Red1, RedPointType.SecretBox)
|
||||||
--角色招募红点
|
--角色招募红点
|
||||||
RPData:SetParent(RedPointType.Recruit_Red, RedPointType.Recruit)
|
-- RPData:SetParent(RedPointType.Recruit_Red, RedPointType.Recruit)
|
||||||
--普通召唤红点
|
--普通召唤红点
|
||||||
RPData:SetParent(RedPointType.Recruit_Normal, RedPointType.Recruit)
|
RPData:SetParent(RedPointType.Recruit_Normal, RedPointType.Recruit)
|
||||||
-- --运营红点
|
-- --运营红点
|
||||||
|
@ -383,9 +383,9 @@ function this.RegisterRedCheckFunc()
|
||||||
--秘盒红点
|
--秘盒红点
|
||||||
RPData:AddCheckFunc(RedPointType.SecretBox_Red1, SecretBoxManager.CheckSecretRedPoint,FUNCTION_OPEN_TYPE.SECRETBOX)
|
RPData:AddCheckFunc(RedPointType.SecretBox_Red1, SecretBoxManager.CheckSecretRedPoint,FUNCTION_OPEN_TYPE.SECRETBOX)
|
||||||
--角色招募红点
|
--角色招募红点
|
||||||
RPData:AddCheckFunc(RedPointType.Recruit_Red, RecruitManager.CheckRecuritRedPoint,FUNCTION_OPEN_TYPE.RECURITY)
|
-- RPData:AddCheckFunc(RedPointType.Recruit_Red, RecruitManager.CheckRecuritRedPoint,FUNCTION_OPEN_TYPE.RECURITY)
|
||||||
--普通召唤红点
|
--普通召唤红点
|
||||||
RPData:AddCheckFunc(RedPointType.Recruit_Normal, RecruitManager.CheckRecuritNormalPoint,FUNCTION_OPEN_TYPE.RECURITY)
|
RPData:AddCheckFunc(RedPointType.Recruit_Normal, RecruitManager.GetAllRecruitBtnRedpoint)--RecruitManager.CheckRecuritNormalPoint,FUNCTION_OPEN_TYPE.RECURITY)
|
||||||
--七日狂欢红点
|
--七日狂欢红点
|
||||||
RPData:AddCheckFunc(RedPointType.SevenDayCarnival, SevenDayCarnivalManager.GetSevenDayCarnivalRedPoint)
|
RPData:AddCheckFunc(RedPointType.SevenDayCarnival, SevenDayCarnivalManager.GetSevenDayCarnivalRedPoint)
|
||||||
--每日首充
|
--每日首充
|
||||||
|
|
|
@ -46,13 +46,13 @@ function this.RecruitRequest(recruitType, func, privilegeId,_itemId,_itemNum)
|
||||||
if this.freeUseTimeList[privilegeId] and this.freeUseTimeList[privilegeId] >= 1 then
|
if this.freeUseTimeList[privilegeId] and this.freeUseTimeList[privilegeId] >= 1 then
|
||||||
PrivilegeManager.RefreshPrivilegeUsedTimes(privilegeId, 1)
|
PrivilegeManager.RefreshPrivilegeUsedTimes(privilegeId, 1)
|
||||||
this.freeUseTimeList[privilegeId] = PrivilegeManager.GetPrivilegeRemainValue(privilegeId)
|
this.freeUseTimeList[privilegeId] = PrivilegeManager.GetPrivilegeRemainValue(privilegeId)
|
||||||
CheckRedPointStatus(RedPointType.Recruit_Red)
|
-- CheckRedPointStatus(RedPointType.Recruit_Red)
|
||||||
CheckRedPointStatus(RedPointType.Recruit_Normal)
|
|
||||||
CheckRedPointStatus(RedPointType.TimeLimited)
|
CheckRedPointStatus(RedPointType.TimeLimited)
|
||||||
CheckRedPointStatus(RedPointType.QianKunBox)
|
CheckRedPointStatus(RedPointType.QianKunBox)
|
||||||
CheckRedPointStatus(RedPointType.Pokemon_Recruit)
|
CheckRedPointStatus(RedPointType.Pokemon_Recruit)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
CheckRedPointStatus(RedPointType.Recruit_Normal)
|
||||||
if func then
|
if func then
|
||||||
func(msg)
|
func(msg)
|
||||||
end
|
end
|
||||||
|
@ -68,7 +68,7 @@ function this.RefreshFreeTime()
|
||||||
this.freeUseTimeList[99] = PrivilegeManager.GetPrivilegeRemainValue(99)
|
this.freeUseTimeList[99] = PrivilegeManager.GetPrivilegeRemainValue(99)
|
||||||
this.freeUseTimeList[2005] = PrivilegeManager.GetPrivilegeRemainValue(2005)
|
this.freeUseTimeList[2005] = PrivilegeManager.GetPrivilegeRemainValue(2005)
|
||||||
if (ActTimeCtrlManager.SingleFuncState(1)) then
|
if (ActTimeCtrlManager.SingleFuncState(1)) then
|
||||||
CheckRedPointStatus(RedPointType.Recruit_Red)
|
-- CheckRedPointStatus(RedPointType.Recruit_Red)
|
||||||
CheckRedPointStatus(RedPointType.Recruit_Normal)
|
CheckRedPointStatus(RedPointType.Recruit_Normal)
|
||||||
CheckRedPointStatus(RedPointType.TimeLimited)
|
CheckRedPointStatus(RedPointType.TimeLimited)
|
||||||
CheckRedPointStatus(RedPointType.QianKunBox)
|
CheckRedPointStatus(RedPointType.QianKunBox)
|
||||||
|
@ -358,6 +358,57 @@ function this.GetExpendDataByCostItem(str,type,LimitNum)
|
||||||
return cost
|
return cost
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--抽卡类型
|
||||||
|
local rType={
|
||||||
|
Normal=1,--普通
|
||||||
|
Friend=2,--友情
|
||||||
|
Hero=3--神将
|
||||||
|
}
|
||||||
|
--按钮类型
|
||||||
|
local bType={
|
||||||
|
Btn1=1,
|
||||||
|
Btn10=2
|
||||||
|
}
|
||||||
|
--抽卡配置
|
||||||
|
local preConfigure={
|
||||||
|
[1] = {type=RecruitType.NormalSingle,privilegeId=38},
|
||||||
|
[2] = {type=RecruitType.NormalTen,privilegeId=38},
|
||||||
|
[3] = {type=RecruitType.FriendSingle},
|
||||||
|
[4] = {type=RecruitType.FriendTen},
|
||||||
|
[5] = {type=RecruitType.Single,privilegeId=14},
|
||||||
|
[6] = {type=RecruitType.Ten,privilegeId=14}
|
||||||
|
}
|
||||||
|
--点将台红点状态
|
||||||
|
function this.GetAllRecruitBtnRedpoint()
|
||||||
|
for i = 1, #preConfigure do
|
||||||
|
local redPoint = false
|
||||||
|
if preConfigure[i].privilegeId then
|
||||||
|
redPoint = this.GetRecruitBtnRedpoint(preConfigure[i].type,preConfigure[i].privilegeId)
|
||||||
|
else
|
||||||
|
redPoint = this.GetRecruitBtnRedpoint(preConfigure[i].type)
|
||||||
|
end
|
||||||
|
if redPoint then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
--点将台六个按钮各自红点状态
|
||||||
|
function this.GetRecruitBtnRedpoint(recruitType,privilegeId)--privilegeId 单抽免费特权次数
|
||||||
|
if recruitType == RecruitType.NormalSingle or recruitType == RecruitType.Single then--普通召唤单抽 神将召唤单抽
|
||||||
|
if privilegeId then
|
||||||
|
return PrivilegeManager.GetPrivilegeRemainValue(privilegeId) >= 1
|
||||||
|
end
|
||||||
|
elseif recruitType == RecruitType.FriendTen or recruitType == RecruitType.NormalTen or recruitType == RecruitType.Ten then--所有召唤十连
|
||||||
|
local data = RecruitManager.GetExpendData(recruitType)
|
||||||
|
local itemId = data[1]
|
||||||
|
local itemNum = data[2]
|
||||||
|
if BagManager.GetItemCountById(itemId) >= itemNum then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
return this
|
return this
|
|
@ -182,7 +182,13 @@ function this.UpdatePanelData()
|
||||||
local itemId=0
|
local itemId=0
|
||||||
local itemNum=0
|
local itemNum=0
|
||||||
local d=RecruitManager.GetExpendData(m.type)
|
local d=RecruitManager.GetExpendData(m.type)
|
||||||
redPot:SetActive(isFree)
|
local redPoint = false
|
||||||
|
if v.privilegeId then
|
||||||
|
redPoint = RecruitManager.GetRecruitBtnRedpoint(m.type,v.privilegeId)
|
||||||
|
else
|
||||||
|
redPoint = RecruitManager.GetRecruitBtnRedpoint(m.type)
|
||||||
|
end
|
||||||
|
redPot:SetActive(redPoint)
|
||||||
if isFree then --若1按钮有免费次数 后面逻辑不走了
|
if isFree then --若1按钮有免费次数 后面逻辑不走了
|
||||||
info.text=Language[10489]
|
info.text=Language[10489]
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue