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:
SL1900
2026-07-21 12:30:00 +09:00
parent a12087abad
commit 8c4bd41668
1334 changed files with 873026 additions and 95164 deletions
@@ -61,7 +61,7 @@ TaskCommonCtrl_01._mapRedDotConfig = {}
function TaskCommonCtrl_01: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]
self.imgDbType = tbParam[3] or tbImgDbType.SizeDelta
if type(self.nActivityId) ~= "number" then
self.nActivityId = nil
@@ -83,9 +83,6 @@ function TaskCommonCtrl_01: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
@@ -198,6 +195,30 @@ function TaskCommonCtrl_01: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 TaskCommonCtrl_01:refresh_Tab()
self._mapNode.svList_Tab:Init(#self.tbData, self, self.onGridRefresh_Tab, self.onGridBtnClick_Tab)