getChildren
getChildren: (PanelComponent) -> {LayoutableRenderableEntity}getChildren(): the live list of children, a Luau array: table.insert adds, table.clear clears.
PanelComponent.new()
OverlayPanel.new(…).panelComponent
OverlayPanel.new(…):getPanelComponent()| Method | Returns | Description |
|---|---|---|
getChildren() | {LayoutableRenderableEntity} | getChildren(): the live list of children, a Luau array: table.insert adds, table.clear clears. |
getPreferredSize() | Dimension? | getPreferredSize(). |
setBackgroundColor(Color?) | () | setBackgroundColor(color): nil draws no background. |
getBackgroundColor() | Color? | getBackgroundColor(). |
setOrientation(ComponentOrientation?) | () | setOrientation(orientation). |
setWrap(boolean) | () | setWrap(wrap): start a new column (row) once the preferred height (width) is reached. |
setBorder(Rectangle?) | () | setBorder(border): the left, top, right and bottom padding, as a Rectangle's x, y, width and height. |
setGap(Point?) | () | setGap(gap): the space between children. |
new() | PanelComponent | PanelComponent.new(): vertical, STANDARD_WIDTH wide, 4 px border, no gap. |
| Method | Returns | Description |
|---|---|---|
OverlayPanel.getPanelComponent | PanelComponent | panelComponent. |
PanelComponentClass.new | PanelComponent | PanelComponent.new(): vertical, STANDARD_WIDTH wide, 4 px border, no gap. |
getChildrengetChildren: (PanelComponent) -> {LayoutableRenderableEntity}getChildren(): the live list of children, a Luau array: table.insert adds, table.clear clears.
getPreferredSizegetPreferredSize: (PanelComponent) -> Dimension?getPreferredSize().
setBackgroundColorsetBackgroundColor: (PanelComponent, Color?) -> ()setBackgroundColor(color): nil draws no background.
getBackgroundColorgetBackgroundColor: (PanelComponent) -> Color?getBackgroundColor().
setOrientationsetOrientation: (PanelComponent, ComponentOrientation?) -> ()setOrientation(orientation).
setWrapsetWrap: (PanelComponent, boolean) -> ()setWrap(wrap): start a new column (row) once the preferred height (width) is reached.
setBordersetBorder: (PanelComponent, Rectangle?) -> ()setBorder(border): the left, top, right and bottom padding, as a Rectangle's x, y, width and height.
setGapsetGap: (PanelComponent, Point?) -> ()setGap(gap): the space between children.
newnew: () -> PanelComponentPanelComponent.new(): vertical, STANDARD_WIDTH wide, 4 px border, no gap.