UITableLayout
A modifier class that arranges GUI elements in a table-like grid layout.
Properties
| Property | Type | Default |
|---|---|---|
Name | string | "UITableLayout" |
Enabled | boolean | true |
Columns | table | {} |
RowHeight | UDim | UDim.new(0, 40) |
PaddingX | UDim | UDim.new(0, 8) |
PaddingY | UDim | UDim.new(0, 4) |
SortOrder | EnumItem | Enum.SortOrder.LayoutOrder |
HorizontalAlignment | EnumItem | Enum.HorizontalAlignment.Left |
VerticalAlignment | EnumItem | Enum.VerticalAlignment.Top |
FillEmptyColumns | boolean | true |
totalPaddingX | any | totalPaddingX + px.X |
totalPaddingY | any | totalPaddingY + px.Y |
maxCols | any | #cells |
scaleTotal | any | scaleTotal + def.Width.Scale |
fixedTotal | any | fixedTotal + w |
undefinedCount | any | undefinedCount + 1 |
totalTableWidth | any | totalTableWidth + (colWidths[i] or 0) |
cursor | any | totalPaddingX + math.max(0, (effectiveWidth - totalTableWidth) * 0.5) |
cursor | any | totalPaddingX + math.max(0, effectiveWidth - totalTableWidth) |
cursor | any | cursor + (colWidths[i] or 0) |
startY | any | totalPaddingY + math.max(0, (effectiveHeight - totalTableHeight) * 0.5) |
startY | any | totalPaddingY + math.max(0, effectiveHeight - totalTableHeight) |
cellX | any | colX + (colW - cellW) * 0.5 |
cellX | any | colX + colW - cellW - padX |
curY | any | curY + rowH + padY |
Functions
GetAbsoluteSize
Arguments
objReturns
This function returns nothing.
API
instance:GetAbsoluteSize(obj)