Guide 1 Docs 2 Reference 3

Function of Ui

ui.box

The pieces of a layout (see "Layouts"). Sizes are pixels of the game's own HUD; a box is 1 to 256 a side. An item with an id is live.

ui.box(opts: { id: string?, width: number, height: number, color: Ink?, radius: number? }) → LayoutNode

Parameters

opts{ id: string?, width: number, height: number, color: Ink?, radius: number? }required

Returns

LayoutNode

Used in