46f967a584
EN: 1.6.0.84 CN: 1.6.0.87 JP: 1.6.0.88 KR: 1.6.0.91
34 lines
1.1 KiB
Lua
34 lines
1.1 KiB
Lua
local ThrowGiftItemDicGridCtrl = class("ThrowGiftItemDicGridCtrl", BaseCtrl)
|
|
ThrowGiftItemDicGridCtrl._mapNodeConfig = {
|
|
imgBgItemNormal = {sComponentName = "Image"},
|
|
imgItemIcon = {sComponentName = "Image"},
|
|
TMPItemName = {sComponentName = "TMP_Text"}
|
|
}
|
|
ThrowGiftItemDicGridCtrl._mapEventConfig = {}
|
|
ThrowGiftItemDicGridCtrl._mapRedDotConfig = {}
|
|
function ThrowGiftItemDicGridCtrl:Awake()
|
|
end
|
|
function ThrowGiftItemDicGridCtrl:FadeIn()
|
|
end
|
|
function ThrowGiftItemDicGridCtrl:FadeOut()
|
|
end
|
|
function ThrowGiftItemDicGridCtrl:OnEnable()
|
|
end
|
|
function ThrowGiftItemDicGridCtrl:OnDisable()
|
|
end
|
|
function ThrowGiftItemDicGridCtrl:OnDestroy()
|
|
end
|
|
function ThrowGiftItemDicGridCtrl:OnRelease()
|
|
end
|
|
function ThrowGiftItemDicGridCtrl:SetItem(nItemId)
|
|
local mapItemCfgData = ConfigTable.GetData("ThrowGiftItem", nItemId)
|
|
if mapItemCfgData == nil then
|
|
self.gameObject:SetActive(false)
|
|
return
|
|
end
|
|
self.gameObject:SetActive(true)
|
|
NovaAPI.SetTMPText(self._mapNode.TMPItemName, mapItemCfgData.Name)
|
|
self:SetPngSprite(self._mapNode.imgItemIcon, mapItemCfgData.Icon)
|
|
end
|
|
return ThrowGiftItemDicGridCtrl
|