setGroupIcon: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 20: | Line 20: | ||
|p1= group: [[Group]] | |p1= group: [[Group]] | ||
| | |p2= id: [[Number]] - the icon ID returned by [[addGroupIcon]] | ||
| | |p3= icon: [[String]] - class name of desired icon from CfgGroupIcons | ||
| | |p4= offset: [[Array]] - (Optional, default [0,0]) X and Y offsets of the icon in form [offsetX, offsetY] | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <sqf>_target setGroupIcon [_icon, "hc_selectedEnemy"]; | |x1= <sqf> | ||
_target setGroupIcon [_icon, "hc_selectedEnemy"]; | |||
_target setGroupIcon [_icon, "flag"]; | _target setGroupIcon [_icon, "flag"]; | ||
_grp setGroupIcon [_iconsize, _iconsizeclass, _offset]; | _grp setGroupIcon [_iconsize, _iconsizeclass, _offset]; | ||
_grp setGroupIcon [_newid, _icon, _offset]; | _grp setGroupIcon [_newid, _icon, _offset]; | ||
_grp setGroupIcon [_icon, _iconclass];</sqf> | _grp setGroupIcon [_icon, _iconclass]; | ||
</sqf> | |||
|seealso= [[addGroupIcon]] [[clearGroupIcons]] [[getGroupIcon]] [[getGroupIconParams]] [[groupIconSelectable]] [[groupIconsVisible]] [[onGroupIconClick]] [[removeGroupIcon]] [[setGroupIconParams]] [[setGroupIconsSelectable]] [[setGroupIconsVisible]] | |seealso= [[addGroupIcon]] [[clearGroupIcons]] [[getGroupIcon]] [[getGroupIconParams]] [[groupIconSelectable]] [[groupIconsVisible]] [[onGroupIconClick]] [[removeGroupIcon]] [[setGroupIconParams]] [[setGroupIconsSelectable]] [[setGroupIconsVisible]] | ||
}} | }} |
Revision as of 16:21, 15 August 2022
Description
- Description:
- Sets group icon properties.
- Groups:
- High Command
Syntax
- Syntax:
- group setGroupIcon [id, icon, offset]
- Parameters:
- group: Group
- id: Number - the icon ID returned by addGroupIcon
- icon: String - class name of desired icon from CfgGroupIcons
- offset: Array - (Optional, default [0,0]) 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:
- addGroupIcon clearGroupIcons getGroupIcon getGroupIconParams groupIconSelectable groupIconsVisible onGroupIconClick removeGroupIcon setGroupIconParams setGroupIconsSelectable setGroupIconsVisible
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