08b515afd9
EN: 2.0.0.143 CN: 2.0.0.142 JP: 2.0.0.145 KR: 2.0.0.150
33 lines
1.0 KiB
Lua
33 lines
1.0 KiB
Lua
local OptionMultiSelectGrid = class("OptionMultiSelectGrid", BaseCtrl)
|
|
OptionMultiSelectGrid._mapNodeConfig = {
|
|
imgChooseOutter = {},
|
|
imgChooseInner = {},
|
|
txtSortNum = {sComponentName = "TMP_Text"},
|
|
txtGrid = {sComponentName = "TMP_Text"}
|
|
}
|
|
OptionMultiSelectGrid._mapEventConfig = {}
|
|
function OptionMultiSelectGrid:OnEnable()
|
|
self.nIndex = 0
|
|
self.nSort = 0
|
|
end
|
|
function OptionMultiSelectGrid:Init(sTitle, nIndex)
|
|
self.nIndex = nIndex
|
|
NovaAPI.SetTMPText(self._mapNode.txtGrid, sTitle)
|
|
self._mapNode.imgChooseOutter:SetActive(false)
|
|
self._mapNode.imgChooseInner:SetActive(false)
|
|
NovaAPI.SetTMPText(self._mapNode.txtSortNum, "")
|
|
end
|
|
function OptionMultiSelectGrid:SetSelect(bSelect, nSort)
|
|
self.nSort = nSort
|
|
NovaAPI.SetTMPText(self._mapNode.txtSortNum, nSort)
|
|
self._mapNode.imgChooseOutter:SetActive(bSelect)
|
|
self._mapNode.imgChooseInner:SetActive(bSelect)
|
|
end
|
|
function OptionMultiSelectGrid:GetIndex()
|
|
return self.nIndex
|
|
end
|
|
function OptionMultiSelectGrid:GetSort()
|
|
return self.nSort
|
|
end
|
|
return OptionMultiSelectGrid
|