5e0d58cfad
EN: 1.2.0.60 CN: 1.2.0.61 JP: 1.2.0.63 KR: 1.2.0.67
37 lines
1.1 KiB
Lua
37 lines
1.1 KiB
Lua
local TemplateTogTabCtrl = class("TemplateTogTabCtrl", BaseCtrl)
|
|
TemplateTogTabCtrl._mapNodeConfig = {
|
|
imgOff = {nCount = 2},
|
|
imgOn = {nCount = 2},
|
|
txtLeft = {sComponentName = "TMP_Text", nCount = 2},
|
|
txtRight = {sComponentName = "TMP_Text", nCount = 2}
|
|
}
|
|
TemplateTogTabCtrl._mapEventConfig = {}
|
|
TemplateTogTabCtrl._mapRedDotConfig = {}
|
|
function TemplateTogTabCtrl:Awake()
|
|
end
|
|
function TemplateTogTabCtrl:FadeIn()
|
|
end
|
|
function TemplateTogTabCtrl:FadeOut()
|
|
end
|
|
function TemplateTogTabCtrl:OnEnable()
|
|
end
|
|
function TemplateTogTabCtrl:OnDisable()
|
|
end
|
|
function TemplateTogTabCtrl:OnDestroy()
|
|
end
|
|
function TemplateTogTabCtrl:OnRelease()
|
|
end
|
|
function TemplateTogTabCtrl:SetText(sRight, sLeft)
|
|
NovaAPI.SetTMPText(self._mapNode.txtLeft[1], sLeft)
|
|
NovaAPI.SetTMPText(self._mapNode.txtLeft[2], sLeft)
|
|
NovaAPI.SetTMPText(self._mapNode.txtRight[1], sRight)
|
|
NovaAPI.SetTMPText(self._mapNode.txtRight[2], sRight)
|
|
end
|
|
function TemplateTogTabCtrl:SetState(bRight)
|
|
self._mapNode.imgOff[1]:SetActive(bRight)
|
|
self._mapNode.imgOff[2]:SetActive(not bRight)
|
|
self._mapNode.imgOn[1]:SetActive(not bRight)
|
|
self._mapNode.imgOn[2]:SetActive(bRight)
|
|
end
|
|
return TemplateTogTabCtrl
|