PGRData/Script/matrix/xui/xuisupertower/bag/XUiSTBagIllusBookGrid.lua

18 lines
No EOL
711 B
Lua

local BasePluginsGrid = require("XUi/XUiSuperTower/Plugins/XUiSuperTowerPluginGrid")
--===========================
--超级爬塔背包图鉴芯片控件
--===========================
local XUiSTBagIllusBookGrid = XClass(BasePluginsGrid, "XUiSTBagIllusBookGrid")
function XUiSTBagIllusBookGrid:RefreshData(pluginData, index)
self.Plugin = pluginData.Plugin
self.RImgIcon:SetRawImage(self.Plugin:GetIcon())
self.ImgQuality:SetSprite(self.Plugin:GetQualityIcon())
self.TxtName.text = self.Plugin:GetName()
self.ImgQualityBg:SetSprite(self.Plugin:GetQualityBg())
self.Index = index
self:SetActiveStatus(false)
self:SetNormalLock(pluginData.IsLock)
end
return XUiSTBagIllusBookGrid