PGRData/Script/matrix/xui/xuinewyearluck/XUiGridNewYearLuckRewardTitle.lua

17 lines
514 B
Lua
Raw Normal View History

local XUiGridNewYearLuckRewardTitle = XClass(nil, "XUiGridNewYearLuckRewardTitle")
---@param transform UnityEngine.RectTransform
function XUiGridNewYearLuckRewardTitle:Ctor(transform,type)
self.Transform = transform
self.GameObject = transform.gameObject
XTool.InitUiObject(self)
self.Type = type
self:Refresh()
end
function XUiGridNewYearLuckRewardTitle:Refresh()
self.TxtTitle.text = CS.XTextManager.GetText("NewYearLuckTipTitle" .. self.Type)
end
return XUiGridNewYearLuckRewardTitle