PaletteTileLayout
Package: Libraries.Interface.Controls.Scenes · Inherits from: Libraries.Interface.Layouts.TreeLayout, Libraries.Language.Object, Libraries.Interface.Layouts.Layout
The PaletteTileLayout places the items under a category of the scene palette as tiles, as many side by side as fit in the palette's visible width, row after row, so widening the palette puts more in a row. Anything else under it, such as a smaller category, goes on its own line, as a tree places it. Items that are hidden, such as those a search left out, take no room. The tiles are still the tree's items, in the same order, so the keyboard and screen readers move through them one after another, as through a list.
Actions
GetColumns()
Returns how many tiles are set to go side by side, or 0 if as many as fit.
Returns
integer: The number of tiles in a row, or 0.
GetItemsHeight(Libraries.Containers.Array<Libraries.Interface.Item2D> children, number scale)
Returns how tall the tiles and other items under a category are, as this layout places them.
Parameters
childrenLibraries.Containers.Array<Libraries.Interface.Item2D>: The children of the category's panelscalenumber: The panel's interface scale
Returns
number: The height, in pixels
Layout(Libraries.Interface.Controls.Control container, Libraries.Containers.Array<Libraries.Interface.Item2D> items, number containerWidth, number containerHeight)
Returns how many tiles are set to go side by side, or 0 if as many as fit.
Parameters
containerLibraries.Interface.Controls.ControlitemsLibraries.Containers.Array<Libraries.Interface.Item2D>containerWidthnumbercontainerHeightnumber
SetColumns(integer count)
Sets how many tiles go side by side, or 0, the default, to fit as many as the palette's visible width holds.
Parameters
countinteger: The number of tiles in a row, or 0.