Major Update - 2.0.0.143
EN: 2.0.0.143 CN: 2.0.0.142 JP: 2.0.0.145 KR: 2.0.0.150
This commit is contained in:
@@ -3,7 +3,8 @@ local RootPath = "Icon/SoldierBuffCard/"
|
||||
local bgPath = "Icon/SoldierOtherIcon/"
|
||||
SoldierBuffItemCtrl._mapNodeConfig = {
|
||||
imgIcon = {sComponentName = "Image"},
|
||||
imgBg = {sComponentName = "Image"}
|
||||
imgBg = {sComponentName = "Image"},
|
||||
imgpoint = {}
|
||||
}
|
||||
SoldierBuffItemCtrl._mapEventConfig = {}
|
||||
SoldierBuffItemCtrl._mapRedDotConfig = {}
|
||||
@@ -19,11 +20,18 @@ function SoldierBuffItemCtrl:SetData(mapCfg)
|
||||
if mapCfg == nil then
|
||||
return
|
||||
end
|
||||
self._mapNode.imgIcon.gameObject:SetActive(true)
|
||||
self._mapNode.imgBg.gameObject:SetActive(true)
|
||||
self:SetPngSprite(self._mapNode.imgIcon, RootPath .. mapCfg.Icon)
|
||||
if mapCfg.Rarity ~= 0 then
|
||||
self:SetPngSprite(self._mapNode.imgBg, bgPath .. AllEnum.SoldierStrategyCardRarityIcon[mapCfg.Rarity] .. AllEnum.SoldierChessIconSurfix.S)
|
||||
end
|
||||
end
|
||||
function SoldierBuffItemCtrl:SetEmpty()
|
||||
self._mapNode.imgIcon.gameObject:SetActive(false)
|
||||
self._mapNode.imgBg.gameObject:SetActive(false)
|
||||
self._mapNode.imgpoint.gameObject:SetActive(false)
|
||||
end
|
||||
function SoldierBuffItemCtrl:OnRefresh()
|
||||
end
|
||||
return SoldierBuffItemCtrl
|
||||
|
||||
Reference in New Issue
Block a user