【云梦豪礼】每日添加红点提示

gaoxin 2022-01-14 14:00:13 +08:00
parent 68a2995780
commit e7a17fcd9e
3 changed files with 13 additions and 1 deletions

View File

@ -65,6 +65,12 @@ end
function this.CheckRedPointYunmeng()
local dailyActInfo = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.yunmenghaoli)
if dailyActInfo and #dailyActInfo.mission > 0 then
-- 每天检测
local isCheck = PlayerPrefs.GetInt(PlayerManager.uid.."_YunMeng_Check"..dailyActInfo.activityId, 0)
if isCheck == 0 then
return true
end
--
for i = 1, #dailyActInfo.mission do
if dailyActInfo.mission[i].state == 2 then
return true

View File

@ -147,6 +147,12 @@ function DailyRechargePanel:OnShow()
return
end
self.activityId = self.actInfo.activityId
--
if self.actType == ActivityTypeDef.yunmenghaoli then
PlayerPrefs.SetInt(PlayerManager.uid.."_YunMeng_Check"..self.activityId, 1)
CheckRedPointStatus(RedPointType.yunmenghaoli)
end
--
if #self.actInfo.mission > 1 then
self.grid.gameObject:SetActive(true)
else
@ -166,7 +172,6 @@ function DailyRechargePanel:SetGrid()
self.items[i].go.gameObject:SetActive(true)
local config = actRewardConfig[self.actInfo.mission[i].missionId]
if MoneyUtil.MT == MoneyType.RMB then
LogError(config.Values[1][1])
self.items[i].priceText.sprite = self.spLoader:LoadSprite(missionIndex[config.Values[1][1]].defaultImaRMB)
else
self.items[i].priceText.sprite = self.spLoader:LoadSprite(missionIndex[config.Values[1][1]].defaultIma)

View File

@ -309,6 +309,7 @@ function this.InitRedPointAllRelate()
RPData:SetParent(RedPointType.FirstRecharge,RedPointType.RightUp2)
RPData:SetParent(RedPointType.DailyRecharge,RedPointType.RightUp2)
RPData:SetParent(RedPointType.ContinuityRecharge,RedPointType.RightUp2)
RPData:SetParent(RedPointType.yunmenghaoli,RedPointType.RightUp2)
--七界试炼
RPData:SetParent(RedPointType.QiJieShiLian, RedPointType.JumpServer_MainCity)
--灵脉秘境