Update - 1.13.0.124
EN: 1.13.0.124 CN: 1.13.0.124 JP: 1.13.0.128 KR: 1.13.0.130
This commit is contained in:
@@ -49,7 +49,7 @@ BreakOutTaskCtrl._mapRedDotConfig = {}
|
||||
function BreakOutTaskCtrl:OnEnable()
|
||||
local tbParam = self:GetPanelParam()
|
||||
self.nActivityId = type(tbParam) == "table" and tbParam[1] or nil
|
||||
self.nCurGroupIndex = tbParam[2] or 1
|
||||
self.nCurGroupIndex = tbParam[2]
|
||||
if type(self.nActivityId) ~= "number" then
|
||||
self.nActivityId = nil
|
||||
end
|
||||
@@ -64,9 +64,6 @@ function BreakOutTaskCtrl:BuildData(nActivityId)
|
||||
if self.tbGroupId == nil then
|
||||
self.tbGroupId = {}
|
||||
end
|
||||
if self.nCurGroupIndex == nil then
|
||||
self.nCurGroupIndex = 1
|
||||
end
|
||||
if type(nActivityId) ~= "number" then
|
||||
return
|
||||
end
|
||||
@@ -179,6 +176,30 @@ function BreakOutTaskCtrl:BuildData(nActivityId)
|
||||
mapData.tbTaskId[ii] = vv.nTaskId
|
||||
end
|
||||
end
|
||||
if self.nCurGroupIndex == nil then
|
||||
local bInActGroup, nActGroupId = PlayerData.Activity:IsActivityInActivityGroup(self.nActivityId)
|
||||
local nFirstReddot = 1
|
||||
for i, v in ipairs(self.tbData) do
|
||||
local bRed = false
|
||||
if bInActGroup == false then
|
||||
bRed = RedDotManager.GetValid(RedDotDefine.Activity_Group_Task_Group, {
|
||||
self.nActivityId,
|
||||
v.nGroupId
|
||||
})
|
||||
else
|
||||
bRed = RedDotManager.GetValid(RedDotDefine.Activity_Group_Task_Group, {
|
||||
nActGroupId,
|
||||
self.nActivityId,
|
||||
v.nGroupId
|
||||
})
|
||||
end
|
||||
if bRed then
|
||||
nFirstReddot = i
|
||||
break
|
||||
end
|
||||
end
|
||||
self.nCurGroupIndex = nFirstReddot
|
||||
end
|
||||
end
|
||||
function BreakOutTaskCtrl:refresh_Tab()
|
||||
self._mapNode.svList_Tab:Init(#self.tbData, self, self.onGridRefresh_Tab, self.onGridBtnClick_Tab)
|
||||
|
||||
Reference in New Issue
Block a user