Initial version - 1.2.0.60
EN: 1.2.0.60 CN: 1.2.0.61 JP: 1.2.0.63 KR: 1.2.0.67
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
local TemplateSpecialExclusiveItemCtrl = class("TemplateSpecialExclusiveItemCtrl", BaseCtrl)
|
||||
TemplateSpecialExclusiveItemCtrl._mapNodeConfig = {
|
||||
imgIcon = {sComponentName = "Image"},
|
||||
imgSelect = {},
|
||||
imgMask = {sComponentName = "Image"}
|
||||
}
|
||||
TemplateSpecialExclusiveItemCtrl._mapEventConfig = {}
|
||||
function TemplateSpecialExclusiveItemCtrl:SetPerk(nTid, bHas)
|
||||
local mapCfg = ConfigTable.GetData_Item(nTid)
|
||||
self:SetPngSprite(self._mapNode.imgIcon, mapCfg.Icon)
|
||||
self._mapNode.imgSelect:SetActive(false)
|
||||
if bHas == false then
|
||||
self._mapNode.imgMask.gameObject:SetActive(true)
|
||||
self:SetPngSprite(self._mapNode.imgMask, mapCfg.Icon)
|
||||
else
|
||||
self._mapNode.imgMask.gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
function TemplateSpecialExclusiveItemCtrl:SetSelect(bSelect)
|
||||
self._mapNode.imgSelect:SetActive(bSelect)
|
||||
end
|
||||
return TemplateSpecialExclusiveItemCtrl
|
||||
Reference in New Issue
Block a user