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,29 @@
|
||||
local TemplateExclusiveItemCtrl = class("TemplateExclusiveItemCtrl", BaseCtrl)
|
||||
TemplateExclusiveItemCtrl._mapNodeConfig = {
|
||||
imgIcon = {sComponentName = "Image"},
|
||||
imgRare = {sComponentName = "Image"},
|
||||
imgSelect = {},
|
||||
goStar = {
|
||||
sCtrlName = "Game.UI.TemplateEx.TemplateStarCtrl"
|
||||
},
|
||||
imgMask = {sComponentName = "Image"}
|
||||
}
|
||||
TemplateExclusiveItemCtrl._mapEventConfig = {}
|
||||
function TemplateExclusiveItemCtrl:SetPerk(nTid, nStar, nMaxStar, bHas)
|
||||
local mapCfg = ConfigTable.GetData_Item(nTid)
|
||||
self:SetPngSprite(self._mapNode.imgIcon, mapCfg.Icon)
|
||||
self._mapNode.goStar:SetStar(nStar, nMaxStar)
|
||||
self._mapNode.imgSelect:SetActive(false)
|
||||
local sPath = AllEnum.FrameType_New.ExclusivePerk .. AllEnum.FrameColor_New[mapCfg.Rarity]
|
||||
self:SetAtlasSprite(self._mapNode.imgRare, "12_rare", sPath)
|
||||
if bHas == false then
|
||||
self._mapNode.imgMask.gameObject:SetActive(true)
|
||||
self:SetAtlasSprite(self._mapNode.imgMask, "12_rare", sPath)
|
||||
else
|
||||
self._mapNode.imgMask.gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
function TemplateExclusiveItemCtrl:SetSelect(bSelect)
|
||||
self._mapNode.imgSelect:SetActive(bSelect)
|
||||
end
|
||||
return TemplateExclusiveItemCtrl
|
||||
Reference in New Issue
Block a user