Arma 3 Scripting

Command in GUI Control - ListBox

lbSetColor

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets the color of the item (left) with the given index of the listbox or combobox with id idc of the topmost user Dialog to color.

Syntax

Syntax 1

lbSetColor [idc, index, color]

Parameters:

Returns: Nothing

Syntax 2

control lbSetColor [index, color]

Parameters:

Returns: Nothing

Examples

Example 1

lbSetColor [101, 0, [0, 1, 0, 0.5]];

Example 2

_control lbSetColor [0, [0, 1, 0, 0.5]];

See also

lbColor · lbSetColorRight · lbColorRight