Update - 1.15.0.134
EN: 1.15.0.134 CN: 1.15.0.133 JP: 1.15.0.137 KR: 1.15.0.139
This commit is contained in:
@@ -26,16 +26,22 @@ PotentialPreselectionItemCtrl._mapNodeConfig = {
|
||||
sLanguageId = "Potential_Preselection_Select"
|
||||
},
|
||||
goMask = {},
|
||||
txtMask = {sComponentName = "TMP_Text"}
|
||||
txtMask = {sComponentName = "TMP_Text"},
|
||||
imgSystemRecommend = {},
|
||||
txtSystemRecmd = {
|
||||
sComponentName = "TMP_Text",
|
||||
sLanguageId = "Potential_System_Preset_Title"
|
||||
}
|
||||
}
|
||||
PotentialPreselectionItemCtrl._mapEventConfig = {}
|
||||
PotentialPreselectionItemCtrl._mapRedDotConfig = {}
|
||||
function PotentialPreselectionItemCtrl:RefreshItem(mapData, bCharDiff, bSelect)
|
||||
function PotentialPreselectionItemCtrl:RefreshItem(mapData, bCharDiff, bSelect, bSystemRecommend)
|
||||
self.mapData = mapData
|
||||
self:ShowDelete(false)
|
||||
self:SetSelect(bSelect)
|
||||
NovaAPI.SetTMPText(self._mapNode.txtBuildName, mapData.sName)
|
||||
self._mapNode.imgLike.gameObject:SetActive(mapData.bPreference)
|
||||
self._mapNode.imgSystemRecommend.gameObject:SetActive(bSystemRecommend == true)
|
||||
local bCharLock = false
|
||||
for k, v in ipairs(mapData.tbCharPotential) do
|
||||
local nCharId = v.nCharId
|
||||
@@ -67,7 +73,7 @@ function PotentialPreselectionItemCtrl:RefreshItem(mapData, bCharDiff, bSelect)
|
||||
end
|
||||
end
|
||||
function PotentialPreselectionItemCtrl:ShowDelete(bShow)
|
||||
if self.mapData ~= nil and not self.mapData.bPreference then
|
||||
if self.mapData ~= nil and not self.mapData.bPreference and self.mapData.bSystemRecommend ~= true then
|
||||
self._mapNode.btnDelete.gameObject:SetActive(bShow)
|
||||
else
|
||||
self._mapNode.btnDelete.gameObject:SetActive(false)
|
||||
@@ -86,6 +92,9 @@ end
|
||||
function PotentialPreselectionItemCtrl:OnDestroy()
|
||||
end
|
||||
function PotentialPreselectionItemCtrl:OnBtnClick_Delete()
|
||||
if self.mapData == nil or self.mapData.bSystemRecommend == true then
|
||||
return
|
||||
end
|
||||
if self.mapData ~= nil then
|
||||
local callback = function()
|
||||
EventManager.Hit(EventId.OpenMessageBox, ConfigTable.GetUIText("Potential_Preselection_Delete_Suc"))
|
||||
|
||||
Reference in New Issue
Block a user