【缥缈之旅】提交1

dev_chengFeng
zhangqiang 2021-07-01 20:13:47 +08:00
parent 85d9610f41
commit 1be2dc60eb
14 changed files with 23693 additions and 51 deletions

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7697db7104f0bb148a5d3a02051c747f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e9b4e0408ecdfcd40a035ee519756f44
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 59d0e9ba97120d9409b8e152279aa8b9
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -907,6 +907,7 @@ RedPointType = {
HongMeng_OpenBox = 8013, -- 格子开启
--山河社稷图
FightLevel = 802,--山河社稷图入口
JourneyWithWind = 804,--缥缈之旅
--化虚坛
Huaxutan = 803,--化虚坛主界面红点
Huaxutan_CompoundHero = 8031,--化虚坛英雄合成红点
@ -1214,6 +1215,7 @@ ActivityTypeDef = {
MeiRiLiBao = 10004,
ChaoFanRuSheng = 500, --超凡入圣
JourneyWithWind = 72, --缥缈之旅
}
--活动结束需要处理面板关闭类型
ActivityTypePanel = {
@ -1238,6 +1240,7 @@ TaskTypeDef = {
DynamicActTask = 10, --主题活动任务
NiuQiChongTian = 11,--牛气冲天任务
wujinfuben = 12,--牛气冲天任务
JourneyWithWind = 13,--缥缈之旅任务
}
--商品类型

View File

@ -208,6 +208,7 @@ ConfigName = {
WishActivityUp = "WishActivityUp",
PackageConfig = "PackageConfig",
SurpriseBoxConfig = "SurpriseBox",
JourneyWithWind = "JourneyWithWind",
}
require "Framework/GameDataBase"

View File

@ -390,6 +390,7 @@ UIName = {
MonsterCampNewPanel = 398,--心魔试炼新界面
AttriTips = 399,--属性弹窗
SurpriseBoxPanel = 401,--惊喜礼盒
JourneyWithWindPanel = 402,--缥缈之旅
}
SubUIConfig = {

View File

@ -9,6 +9,7 @@ local chargeConfig = ConfigManager.GetConfig(ConfigName.RechargeCommodityConfig)
local luxuryConfig = ConfigManager.GetConfig(ConfigName.LuxuryFundConfig)
this.mainLevelConfig = ConfigManager.GetConfig(ConfigName.MainLevelConfig)
local isFirstTime = true
local JourneyWithWindAllDayConFigData = {}
this.isFirstForSupremeHero=false--剑影仙踪是否每日第一次登陆
function this.Initialize()
@ -38,7 +39,7 @@ function this.Initialize()
-- 每次登录显示兑换红点
this.SetExchangeRedStatus(true)
this.InitJourneyWithWindConFigData()
Game.GlobalEvent:AddEvent(GameEvent.Player.OnLevelChange, function()
CheckRedPointStatus(RedPointType.Expert_UpLv)
end)
@ -1258,4 +1259,81 @@ function this.CheckRightUpArenaSize()
end
return y
end
--缥缈之旅开始
--初始化数据
function this.InitJourneyWithWindConFigData()
local acitvityConFig = ConfigManager.TryGetConfigDataByKey(ConfigName.GlobalActivity, "Type", ActivityTypeDef.JourneyWithWind)
if not acitvityConFig then return false end
JourneyWithWindAllDayConFigData = {}
for key, configInfo in ConfigPairs(ConfigManager.GetConfig(ConfigName.ActivityRewardConfig)) do
if configInfo.ActivityId == acitvityConFig.Id then
table.insert(JourneyWithWindAllDayConFigData,configInfo)
end
end
end
function this.GetJourneyWithWindAllDayConFigData()
return JourneyWithWindAllDayConFigData
end
--缥缈之旅红点检测
function this.JourneyWithWindAllRedPointState()
local idJourneyWithWind = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.JourneyWithWind)
if idJourneyWithWind and idJourneyWithWind > 0 then
if this.JourneyWithWindRewardNoGet() then
return true
end
if this.JourneyWithWindCurDayNoOpen() then
return true
end
end
return false
end
--1完成任务未领奖
function this.JourneyWithWindRewardNoGet()
local activityData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.JourneyWithWind)
local curJourneyWithWindAllDayConFigData = this.GetJourneyWithWindAllDayConFigData()
for i = 1, #curJourneyWithWindAllDayConFigData do
if activityData then
local curRewardTaskData--奖励后端数据
for j = 1, #activityData.mission do
if activityData.mission[j].missionId == curJourneyWithWindAllDayConFigData[i].Id then
curRewardTaskData = activityData.mission[j]
end
end
if curRewardTaskData and this.SingleJourneyWithWindRewardNoGet(curRewardTaskData) then
return true
end
end
end
return false
end
function this.SingleJourneyWithWindRewardNoGet(curRewardTaskData)
if curRewardTaskData then
if curRewardTaskData.state == 0 and curRewardTaskData.progress >= 5 then
return true
end
end
return false
end
--2开启从未打开过
--本地存储字符串
function this.SetJourneyWithWindPlayerPrefs(dayNum,val)
PlayerPrefs.SetString(PlayerManager.uid..PlayerManager.serverInfo.server_id.."JourneyWithWind"..dayNum, val)
end
--获得本地存储字符串
function this.GetJourneyWithWindPlayerPrefs(dayNum)
return PlayerPrefs.GetString(PlayerManager.uid..PlayerManager.serverInfo.server_id.."JourneyWithWind"..dayNum, 0)
end
function this.JourneyWithWindCurDayNoOpen()
local curDay = math.ceil((CalculateSecondsNowTo_N_OClock(0) + GetTimeStamp() - PlayerManager.userCreateTime)/86400)
local curJourneyWithWindAllDayConFigData = this.GetJourneyWithWindAllDayConFigData()
for i = 1, #curJourneyWithWindAllDayConFigData do
if curJourneyWithWindAllDayConFigData[i].Values[1][2] <= curDay then
local curRedPointState = this.GetJourneyWithWindPlayerPrefs(curJourneyWithWindAllDayConFigData[i])
if curRedPointState then
return true
end
end
end
end
return this

View File

@ -48,6 +48,12 @@ function InvadeMonsterView:InitComponent(gameObject, fightPointPassMainPanel)
effectAdapte(Util.GetGameObject(this.onlineRewardEffect, "ziti mask (1)"))
this.onlineRewardData = nil
this.onlineRewardState = nil
--缥缈之旅
this.btnJourneyWithWind = Util.GetGameObject(self.gameObject, "Bg/LeftUp/box/btnJoureyWithWind")
this.btnJourneyWithWindRedPoint = Util.GetGameObject(this.btnJourneyWithWind, "redPoint")
this.btnJourneyWithWindTime = Util.GetGameObject(this.btnJourneyWithWind, "time"):GetComponent("Text")
end
--绑定事件(用于子类重写)
@ -106,6 +112,10 @@ function InvadeMonsterView:BindEvent()
Util.AddClick(this.btnRewrdChapter, function()
UIManager.OpenPanel(UIName.CourtesyDressPanel, ActivityTypeDef.ChapterAward, true)
end)
-- 缥缈之旅
Util.AddClick(this.btnJourneyWithWind, function()
UIManager.OpenPanel(UIName.JourneyWithWindPanel)
end)
end
@ -221,6 +231,14 @@ function InvadeMonsterView:OnShow(...)
else
this.btnRewrdChapter:SetActive(false)
end
--缥缈之旅显示判断
local idJourneyWithWind = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.JourneyWithWind)
if idJourneyWithWind and idJourneyWithWind > 0 then
this.btnJourneyWithWind:SetActive(true)
this.RefreshJourneyWithWindShow()
else
this.btnJourneyWithWind:SetActive(false)
end
end
-- 刷新在线奖励显示
@ -269,8 +287,11 @@ function this:OnRefreshRedPoint()
local hadOnline = ActivityGiftManager.CheckOnlineRed()
-- 章节红点
local hadChpater = ActivityGiftManager.CheckChapterRed()
-- 缥缈之旅红点
local hadJourneyWithWind = ActivityGiftManager.JourneyWithWindAllRedPointState()
this.expeditionRedPoint:SetActive(hadExplore)
this.onlineRedPoint:SetActive(hadOnline)
this.btnJourneyWithWindRedPoint:SetActive(hadJourneyWithWind)
this.chapterRedPoint:SetActive(hadChpater)
this.btnRewrdChapterTextGo:SetActive(true)
if hadChpater then
@ -339,6 +360,34 @@ function this.TimeUpdate()
end
end
-- 检测在缥缈之旅状态
function this.RefreshJourneyWithWindShow()
local endtime = ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.JourneyWithWind)
local timeDown = endtime - GetTimeStamp()
if this.timer2 then
this.timer2:Stop()
this.timer2 = nil
end
if timeDown > 0 then
this.btnJourneyWithWindTime.text = string.format("剩余%s",GetLeftTimeStrByDeltaTime2(timeDown))
this.timer2 = Timer.New(function()
this.btnJourneyWithWindTime.text = string.format("剩余%s",GetLeftTimeStrByDeltaTime2(timeDown))
if timeDown < 0 then
if this.btnJourneyWithWind then
this.btnJourneyWithWind:SetActive(false)
end
this.timer2:Stop()
this.timer2 = nil
end
timeDown = timeDown - 1
end, 1, -1, true)
this.timer2:Start()
else
if this.btnJourneyWithWind then
this.btnJourneyWithWind:SetActive(false)
end
end
end
--界面关闭时调用(用于子类重写)
function InvadeMonsterView:OnClose()
@ -352,7 +401,10 @@ function InvadeMonsterView:OnClose()
this.timer:Stop()
this.timer = nil
end
if this.timer2 then
this.timer2:Stop()
this.timer2 = nil
end
end
--界面销毁时调用(用于子类重写)

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 357b2c1aa3510624694eaa282d2278b9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,330 @@
require("Base/BasePanel")
JourneyWithWindPanel = Inherit(BasePanel)
local this = JourneyWithWindPanel
local JourneyWithWind = ConfigManager.GetConfig(ConfigName.JourneyWithWind)
this.timer = Timer.New()
local sorting = 0
local itemList = {}--item list 重复利用 和 修改层级时会用到
local curDayIndex = 0--当前天数索引
local curBtnConFigData = {}--当前daybtn ActivityRewardConfig数据
local allBtnsConFigData = {}--上方所有daybtn ActivityRewardConfig数据
local curDayAllTaskGos = {}--当前天所有任务go
local curRewardTaskGos = {}--奖励 礼包
local curDay
local activityData
this.UpView = nil
--初始化组件(用于子类重写)
function JourneyWithWindPanel:InitComponent()
this.spLoader = SpriteLoader.New()
--子模块脚本
this.BtnBack = Util.GetGameObject(self.gameObject, "btnBack")
this.helpBtn = Util.GetGameObject(self.gameObject, "helpBtn")
curDayAllTaskGos = {}
for i = 1, 5 do
curDayAllTaskGos[i] = Util.GetGameObject(self.gameObject, "taskList/MissionPre (".. i ..")")
end
curRewardTaskGos = {}
for i = 1, 2 do
curRewardTaskGos[i] = Util.GetGameObject(self.gameObject, "rewardList/rewardPro (".. i ..")")
end
this.leftBtnParent=Util.GetGameObject(self.gameObject,"leftBtn")
this.rightBtnParent=Util.GetGameObject(self.gameObject,"rightBtn")
this.leftBtn = Util.GetGameObject(self.transform, "leftBtn/GameObject")
this.rightBtn = Util.GetGameObject(self.transform, "rightBtn/GameObject")
this.curDayTip = Util.GetGameObject(self.transform, "curDayTip"):GetComponent("Text")
this.dayPre = Util.GetGameObject(self.gameObject, "dayPre")
local v2 = Util.GetGameObject(self.gameObject, "rect"):GetComponent("RectTransform").rect
this.ScrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView, Util.GetGameObject(self.gameObject, "rect").transform,
this.equipPre, nil, Vector2.New(-v2.x*2, -v2.y*2), 2, 1, Vector2.New(0,0))
this.ScrollView.moveTween.MomentumAmount = 1
this.ScrollView.moveTween.Strength = 1
this.UpView = SubUIManager.Open(SubUIConfig.UpView, self.transform, { showType = UpViewOpenType.ShowLeft })
end
--绑定事件(用于子类重写)
function JourneyWithWindPanel:BindEvent()
Util.AddClick(this.BtnBack, function()
self:ClosePanel()
end)
--帮助按钮
Util.AddClick(this.helpBtn, function()
UIManager.OpenPanel(UIName.HelpPopup,HELP_TYPE.OpenSevenDay,this.helpPosition.x,this.helpPosition.y+220)
end)
--左切换按钮
Util.AddClick(this.leftBtn, function()
this.LeftBtnOnClick()
end)
--右切换按钮
Util.AddClick(this.rightBtn, function()
this.RightBtnOnClick()
end)
end
--添加事件监听(用于子类重写)
function JourneyWithWindPanel:AddListener()
-- Game.GlobalEvent:AddEvent(GameEvent.MissionDaily.OnMissionDailyChanged, this.RefreshTaskShow)
end
--移除事件监听(用于子类重写)
function JourneyWithWindPanel:RemoveListener()
-- Game.GlobalEvent:RemoveEvent(GameEvent.MissionDaily.OnMissionDailyChanged, this.RefreshTaskShow)
end
--界面打开时调用(用于子类重写)
function JourneyWithWindPanel:OnOpen(_curDayIndex)
curDay = math.ceil((CalculateSecondsNowTo_N_OClock(0) + GetTimeStamp() - PlayerManager.userCreateTime)/86400)
curDayIndex = _curDayIndex or curDay
end
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
function JourneyWithWindPanel:OnShow()
currentDay = SevenDayCarnivalManager.GetCurrentDayNumber()
-- this.OnDayClickBtn(curDayIndex)
activityData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.JourneyWithWind)
this.ShowDayBtnsData()
this.ShowDayData(curDayIndex)
this.ShowTime()
this.RefreshRedPoint()
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Main })
end
function JourneyWithWindPanel:OnSortingOrderChange()
for i, v in pairs(itemList) do
for j = 1, #v do
v[j]:SetEffectLayer(self.sortingOrder)
end
end
sorting=self.sortingOrder
end
--显示上方所有天的按钮 及 当前可领取的主要奖励
function this.ShowDayBtnsData()
allBtnsConFigData = ActivityGiftManager.GetJourneyWithWindAllDayConFigData()
this.titleScrollView:SetData(allBtnsConFigData, function (index, go)
this.SingleDayBtnDataShow(go, allBtnsConFigData[index])
end,true,true)
this.titleScrollView:SetIndex(curDayIndex)
end
function this.SingleDayBtnDataShow(go,data)
Util.GetGameObject(go, "Text"):GetComponent("Text").text = string.format(Language[10528],data.Values[1][2])
local iconItemId = ConfigManager.GetConfigData(ConfigName.ItemConfig,data.Reward[1][1])
Util.GetGameObject(go, "icon"):GetComponent("Image").sprite = this.spLoader:LoadSprite(GetResourcePath(iconItemId))
local redPoint = Util.GetGameObject(go, "redPoint")
local redState = false
if activityData then
for j = 1, #activityData.mission do
if activityData.mission[j].missionId == data.Id then
redState = ActivityGiftManager.SingleJourneyWithWindRewardNoGet(activityData.mission[j])
end
end
end
if not redState then
redState = ActivityGiftManager.GetJourneyWithWindPlayerPrefs(data.Values[1][2])
end
redPoint:SetActive(redState)
Util.AddOnceClick(go, function()
this.ShowDayData(data.Values[1][2])
end)
end
--当前天的具体任务显示
function this.ShowDayData(_curDayIndex)
curDayIndex = _curDayIndex
ActivityGiftManager.SetJourneyWithWindPlayerPrefs(curDayIndex,1)
this.rightBtnParent:SetActive(true)
this.leftBtnParent:SetActive(true)
if curDayIndex == #allBtnsConFigData then
this.rightBtnParent:SetActive(false)
elseif curDayIndex == 1 then
this.leftBtnParent:SetActive(false)
end
this.curDayTip.text = string.format(Language[10528],curDayIndex)
for i = 1, #allBtnsConFigData do
if curDayIndex == allBtnsConFigData[i].Values[1][2] then
curBtnConFigData = allBtnsConFigData[i]
end
end
--组当前所有任务的表数据
local curDayAllTaskConFigData = {}
for key, configInfo in ConfigPairs(JourneyWithWind) do
if configInfo.DayNum == curDayIndex then
table.insert(curDayAllTaskConFigData,configInfo)
end
end
--组当前所有任务的后端数据
local AllTaskData = TaskManager.GetTypeTaskList(TaskTypeDef.JourneyWithWind)
for i = 1, #curDayAllTaskGos do
if curDayAllTaskConFigData[i] then
curDayAllTaskGos[i]:SetActive(true)
Util.GetGameObject(curDayAllTaskGos[i], "name"):GetComponent("Text").text = "目标"
Util.GetGameObject(curDayAllTaskGos[i], "condition"):GetComponent("Text").text = curDayAllTaskConFigData[i].Show
local btnJump = Util.GetGameObject(curDayAllTaskGos[i], "btnJump")
local btnJumpText = Util.GetGameObject(curDayAllTaskGos[i], "btnJump/get"):GetComponent("Text")
local buyInfo = Util.GetGameObject(curDayAllTaskGos[i], "btnJump/buyInfo"):GetComponent("Text")
btnJumpText.text = "前往"
buyInfo.text = ""
Util.SetGray(btnJump,false)
local curMissionData
for j = 1, #AllTaskData do
if AllTaskData[j].missionId == curDayAllTaskConFigData[i].Id then
curMissionData = AllTaskData[j]
end
end
if curMissionData then--后端有数据说明是当天或者前些天
local isOpen = not curDayAllTaskConFigData[i].SystemId or (curDayAllTaskConFigData[i].SystemId and curDayAllTaskConFigData[i].SystemId > 0 and ActTimeCtrlManager.SingleFuncState(curDayAllTaskConFigData[i].SystemId) )
local progress = curMissionData.progress--任务进度
local state = curMissionData.state--任务状态 0:未完成 1完成未领取 2已达成已领取
if state == 1 or state == 2 then
btnJump.enabled = false
btnJumpText.text = "已完成"
elseif state == 0 then
if isOpen then
btnJump.enabled = true
if curDayAllTaskConFigData[i].TaskGroup ~= 4 then
buyInfo.text = string.format("%s/%s",progress,curDayAllTaskConFigData[i].TaskValue[2][2])
end
Util.AddOnceClick(btnJump, function()
JumpManager.GoJump(curDayAllTaskConFigData[i].Jump)
end)
else
Util.SetGray(btnJump,true)
btnJump.enabled = false
buyInfo.text = string.format(Language[11903],ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,curDayAllTaskConFigData[i].SystemId).OpenRules[2])
end
end
else--无数据说明是之后的一些天
btnJump.enabled = false
Util.SetGray(btnJump,true)
end
else
curDayAllTaskGos[i]:SetActive(false)
end
end
--奖励任务
if curRewardTaskGos[1] and curBtnConFigData and activityData then
local curRewardTaskData--奖励后端数据
for i = 1, #activityData.mission do
if activityData.mission[i].missionId == curBtnConFigData.Id then
curRewardTaskData = activityData.mission[i]
end
end
if curRewardTaskData then
local go = curRewardTaskGos[1]
if not itemList[go.name] then
itemList[go.name] = {}
end
for i = 1, #itemList[go.name] do
itemList[go.name][i].gameObject:SetActive(false)
end
for i = 1, #curBtnConFigData.Reward do
if itemList[go.name][i] then
itemList[go.name][i]:OnOpen(false, curBtnConFigData.Reward[i], 0.8,false,false,false,sorting)
else
itemList[go.name][i] = SubUIManager.Open(SubUIConfig.ItemView, Util.GetGameObject(go, "itemContent").transform)
itemList[go.name][i]:OnOpen(false, curBtnConFigData.Reward[i], 0.8,false,false,false,sorting)
end
itemList[go.name][i].gameObject:SetActive(true)
end
Util.GetGameObject(go, "desc"):GetComponent("Text").text = curBtnConFigData.ContentsShow
local isGetState = ActivityGiftManager.SingleJourneyWithWindRewardNoGet(curRewardTaskData)
local imageStr = isGetState and "s_slbz_1anniuongse" or "s_slbz_1anniuhuise"
Util.GetGameObject(go, "getBtn"):GetComponent("Image").sprite = this.spLoader:LoadSprite(imageStr)
local btnText = Util.GetGameObject(go, "getBtn/Text"):GetComponent("Text")
btnText.text = "领取"
Util.GetGameObject(go, "getBtn/redPoint"):SetActive(isGetState)
Util.AddOnceClick(Util.GetGameObject(go, "getBtn"), function()
if isGetState then
NetManager.GetActivityRewardRequest(curRewardTaskData.missionId, activityData.activityId, function(drop)
UIManager.OpenPanel(UIName.RewardItemPopup,drop,1,function()
-- self.parent:RefreshData(true,false)
-- CheckRedPointStatus(RedPointType.Expert_FastExplore)
end)
end)
else
if curRewardTaskData.state == 0 then
PopupTipPanel.ShowTip("完成当日所有目标才可领取!")
elseif curRewardTaskData.state == 1 then
btnText.text = "已领取"
end
end
end)
end
end
local rechargecommodityData = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig,curBtnConFigData.Values[2][1])
-- 礼包
if curRewardTaskGos[2] and rechargecommodityData then
local go = curRewardTaskGos[2]
if not itemList[go.name] then
itemList[go.name] = {}
end
for i = 1, #itemList[go.name] do
itemList[go.name][i].gameObject:SetActive(false)
end
for i = 1, #rechargecommodityData.RewardShow do
if itemList[go.name][i] then
itemList[go.name][i]:OnOpen(false, rechargecommodityData.RewardShow[i], 0.8,false,false,false,sorting)
else
itemList[go.name][i] = SubUIManager.Open(SubUIConfig.ItemView, Util.GetGameObject(go, "itemContent").transform)
itemList[go.name][i]:OnOpen(false, rechargecommodityData.RewardShow[i], 0.8,false,false,false,sorting)
end
itemList[go.name][i].gameObject:SetActive(true)
end
Util.GetGameObject(go, "desc"):GetComponent("Text").text = rechargecommodityData.Name
local rechargeData = OperatingManager.GetGiftGoodsInfo(GoodsTypeDef.DirectPurchaseGift, rechargecommodityData.Id)
local freetimes = rechargeData.dynamicBuyTimes - rechargeData.buyTimes
local imageStr = freetimes > 0 and "s_slbz_1anniuongse" or "s_slbz_1anniuhuise"
Util.GetGameObject(go, "getBtn"):GetComponent("Image").sprite = this.spLoader:LoadSprite(imageStr)
local btnText = Util.GetGameObject(go, "getBtn/Text"):GetComponent("Text")
btnText.text = rechargecommodityData.Price
Util.AddOnceClick(Util.GetGameObject(go, "getBtn"), function()
if freetimes > 0 then
PayManager.Pay(rechargecommodityData.Id, function(id)
FirstRechargeManager.RefreshAccumRechargeValue(rechargecommodityData.Id)
-- CheckRedPointStatus(RedPointType.DailyGift)
-- self.parent:RefreshData(nil,false,false)
end)
else
PopupTipPanel.ShowTip("完成当日所有目标才可购买!")
end
end)
end
end
function this.LeftBtnOnClick()
curDayIndex = curDayIndex - 1
this.ShowDayData(curDayIndex)
end
function this.RightBtnOnClick()
curDayIndex = curDayIndex + 1
this.ShowDayData(curDayIndex)
end
--界面关闭时调用(用于子类重写)
function JourneyWithWindPanel:OnClose()
if this.timer then
this.timer:Stop()
this.timer = nil
end
end
--界面销毁时调用(用于子类重写)
function JourneyWithWindPanel:OnDestroy()
this.spLoader:Destroy()
if this.timer then
this.timer:Stop()
this.timer = nil
end
itemList = {}
SubUIManager.Close(this.UpView)
end
return JourneyWithWindPanel

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 0940b0951ffaf234eb246fff8d54208e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -161,6 +161,7 @@ function this.InitRedPointAllRelate()
RPData:SetParent(RedPointType.QinglongSerectTreasure, RedPointType.DailyTaskMain)
RPData:SetParent(RedPointType.QinglongSerectTreasureTrail, RedPointType.DailyTaskMain)
RPData:SetParent(RedPointType.FightLevel, RedPointType.SecretTer)
RPData:SetParent(RedPointType.JourneyWithWind, RedPointType.SecretTer)
-- RPData:SetParent(RedPointType.QinglongSerectTreasure, RedPointType.TreasureOfSl)
-- RPData:SetParent(RedPointType.QinglongSerectTreasureTrail, RedPointType.TreasureOfSl)
RPData:SetParent(RedPointType.SecretTer_MaxBoxReward, RedPointType.SecretTer)
@ -492,6 +493,7 @@ function this.RegisterRedCheckFunc()
RPData:AddCheckFunc(RedPointType.QinglongSerectTreasureTrail, QinglongSerectTreasureManager.GetSerectTreasureTrailRedPot)
RPData:AddCheckFunc(RedPointType.FightLevel, FightLevelManager.GetChapterRewardBoxRedPoint)
RPData:AddCheckFunc(RedPointType.JourneyWithWind, ActivityGiftManager.JourneyWithWindAllRedPointState)
RPData:AddCheckFunc(RedPointType.WeekGiftPage,OperatingManager.CheckWeekGiftPageRedPoint)
RPData:AddCheckFunc(RedPointType.MonthGiftPage,OperatingManager.CheckMonthGiftPageRedPoint)