setGroupIcon: Difference between revisions
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 "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= High Command | |gr1= High Command | ||
| Sets group icon properties. | | Sets group icon properties. | ||
| group '''setGroupIcon''' [id, icon, offset] | | group '''setGroupIcon''' [id, icon, offset] | ||
|p1= group: [[Group]] | |p1= group: [[Group]] | ||
|p2= [id, icon, offset] : [[Array]] | |p2= [id, icon, offset] : [[Array]] | ||
|p3= id: [[Number]] - The icon ID returned by [[addGroupIcon]] | |p3= id: [[Number]] - The icon ID returned by [[addGroupIcon]] | ||
|p4= icon: [[String]] - Class name of desired icon from CfgGroupIcons | |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] | |p5= offset: [[Array]] (Optional) - X and Y offsets of the icon in form [offsetX, offsetY] | ||
| [[Nothing]] | | [[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> | _grp [[setGroupIcon]] [_icon, _iconclass];</code> | ||
| [[addGroupIcon]], [[clearGroupIcons]], [[getGroupIcon]], [[getGroupIconParams]], [[groupIconSelectable]], [[groupIconsVisible]], [[onGroupIconClick]], [[removeGroupIcon]], [[setGroupIconParams]], [[setGroupIconsSelectable]], [[setGroupIconsVisible]] | | [[addGroupIcon]], [[clearGroupIcons]], [[getGroupIcon]], [[getGroupIconParams]], [[groupIconSelectable]], [[groupIconsVisible]], [[onGroupIconClick]], [[removeGroupIcon]], [[setGroupIconParams]], [[setGroupIconsSelectable]], [[setGroupIconsVisible]] | ||
| | | | ||
}} | }} | ||
Revision as of 11:09, 18 January 2021
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