08b515afd9
EN: 2.0.0.143 CN: 2.0.0.142 JP: 2.0.0.145 KR: 2.0.0.150
28 lines
1.0 KiB
Lua
28 lines
1.0 KiB
Lua
local SoldierTechPreviewPropertyItemCtrl = class("SoldierTechPreviewPropertyItemCtrl", BaseCtrl)
|
|
SoldierTechPreviewPropertyItemCtrl._mapNodeConfig = {
|
|
imgIcon = {sComponentName = "Image"},
|
|
txtProperty = {sComponentName = "TMP_Text"},
|
|
txtValue2 = {sComponentName = "TMP_Text"}
|
|
}
|
|
SoldierTechPreviewPropertyItemCtrl._mapEventConfig = {}
|
|
SoldierTechPreviewPropertyItemCtrl._mapRedDotConfig = {}
|
|
function SoldierTechPreviewPropertyItemCtrl:Awake()
|
|
end
|
|
function SoldierTechPreviewPropertyItemCtrl:OnEnable()
|
|
end
|
|
function SoldierTechPreviewPropertyItemCtrl:OnDisable()
|
|
end
|
|
function SoldierTechPreviewPropertyItemCtrl:OnDestroy()
|
|
end
|
|
function SoldierTechPreviewPropertyItemCtrl:Refresh(sIcon, sName, sValue)
|
|
if sIcon and 0 < #sIcon then
|
|
self:SetPngSprite(self._mapNode.imgIcon, sIcon)
|
|
self._mapNode.imgIcon.gameObject:SetActive(true)
|
|
else
|
|
self._mapNode.imgIcon.gameObject:SetActive(false)
|
|
end
|
|
NovaAPI.SetTMPText(self._mapNode.txtProperty, sName or "")
|
|
NovaAPI.SetTMPText(self._mapNode.txtValue2, sValue or "")
|
|
end
|
|
return SoldierTechPreviewPropertyItemCtrl
|