红点修改提交

dev_chengFeng
jiaoyangna 2021-05-28 10:20:13 +08:00
parent f2c557c66e
commit 4b33fee287
4 changed files with 23 additions and 5 deletions

View File

@ -400,6 +400,9 @@ function this.BtnClick(id)
end
elseif id == FUNCTION_OPEN_TYPE.ENDLESS then
if ActTimeCtrlManager.SingleFuncState(id) then
local serData = ActTimeCtrlManager.GetSerDataByTypeId()
PlayerPrefs.SetInt("WuJin1"..PlayerManager.uid,serData.endTime)
CheckRedPointStatus(RedPointType.EndlessPanel)
MapManager.curCarbonType = CarBonTypeId.ENDLESS
MapManager.SetViewSize(3)--设置视野范围(明雷形式)
MapManager.isTimeOut = false

View File

@ -145,19 +145,16 @@ end
function this.EnterMap()
CarbonManager.difficulty = CARBON_TYPE.ENDLESS
CarbonManager.carbonType = CARBON_TYPE.ENDLESS
--UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.CARBON, MapManager.curMapId)
local serData = ActTimeCtrlManager.GetSerDataByTypeId(FUNCTION_OPEN_TYPE.ENDLESS)
if not PlayerPrefs.HasKey("WuJin"..PlayerManager.uid) then
PlayerPrefs.SetInt("WuJin"..PlayerManager.uid ,0)
end
local note = PlayerPrefs.GetInt("WuJin"..PlayerManager.uid)
LogGreen("note:"..note.." serData.endTime:"..serData.endTime)
MapManager.curMapId = EndLessMapManager.openMapId
if serData.endTime ~= note then
PlayerPrefs.SetInt("WuJin"..PlayerManager.uid,serData.endTime)
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.CARBON, MapManager.curMapId)
else
LogGreen("EndLessMapManager.openMapId:"..EndLessMapManager.openMapId.." MapManager.curMapId:"..MapManager.curMapId)
MapManager.curCarbonType = CarBonTypeId.ENDLESS
NetManager.MapInfoRequest(MapManager.curCarbonType, function()
MapManager.isReloadEnter = false
@ -227,6 +224,7 @@ function this.ShowCountTime()
this.timer1 = Timer.New(function ()
freshData = freshData - 1
if freshData < 0 then
ChecRedPointEndLess(RedPointType.EndlessPanel)
this:ClosePanel()
else
updateTime()

View File

@ -877,5 +877,23 @@ function this.CheckoutRedPointMission()
end
return false
end
function this.ChecRedPointEndLess()
if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.ENDLESS) then
return false
end
if not PlayerPrefs.HasKey("WuJin1"..PlayerManager.uid) then
PlayerPrefs.SetInt("WuJin1"..PlayerManager.uid ,0)
end
local note = PlayerPrefs.GetInt("WuJin1"..PlayerManager.uid)
local serData = ActTimeCtrlManager.GetSerDataByTypeId()
if serData.endTime ~= note then
return true
end
local isShow = this.CheckoutRedPointTreasure()
if not isShow then
isShow = this.CheckoutRedPointMission()
end
return isShow
end
-------------------------------------------------------------------------------------------------------------
return this

View File

@ -110,8 +110,6 @@ function this.InitRedPointAllRelate()
-- RPData:SetParent(RedPointType.TrialReward, RedPointType.Trial)
RPData:SetParent(RedPointType.EndLess, RedPointType.Vientiane)
RPData:SetParent(RedPointType.EndlessPanel, RedPointType.EndLess)
RPData:SetParent(RedPointType.wujinMission, RedPointType.EndlessPanel)
RPData:SetParent(RedPointType.wujinTreasure, RedPointType.EndlessPanel)
RPData:SetParent(RedPointType.LuckyCat_GetReward, RedPointType.LuckyCat)
-- 充值
@ -530,6 +528,7 @@ function this.RegisterRedCheckFunc()
RPData:AddCheckFunc(RedPointType.wujinTreasure,EndLessMapManager.CheckoutRedPointTreasure)
RPData:AddCheckFunc(RedPointType.wujinMission,EndLessMapManager.CheckoutRedPointMission)
RPData:SetParent(RedPointType.EndlessPanel, EndLessMapManager.ChecRedPointEndLess)
--化虚坛英雄合成
RPData:AddCheckFunc(RedPointType.Huaxutan_CompoundHero,HeroManager.GetAllHeroCompoundRedPoint)
--主角修行