PGRData/Resources/Scripts/XUi/XUiCommon/XUiBaseComponent.lua

20 lines
425 B
Lua
Raw Normal View History

2022-12-26 08:36:01 +00:00
XUiBaseComponent = XClass(nil, "XUiBaseComponent")
function XUiBaseComponent:Ctor(rootUi, ui)
self.GameObject = ui.gameObject
self.Transform = ui.transform
self.RootUi = rootUi
XTool.InitUiObject(self)
end
-- for override
function XUiBaseComponent:Refresh()
end
function XUiBaseComponent:GetGameObject()
return self.GameObject
end
function XUiBaseComponent:GetTransform()
return self.Transform
end