2025-06-04 05:02:57 +08:00

18 lines
502 B
Plaintext

local baseCell = autoImport("BaseCell")
AdventureProfessionCell = class("AdventureProfessionCell",baseCell)
function AdventureProfessionCell:Init()
self:initView()
end
function AdventureProfessionCell:initView( )
-- body
self.icon = self:FindGO("icon"):GetComponent(UISprite)
self.level = self:FindGO("level"):GetComponent(UILabel)
end
function AdventureProfessionCell:SetData(data)
IconManager:SetProfessionIcon(data.professionData.icon,self.icon)
self.level.text = data:GetLevelText()
end