红点提交

dev_chengFeng
wangzhenxing 2021-10-12 19:50:41 +08:00
parent a1f3f67bed
commit e28ca0087f
7 changed files with 39 additions and 3 deletions

View File

@ -982,6 +982,7 @@ RedPointType = {
--七界试炼 --七界试炼
QiJieShiLian = 860,--入口 QiJieShiLian = 860,--入口
QiJieTreasure = 8601,--秘宝 QiJieTreasure = 8601,--秘宝
WorldArena_reward = 672, --玉虚论道奖励
} }
RedPointStatus = { RedPointStatus = {

View File

@ -31,7 +31,7 @@ local type = {
tipBg = "r_Dungeon_juqingdian", tipBg = "r_Dungeon_juqingdian",
resetTime = string.format("<color=#A5ADD1>%s</color>",specialConfig[127].Value), resetTime = string.format("<color=#A5ADD1>%s</color>",specialConfig[127].Value),
tip = string.format("<color=#A5ADD1>%s</color>",specialConfig[127].Value), tip = string.format("<color=#A5ADD1>%s</color>",specialConfig[127].Value),
redPointType = RedPointType.JumpServer_HightLadder, redPointType = RedPointType.WorldArena_reward,
tipStr = "", tipStr = "",
state = 0, state = 0,
}, },

View File

@ -671,6 +671,7 @@ function this.ExecuteLoading()
function() NetManager.BeautyBagWishEquipRequest(nil,LoadingPanel.OnStep) end,--心愿魂印 function() NetManager.BeautyBagWishEquipRequest(nil,LoadingPanel.OnStep) end,--心愿魂印
function() LingLongBaoJingManager.InitData(LoadingPanel.OnStep) end, --玲珑宝镜 function() LingLongBaoJingManager.InitData(LoadingPanel.OnStep) end, --玲珑宝镜
function() NetManager.IsCrossRequert(LoadingPanel.OnStep) end, --跨服 function() NetManager.IsCrossRequert(LoadingPanel.OnStep) end, --跨服
function() NetManager.CrossYuXuLunDaoGetInfoRequest(LoadingPanel.OnStep) end, --玉虚论道红点
function() NetManager.TaiChuSecretvolumeRequest(LoadingPanel.OnStep) end, --太初密卷 function() NetManager.TaiChuSecretvolumeRequest(LoadingPanel.OnStep) end, --太初密卷
--[[[35] =]] function() -- 登录请求最终接口,所有请求放在此接口之前 --[[[35] =]] function() -- 登录请求最终接口,所有请求放在此接口之前
-- 登录成功确认 -- 登录成功确认

View File

@ -5630,6 +5630,7 @@ function NetManager.CrossYuXuLunDaoGetInfoRequest(func)
local data = buffer:DataByte() local data = buffer:DataByte()
local msg = ArenaInfoProto_pb.CrossYuXuLunDaoGetInfoResponse() local msg = ArenaInfoProto_pb.CrossYuXuLunDaoGetInfoResponse()
msg:ParseFromString(data) msg:ParseFromString(data)
WorldArenaManager.SetRewardData(msg.dailyRewardState,msg.changedTimes)
if func then if func then
func(msg) func(msg)
end end

View File

@ -304,7 +304,8 @@ function this.InitRedPointAllRelate()
RPData:SetParent(RedPointType.DailyRecharge,RedPointType.RightUp2) RPData:SetParent(RedPointType.DailyRecharge,RedPointType.RightUp2)
--七界试炼 --七界试炼
RPData:SetParent(RedPointType.QiJieShiLian, RedPointType.JumpServer_MainCity) RPData:SetParent(RedPointType.QiJieShiLian, RedPointType.JumpServer_MainCity)
--玉虚论道
RPData:SetParent(RedPointType.WorldArena_reward, RedPointType.JumpServer_MainCity)
for k,v in ConfigPairs(ConfigManager.GetConfig(ConfigName.ActivityGroups)) do for k,v in ConfigPairs(ConfigManager.GetConfig(ConfigName.ActivityGroups)) do
if v.RpType > 0 and v.RpTypeParent > 0 then if v.RpType > 0 and v.RpTypeParent > 0 then
RPData:SetParent(v.RpType,v.RpTypeParent) RPData:SetParent(v.RpType,v.RpTypeParent)
@ -571,6 +572,8 @@ function this.RegisterRedCheckFunc()
RPData:AddCheckFunc(RedPointType.TaiChuMiJuan,DynamicActivityManager.CheckRedPointTaiChu) RPData:AddCheckFunc(RedPointType.TaiChuMiJuan,DynamicActivityManager.CheckRedPointTaiChu)
--七界试炼 --七界试炼
RPData:AddCheckFunc(RedPointType.QiJieShiLian,QiJieShiLianManager.CheckQiJieRedPoint,FUNCTION_OPEN_TYPE.QIJIESHILIAN) RPData:AddCheckFunc(RedPointType.QiJieShiLian,QiJieShiLianManager.CheckQiJieRedPoint,FUNCTION_OPEN_TYPE.QIJIESHILIAN)
--玉虚论道
RPData:AddCheckFunc(RedPointType.WorldArena_reward,WorldArenaManager.CheckRewardPoint())
end end
-- 向红点绑定物体 -- 向红点绑定物体

View File

@ -350,7 +350,6 @@ function this:RefreshEnemyData(team)
this.HeadList[i]:SetEffectScale(0.85) this.HeadList[i]:SetEffectScale(0.85)
table.insert(enemyList,EnemyList[i].uid) table.insert(enemyList,EnemyList[i].uid)
Util.AddOnceClick(bg, function() Util.AddOnceClick(bg, function()
LogError("uid=="..EnemyList[i].uid)
NetManager.GetPlayerCrossYxldOneTeamInfoRequest(EnemyList[i].uid,0,function(msg) NetManager.GetPlayerCrossYxldOneTeamInfoRequest(EnemyList[i].uid,0,function(msg)
UIManager.OpenPanel(UIName.WorldArenaOtherTeamPanel, EnemyList[i].uid,1,msg) UIManager.OpenPanel(UIName.WorldArenaOtherTeamPanel, EnemyList[i].uid,1,msg)
end) end)

View File

@ -7,6 +7,7 @@ local oldScore=0
local newScore=0 local newScore=0
local myRankId=0 local myRankId=0
local challengeTime=0 local challengeTime=0
local rewardState = nil
local rewardList={} local rewardList={}
function this.Initialize() function this.Initialize()
rewardList={} rewardList={}
@ -45,6 +46,15 @@ function this.SetMyData(rank,time)
challengeTime=time challengeTime=time
end end
function this.SetRewardData(data,time)
rewardState=data
challengeTime=time
for i = 1, #data do
LogError("宝箱状态========"..data[1])
end
end
function this.SetOldScore(num) function this.SetOldScore(num)
oldScore=num oldScore=num
end end
@ -109,4 +119,25 @@ function this.SetStarShow(starList, starLv)
end end
end end
--设置奖励状态
function this.SetRewardState(index,state)
if rewardState[index] then
rewardState[index]=state
end
end
--检测玉虚奖励的红点
function this.CheckRewardPoint()
local config=ConfigManager.GetConfigDataByKey(ConfigName.MServerRankConfig,1)
local rewards=config.DailyReward
for i = 1, #rewards do
if rewards[i] then
if challengeTime>=rewards[i][1] and rewardState[i]~=2 then
return true
end
end
end
return false
end
return this return this