mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-21 21:25:16 +00:00
34 lines
793 B
Lua
34 lines
793 B
Lua
local Roact = require(script:FindFirstAncestor("Rojo").Roact)
|
|
|
|
local Plugin = script:FindFirstAncestor("Plugin")
|
|
|
|
local RojoFooter = require(Plugin.Components.RojoFooter)
|
|
|
|
local e = Roact.createElement
|
|
|
|
local Panel = Roact.Component:extend("Panel")
|
|
|
|
function Panel:init()
|
|
self.footerSize, self.setFooterSize = Roact.createBinding(Vector2.new())
|
|
end
|
|
|
|
function Panel:render()
|
|
return e("Frame", {
|
|
Size = UDim2.new(1, 0, 1, 0),
|
|
BackgroundTransparency = 1,
|
|
}, {
|
|
Layout = Roact.createElement("UIListLayout", {
|
|
HorizontalAlignment = Enum.HorizontalAlignment.Center,
|
|
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
}),
|
|
|
|
Body = e("Frame", {
|
|
Size = UDim2.new(0, 360, 1, -32),
|
|
BackgroundTransparency = 1,
|
|
}, self.props[Roact.Children]),
|
|
|
|
Footer = e(RojoFooter),
|
|
})
|
|
end
|
|
|
|
return Panel |