[飘渺之旅]======红点修改提交
parent
b0dfb411b8
commit
e488e98680
|
@ -1293,6 +1293,7 @@ function this.GetJourneyWithWindDayAmount()
|
||||||
end
|
end
|
||||||
--判断当前奖励是否可领取
|
--判断当前奖励是否可领取
|
||||||
function this.SingleJourneyWithWindRewardNoGet(curRewardTaskData)
|
function this.SingleJourneyWithWindRewardNoGet(curRewardTaskData)
|
||||||
|
if MonthCardManager.GetMonthCardIsOpen(MONTH_CARD_TYPE.LUXURYMONTHCARD) and MonthCardManager.GetMonthCardIsOpen(MONTH_CARD_TYPE.GIFT) then
|
||||||
if curRewardTaskData then
|
if curRewardTaskData then
|
||||||
local dayNumConFig = ConfigManager.GetConfigData(ConfigName.ActivityRewardConfig,curRewardTaskData.missionId)
|
local dayNumConFig = ConfigManager.GetConfigData(ConfigName.ActivityRewardConfig,curRewardTaskData.missionId)
|
||||||
local curServerDay = math.ceil((CalculateSecondsNowTo_N_OClock(0) + GetTimeStamp() - PlayerManager.userCreateTime)/86400)
|
local curServerDay = math.ceil((CalculateSecondsNowTo_N_OClock(0) + GetTimeStamp() - PlayerManager.userCreateTime)/86400)
|
||||||
|
@ -1301,10 +1302,13 @@ function this.SingleJourneyWithWindRewardNoGet(curRewardTaskData)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
--缥缈之旅红点检测
|
--缥缈之旅红点检测
|
||||||
function this.JourneyWithWindAllRedPointState()
|
function this.JourneyWithWindAllRedPointState()
|
||||||
|
if MonthCardManager.GetMonthCardIsOpen(MONTH_CARD_TYPE.LUXURYMONTHCARD) and MonthCardManager.GetMonthCardIsOpen(MONTH_CARD_TYPE.GIFT) then
|
||||||
local idJourneyWithWind = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.JourneyWithWind)
|
local idJourneyWithWind = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.JourneyWithWind)
|
||||||
if idJourneyWithWind and idJourneyWithWind > 0 then
|
if idJourneyWithWind and idJourneyWithWind > 0 then
|
||||||
local redpointstate = this.JourneyWithWindRewardNoGet()
|
local redpointstate = this.JourneyWithWindRewardNoGet()
|
||||||
|
@ -1315,6 +1319,7 @@ function this.JourneyWithWindAllRedPointState()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
--1完成任务未领奖
|
--1完成任务未领奖
|
||||||
|
|
|
@ -293,6 +293,14 @@ function this:OnRefreshRedPoint()
|
||||||
-- 章节红点
|
-- 章节红点
|
||||||
local hadChpater = ActivityGiftManager.CheckChapterRed()
|
local hadChpater = ActivityGiftManager.CheckChapterRed()
|
||||||
-- 缥缈之旅红点
|
-- 缥缈之旅红点
|
||||||
|
if MonthCardManager.GetMonthCardIsOpen(MONTH_CARD_TYPE.LUXURYMONTHCARD) and MonthCardManager.GetMonthCardIsOpen(MONTH_CARD_TYPE.GIFT) then
|
||||||
|
local hadJourneyWithWind = ActivityGiftManager.JourneyWithWindAllRedPointState()
|
||||||
|
this.btnJourneyWithWindRedPoint:SetActive(hadJourneyWithWind)
|
||||||
|
else
|
||||||
|
local aaa=PlayerPrefs.GetInt(PlayerManager.uid.."piaomiaozhilv")
|
||||||
|
this.btnJourneyWithWindRedPoint:SetActive(aaa==0)
|
||||||
|
end
|
||||||
|
|
||||||
local hadJourneyWithWind = ActivityGiftManager.JourneyWithWindAllRedPointState()
|
local hadJourneyWithWind = ActivityGiftManager.JourneyWithWindAllRedPointState()
|
||||||
this.expeditionRedPoint:SetActive(hadExplore)
|
this.expeditionRedPoint:SetActive(hadExplore)
|
||||||
this.onlineRedPoint:SetActive(hadOnline)
|
this.onlineRedPoint:SetActive(hadOnline)
|
||||||
|
|
|
@ -106,6 +106,7 @@ end
|
||||||
|
|
||||||
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
|
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
|
||||||
function JourneyWithWindPanel:OnShow()
|
function JourneyWithWindPanel:OnShow()
|
||||||
|
PlayerPrefs.SetInt(PlayerManager.uid.."piaomiaozhilv",1)
|
||||||
activityData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.JourneyWithWind)
|
activityData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.JourneyWithWind)
|
||||||
this.ShowDayBtnsData()
|
this.ShowDayBtnsData()
|
||||||
this.ShowDayData(curDayIndex)
|
this.ShowDayData(curDayIndex)
|
||||||
|
|
|
@ -107,6 +107,7 @@ function this.ResetLocalData(var)--初始化所有本地的每日一刷--1是五
|
||||||
PlayerPrefs.SetInt(PlayerManager.uid.."GeneralPopup_ChangeHeroProConfirm",0)
|
PlayerPrefs.SetInt(PlayerManager.uid.."GeneralPopup_ChangeHeroProConfirm",0)
|
||||||
PlayerPrefs.SetInt("IsCheckWeekCard_"..PlayerManager.uid, 0)
|
PlayerPrefs.SetInt("IsCheckWeekCard_"..PlayerManager.uid, 0)
|
||||||
PlayerPrefs.SetInt(PlayerManager.uid.."monthCard", 0)
|
PlayerPrefs.SetInt(PlayerManager.uid.."monthCard", 0)
|
||||||
|
PlayerPrefs.SetInt(PlayerManager.uid.."piaomiaozhilv", 0)
|
||||||
PlayerPrefs.SetInt(PlayerManager.uid.."CommonActPage"..ActivityTypeDef.YunYouShangRen,0)
|
PlayerPrefs.SetInt(PlayerManager.uid.."CommonActPage"..ActivityTypeDef.YunYouShangRen,0)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue