【逍遥游】首通奖励显示脚本提交

dev_chengFeng
yuanshuai 2020-10-28 11:47:05 +08:00 committed by zhangqiang
parent ec3defb2c4
commit 1eba61731e
2 changed files with 5 additions and 1 deletions

View File

@ -28,6 +28,7 @@ function this.GetOpenMapData(func)
_data[msg.infos[i].mapId]={}
_data[msg.infos[i].mapId].process=msg.infos[i].process
_data[msg.infos[i].mapId].redPoint=msg.infos[i].redPoint
_data[msg.infos[i].mapId].first=msg.infos[i].first
Log("逍遥游红点数据mapid:"..msg.infos[i].mapId..",redPoint:"..msg.infos[i].redPoint)
end
this.allMapData=_data

View File

@ -86,7 +86,7 @@ function this.RefreshShow(data)
Log("当前玩家等级:".._cruLevel)
for index, config in ConfigPairs(freeTravel) do
local _isUnLock = config.UnlockLevel >= 0 and _cruLevel >= config.UnlockLevel--判断章节是否开启
local showReward = ConfigManager.GetConfigData(ConfigName.RewardGroup,config.FinalReward).ShowItem
local showReward = ConfigManager.GetConfigData(ConfigName.RewardGroup,config.FirstReward).ShowItem
local _progress=0
local isShowRed=false
Log("当前mapid"..config.MapID)
@ -95,6 +95,9 @@ function this.RefreshShow(data)
Log("data[index].redPoint"..data[config.MapID].redPoint)
_progress=data[config.MapID].process
isShowRed=data[config.MapID].redPoint==1
if data[config.MapID].first==1 then
showReward = ConfigManager.GetConfigData(ConfigName.RewardGroup,config.FinalReward).ShowItem
end
end
local _singleData={
mapId=config.MapID,