PGRData/Script/matrix/xui/xuimovie/XUIGridStaff.lua

17 lines
435 B
Lua
Raw Permalink Normal View History

local stringUtf8Len = string.Utf8Len
local DefaultColor = CS.UnityEngine.Color.white
local XUIGridStaff = XClass(nil, "XUIGridStaff")
function XUIGridStaff:Ctor(ui)
self.GameObject = ui.gameObject
self.Transform = ui.transform
XTool.InitUiObject(self)
end
function XUIGridStaff:Refresh(staffPath, staffId)
local name = XMovieConfigs.GetStaffName(staffPath, staffId)
self.Text.text = name
end
return XUIGridStaff