超值基金,热榜红点提交
parent
db0da7a0d6
commit
260db13451
|
|
@ -1022,6 +1022,7 @@ RedPointType = {
|
|||
haoHuaBuJi = 81, --豪华补给
|
||||
ImGM = 82, --我是gm/刷冲特权
|
||||
tuijianzhenrong = 83,--推荐阵容
|
||||
HotRank = 84, --神将热榜
|
||||
linglongBaojing = 671,
|
||||
TaiChuMiJuan = 670,
|
||||
--玉虚论道
|
||||
|
|
|
|||
|
|
@ -940,6 +940,14 @@ function this.CheckRedPointPremium()
|
|||
return false
|
||||
end
|
||||
|
||||
function this.CheckHotRankRedPoint()
|
||||
if PlayerPrefs.GetInt(PlayerManager.uid.."hotRank")==0 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
function this.CheckRedPointPremiumSingle(activityType)
|
||||
local actType = activityType
|
||||
if activityType == RedPointType.chaozhifanli6 then
|
||||
|
|
|
|||
|
|
@ -812,6 +812,7 @@ function this.BindRedPoint()
|
|||
BindRedPointObject(RedPointType.EightLoginReward, this.sgRedPoint)
|
||||
BindRedPointObject(RedPointType.MingWangPri,this.mwRedPoint)
|
||||
BindRedPointObject(RedPointType.ImGM,this.gmRedPoint)
|
||||
BindRedPointObject(RedPointType.HotRank,this.hrRedPoint)
|
||||
end
|
||||
-- 绑定红点
|
||||
function this.ClearRedPoint()
|
||||
|
|
@ -842,6 +843,7 @@ function this.ClearRedPoint()
|
|||
ClearRedPointObject(RedPointType.EightLoginReward, this.sgRedPoint)
|
||||
ClearRedPointObject(RedPointType.MingWangPri,this.mwRedPoint)
|
||||
ClearRedPointObject(RedPointType.ImGM,this.gmRedPoint)
|
||||
ClearRedPointObject(RedPointType.HotRank,this.hrRedPoint)
|
||||
end
|
||||
|
||||
--添加事件监听(用于子类重写)
|
||||
|
|
|
|||
|
|
@ -908,6 +908,9 @@ function this.ShowIcon(Obj,linkActId)
|
|||
end
|
||||
|
||||
function this.ChaoZhiJiJin128Red()
|
||||
if PlayerPrefs.GetInt(PlayerManager.uid.."chaozhijijin128")==0 then
|
||||
return true
|
||||
end
|
||||
local data = this.GetData(ActivityTypeDef.ChaoZhiJiJin_128)
|
||||
if data then
|
||||
for i = 1, #data.rewards do
|
||||
|
|
@ -928,6 +931,9 @@ end
|
|||
|
||||
|
||||
function this.ChaoZhiJiJin328Red()
|
||||
if PlayerPrefs.GetInt(PlayerManager.uid.."chaozhijijin328")==0 then
|
||||
return true
|
||||
end
|
||||
local data = this.GetData(ActivityTypeDef.ChaoZhiJiJin_328)
|
||||
if data then
|
||||
for i = 1, #data.rewards do
|
||||
|
|
|
|||
|
|
@ -136,6 +136,13 @@ function UpperMonthCard:OnShow(_sortingOrder)
|
|||
self.baseType = globalActivity[self.actInfo.activityId].CanBuyRechargeId[1]
|
||||
self:SetPanelType()
|
||||
self:RefreshPanel()
|
||||
if self.actType==78 then
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."chaozhijijin128",1)
|
||||
CheckRedPointStatus(RedPointType.jijin128)
|
||||
elseif self.actType==79 then
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."chaozhijijin328",1)
|
||||
CheckRedPointStatus(RedPointType.jijin328)
|
||||
end
|
||||
end
|
||||
|
||||
function UpperMonthCard:RefreshPanel()
|
||||
|
|
|
|||
|
|
@ -112,6 +112,9 @@ function this.ResetLocalData(var)--初始化所有本地的每日一刷--1是五
|
|||
PlayerPrefs.SetInt(PlayerManager.uid.."kaifuchongbang",0)
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."lingShouBaoGe",0)
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."tuijianzhenrong",0)
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."hotRank",0)
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."chaozhijijin128",0)
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."chaozhijijin328",0)
|
||||
end
|
||||
|
||||
if var == 1 then
|
||||
|
|
|
|||
|
|
@ -686,6 +686,7 @@ function this.RegisterRedCheckFunc()
|
|||
--超值基金
|
||||
RPData:AddCheckFunc(RedPointType.jijin128,CommonActPageManager.ChaoZhiJiJin128Red)
|
||||
RPData:AddCheckFunc(RedPointType.jijin328,CommonActPageManager.ChaoZhiJiJin328Red)
|
||||
RPData:AddCheckFunc(RedPointType.HotRank,DynamicActivityManager.CheckHotRankRedPoint)
|
||||
--战力冲刺
|
||||
RPData:AddCheckFunc(RedPointType.PowerRiceGool,CommonActPageManager.PowerRiceRedCheck)
|
||||
RPData:AddCheckFunc(RedPointType.KaiFuChongBang,CommonActPageManager.ChongBangCheckRed)
|
||||
|
|
|
|||
|
|
@ -44,7 +44,8 @@ end
|
|||
|
||||
function this.GetConfigDataByActId(actId)
|
||||
local data = {}
|
||||
local configs = ConfigManager.GetAllConfigsDataByKey(ConfigName.SummonTreasure,"Grade",actId)
|
||||
LogError("actid==="..actId)
|
||||
local configs = ConfigManager.TryGetAllConfigsDataByKey(ConfigName.SummonTreasure,"Grade",actId)
|
||||
for i = 1,#configs do
|
||||
if not data[i] then
|
||||
data[i] = {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue