List

This type represents a list box control.

circle-info

This type inherits ControlContainer type. All of its base methods and fields are also available in this type.

circle-info

add method expects an instance of Selectable. Passing other control types will not add them to the list.

circle-check

__call

Constructor

Constructs the list.

circle-exclamation

Arguments

Name

Type

Description

id

ControlID|string

ID.

height

vec2

Size.

Returns

Type

Description

List

List box instance.

Example

local list = gui.List(id, draw.Vec2(0, 60));
list.sizeToParentW = true -- Resize width to fill entire container.

allowMultiple

Field

Type: bool

If set to true, the list will be able to toggle multiple selectables.


unlimitedMode

Field

Type: bool

If set to true, the list will be able to support more than 64 items.

circle-exclamation

GetValue

Method

Returns list's value.

Arguments

None.

Returns

Type

Description

Value data.

Example


Get

Method

Returns value directly. Alias for GetValue():Get() .

Arguments

None.

Returns

Type

Description

bits

Value.

Example

Last updated