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,17 @@
|
||||
local TowerDefensePotentialIconCtrl = class("TowerDefensePotentialIconCtrl", BaseCtrl)
|
||||
TowerDefensePotentialIconCtrl._mapNodeConfig = {
|
||||
imgIcon = {nCount = 3, sComponentName = "Image"}
|
||||
}
|
||||
TowerDefensePotentialIconCtrl._mapEventConfig = {}
|
||||
TowerDefensePotentialIconCtrl._mapRedDotConfig = {}
|
||||
function TowerDefensePotentialIconCtrl:SetIcon(nId)
|
||||
local potentialCfg = ConfigTable.GetData("TowerDefensePotential", nId)
|
||||
if nil == potentialCfg then
|
||||
return
|
||||
end
|
||||
local _, color = ColorUtility.TryParseHtmlString(AllEnum.PotentialRarityCfg[potentialCfg.Rarity].sColor)
|
||||
self._mapNode.imgIcon[1].gameObject:SetActive(false)
|
||||
self._mapNode.imgIcon[2].gameObject:SetActive(false)
|
||||
self:SetPngSprite(self._mapNode.imgIcon[3], potentialCfg.Icon .. AllEnum.PotentialIconSurfix.A)
|
||||
end
|
||||
return TowerDefensePotentialIconCtrl
|
||||
Reference in New Issue
Block a user