AddIndicator
- Parameters
whichWidget widgetThe widget the indicator will be applied to.
red integer0-255 red color (value mod 256).
green integer0-255 green color (value mod 256).
blue integer0-255 blue color (value mod 256).
alpha integer0-255 opacity (value mod 256). Determining the transparency of the indicator.
0is total transparency,255is total opacity.- comment
Adds a blinking circle around widget with the color (red,green,blue,alpha). The circle blinks twice. This function is commonly used for cinematic modes and is seen in
TransmissionFromUnitWithNameBJ.- note
The size of the indicator depends on a widget's selection size. To modify this, you must edit the object editor field of the widget listed as "Art - Selection Size".
The indicator is shown below the unit selection. If the unit is currently selected, the blinking indicator will be practically hidden by the selection circle. For more see
SetImageTypedescription.- note
See:
UnitAddIndicator(functionally equivalent to this widget version).- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
nothing- Source code
native AddIndicator takes widget whichWidget, integer red, integer green, integer blue, integer alpha returns nothing