setGroupIcon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2 |Game name=
| arma2


|1.00|Game version=
|1.00


|gr1= High Command |GROUP1=
|gr1= High Command


| Sets group icon properties. |DESCRIPTION=
| Sets group icon properties.


| group '''setGroupIcon''' [id, icon, offset] |SYNTAX=
| group '''setGroupIcon''' [id, icon, offset]


|p1= group: [[Group]] |PARAMETER1=
|p1= group: [[Group]]
|p2= [id, icon, offset] : [[Array]] |PARAMETER2=
|p2= [id, icon, offset] : [[Array]]


|p3= id: [[Number]] - The icon ID returned by [[addGroupIcon]] |PARAMETER3=
|p3= id: [[Number]] - The icon ID returned by [[addGroupIcon]]


|p4= icon: [[String]] - Class name of desired icon from CfgGroupIcons |PARAMETER4=
|p4= icon: [[String]] - Class name of desired icon from CfgGroupIcons


|p5= offset: [[Array]] (Optional) - X and Y offsets of the icon in form [offsetX, offsetY] |PARAMETER5=
|p5= offset: [[Array]] (Optional) - X and Y offsets of the icon in form [offsetX, offsetY]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]




Line 27: Line 27:
_grp [[setGroupIcon]] [_iconsize, _iconsizeclass, _offset];
_grp [[setGroupIcon]] [_iconsize, _iconsizeclass, _offset];
_grp [[setGroupIcon]] [_newid, _icon, _offset];
_grp [[setGroupIcon]] [_newid, _icon, _offset];
_grp [[setGroupIcon]] [_icon, _iconclass];</code>|EXAMPLE1=
_grp [[setGroupIcon]] [_icon, _iconclass];</code>




| [[addGroupIcon]], [[clearGroupIcons]], [[getGroupIcon]], [[getGroupIconParams]], [[groupIconSelectable]], [[groupIconsVisible]], [[onGroupIconClick]], [[removeGroupIcon]], [[setGroupIconParams]], [[setGroupIconsSelectable]], [[setGroupIconsVisible]] |SEEALSO=
| [[addGroupIcon]], [[clearGroupIcons]], [[getGroupIcon]], [[getGroupIconParams]], [[groupIconSelectable]], [[groupIconsVisible]], [[onGroupIconClick]], [[removeGroupIcon]], [[setGroupIconParams]], [[setGroupIconsSelectable]], [[setGroupIconsVisible]]


| |MPBEHAVIOUR=
|
}}
}}



Revision as of 11:09, 18 January 2021

Hover & click on the images for description

Description

Description:
Sets group icon properties.
Groups:
High Command

Syntax

Syntax:
group setGroupIcon [id, icon, offset]
Parameters:
group: Group
[id, icon, offset] : Array
id: Number - The icon ID returned by addGroupIcon
icon: String - Class name of desired icon from CfgGroupIcons
offset: Array (Optional) - X and Y offsets of the icon in form [offsetX, offsetY]
Return Value:
Nothing

Examples

Example 1:
_target setGroupIcon [_icon, "hc_selectedEnemy"]; _target setGroupIcon [_icon, "flag"]; _grp setGroupIcon [_iconsize, _iconsizeclass, _offset]; _grp setGroupIcon [_newid, _icon, _offset]; _grp setGroupIcon [_icon, _iconclass];

Additional Information

See also:
addGroupIconclearGroupIconsgetGroupIcongetGroupIconParamsgroupIconSelectablegroupIconsVisibleonGroupIconClickremoveGroupIconsetGroupIconParamssetGroupIconsSelectablesetGroupIconsVisible

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note