PGRData/Script/matrix/xui/xuislotmachine/XUiSlotMachineRulesItem.lua
2024-09-01 22:49:41 +02:00

21 lines
No EOL
599 B
Lua

---@class XUiSlotMachineRulesItem
local XUiSlotMachineRulesItem = XClass(nil, "XUiSlotMachineRulesItem")
function XUiSlotMachineRulesItem:Ctor(rootUi, ui)
self.GameObject = ui.gameObject
self.Transform = ui.transform
self.RectTransform = ui
self.RootUi = rootUi
XTool.InitUiObject(self)
end
function XUiSlotMachineRulesItem:OnCreate(data)
self.TxtRuleTittle.text = data.Title
self.TxtRule.text = XUiHelper.ConvertLineBreakSymbol(data.Desc)
end
function XUiSlotMachineRulesItem:SetActiveEx(bool)
self.GameObject:SetActiveEx(bool)
end
return XUiSlotMachineRulesItem