Update - 1.12.0.120

EN: 1.12.0.120
CN: 1.12.0.120
JP: 1.12.0.124
KR: 1.12.0.124
This commit is contained in:
SL1900
2026-06-30 14:30:00 +09:00
parent 061d344bf2
commit 80af235e05
826 changed files with 625145 additions and 81163 deletions
@@ -122,7 +122,6 @@ function CharPotentialListCtrl:OnDisable()
for nInstanceId, objCtrl in pairs(self.tbPotentialItemCtrl) do
local obj = objCtrl.gameObject
self:UnbindCtrlByNode(objCtrl)
self.tbPotentialItemCtrl[nInstanceId] = nil
destroy(obj)
end
self.tbPotentialItemCtrl = {}
@@ -89,8 +89,14 @@ function PotentialPreselectionCtrl:RefreshPanel()
end
function PotentialPreselectionCtrl:RefreshList()
self.tbAllPreselectionList = PlayerData.PotentialPreselection:GetPreselectionList()
if self.tbPreselectionList == nil then
self.tbPreselectionList = self.tbAllPreselectionList
self.tbPreselectionList = {}
for _, v in pairs(self.tbAllPreselectionList) do
local mapMainChar = v.tbCharPotential[1]
local nCharId = mapMainChar.nCharId
local isFilter = PlayerData.Filter:CheckFilterByCharAndOption(nCharId, self._panel.tbOption)
if isFilter then
table.insert(self.tbPreselectionList, v)
end
end
NovaAPI.SetTMPText(self._mapNode.txt_BuildCount, string.format("%d/%d", #self.tbAllPreselectionList, self.nAllBuildCount))
local isDirty = PlayerData.Filter:IsDirtyByOption(self._panel.tbOption)
@@ -203,7 +209,6 @@ end
function PotentialPreselectionCtrl:OnDisable()
for nInstanceId, objCtrl in pairs(self.mapGridCtrl or {}) do
self:UnbindCtrlByNode(objCtrl)
self.mapGridCtrl[nInstanceId] = nil
end
self.mapGridCtrl = {}
self._panel.mapCacheFilter = {}
@@ -265,19 +270,9 @@ function PotentialPreselectionCtrl:OnBtnClick_CloseDelete()
end
function PotentialPreselectionCtrl:OnEvent_RefreshByFilter()
self._panel.mapCacheFilter = {}
self.tbPreselectionList = {}
for _, v in pairs(self.tbAllPreselectionList) do
local mapMainChar = v.tbCharPotential[1]
local nCharId = mapMainChar.nCharId
local isFilter = PlayerData.Filter:CheckFilterByCharAndOption(nCharId, self._panel.tbOption)
if isFilter then
table.insert(self.tbPreselectionList, v)
end
end
self:RefreshList()
end
function PotentialPreselectionCtrl:OnEvent_DeleteSuc()
self.tbPreselectionList = nil
self:RefreshList()
end
function PotentialPreselectionCtrl:OnEvent_RefreshPreselectionList()
@@ -172,6 +172,8 @@ PotentialPreselectionEditCtrl._mapEventConfig = {
[EventId.UIHomeConfirm] = "OnEvent_BackHome"
}
PotentialPreselectionEditCtrl._mapRedDotConfig = {}
local COLOR_PREFER = Color(0.14901960784313725, 0.25882352941176473, 0.47058823529411764)
local COLOR_NO_PREFER = Color(0.5803921568627451, 0.6666666666666666, 0.7529411764705882)
function PotentialPreselectionEditCtrl:InitSelectList()
self.tbSelectCharList = {}
if self.initPreselectData ~= nil and next(self.initPreselectData) ~= nil then
@@ -198,6 +200,9 @@ function PotentialPreselectionEditCtrl:CheckPotentialSpecialCount()
return true
end
function PotentialPreselectionEditCtrl:ChangePanel()
if self.nTeamIndex == nil or self.curPreselectData == nil then
return
end
self._mapNode.btnPreviewRoot.gameObject:SetActive(self._panel.nPanelType == AllEnum.PreselectionPanelType.Preview)
self._mapNode.btnEditRoot.gameObject:SetActive(self._panel.nPanelType ~= AllEnum.PreselectionPanelType.Preview)
self._mapNode.btn_Preference.gameObject:SetActive(self._panel.nPanelType == AllEnum.PreselectionPanelType.Preview)
@@ -224,7 +229,7 @@ function PotentialPreselectionEditCtrl:RefreshContent()
self._mapNode.goPotential.gameObject:SetActive(not self.bEmpty)
NovaAPI.SetTMPText(self._mapNode.txtPreselectionName, self.curPreselectData.sName)
self._mapNode.btn_PreferenceIcon.interactable = self.curPreselectData.bPreference
NovaAPI.SetTMPColor(self._mapNode.txtLike, self.curPreselectData.bPreference and Color(0.14901960784313725, 0.25882352941176473, 0.47058823529411764) or Color(0.5803921568627451, 0.6666666666666666, 0.7529411764705882))
NovaAPI.SetTMPColor(self._mapNode.txtLike, self.curPreselectData.bPreference and COLOR_PREFER or COLOR_NO_PREFER)
if self.bEmpty then
self:SetEmpty()
return
@@ -596,7 +601,7 @@ function PotentialPreselectionEditCtrl:OnBtnClick_Preference()
local callback = function()
self.curPreselectData = PlayerData.PotentialPreselection:GetPreselectionById(self.curPreselectData.nId)
self._mapNode.btn_PreferenceIcon.interactable = self.curPreselectData.bPreference
NovaAPI.SetTMPColor(self._mapNode.txtLike, self.curPreselectData.bPreference and Color(0.14901960784313725, 0.25882352941176473, 0.47058823529411764) or Color(0.5803921568627451, 0.6666666666666666, 0.7529411764705882))
NovaAPI.SetTMPColor(self._mapNode.txtLike, self.curPreselectData.bPreference and COLOR_PREFER or COLOR_NO_PREFER)
end
PlayerData.PotentialPreselection:SendPreselectionPreference(tbCheckIn, tbCheckOut, callback)
end
@@ -62,6 +62,9 @@ function PreselectionRenameCtrl:Open()
self:PlayInAni()
end
function PreselectionRenameCtrl:Refresh()
if self.mapPreselection == nil then
return
end
local bInit = NovaAPI.IsDirtyWordsInit()
if not bInit then
NovaAPI.InitDirtyWords()