Arma 3 Scripting

Function in GUI

BIS_fnc_highlightControl

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

Description

Highlights given control by drawing a border around it and letting it pulsate. The effect is visible until explicitly removed.

Syntax

[displayOrControl, thickness] call BIS_fnc_highlightControl

Parameters:

Returns: Control - returns the created highlight control.

Examples

Example 1

[findDisplay 313 displayCtrl 1023] call BIS_fnc_highlightControl;    // highlights the play button in Eden Editor
[findDisplay 313] call BIS_fnc_highlightControl;                    // removes the previously created highlight effect

Example 2

[] spawn
{
  disableSerialization;
  private _ctrlHighlight = [findDisplay 313 displayCtrl 1023),5] call BIS_fnc_highlightControl;
  sleep 2;
  ctrlDelete _ctrlHighlight;
}; // highlights the play button in Eden Editor and removes the effect after two seconds