addGroupIcon: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?]]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 10: | Line 9: | ||
|gr1= High Command |GROUP1= | |gr1= High Command |GROUP1= | ||
| Adds icon to a group leader. Returns icon ID, Control icons visibility with [[setGroupIconsVisible]]. |DESCRIPTION= | | Adds icon to a group leader. Returns icon ID, Control icons visibility with [[setGroupIconsVisible]]. |DESCRIPTION= | ||
| group '''addGroupIcon''' [iconClass, offset] |SYNTAX= | | group '''addGroupIcon''' [iconClass, offset] |SYNTAX= | ||
Line 30: | Line 27: | ||
|x1= <code>groupName [[addGroupIcon]] ["b_inf", [offsetX, offsetY]]</code>|EXAMPLE1= | |x1= <code>groupName [[addGroupIcon]] ["b_inf", [offsetX, offsetY]]</code>|EXAMPLE1= | ||
| [[clearGroupIcons]], [[getGroupIcon]], [[getGroupIconParams]], [[groupIconSelectable]], [[groupIconsVisible]], [[onGroupIconClick]], [[removeGroupIcon]], [[setGroupIcon]], [[setGroupIconParams]], [[setGroupIconsSelectable]], [[setGroupIconsVisible]] |SEEALSO= | | [[clearGroupIcons]], [[getGroupIcon]], [[getGroupIconParams]], [[groupIconSelectable]], [[groupIconsVisible]], [[onGroupIconClick]], [[removeGroupIcon]], [[setGroupIcon]], [[setGroupIconParams]], [[setGroupIconsSelectable]], [[setGroupIconsVisible]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 00:11, 17 January 2021
Description
- Description:
- Adds icon to a group leader. Returns icon ID, Control icons visibility with setGroupIconsVisible.
- Groups:
- High Command
Syntax
- Syntax:
- group addGroupIcon [iconClass, offset]
- Parameters:
- group: Group - group to add icon to
- [iconClass, offset] - Array
- iconClass: String - class name of an icon from CfgGroupIcons
- offset (Optional): Array - X and Y offsets of the icon in form [offsetX, offsetY]
- Return Value:
- Number - Icon ID
Examples
- Example 1:
groupName addGroupIcon ["b_inf", [offsetX, offsetY]]
Additional Information
- See also:
- clearGroupIconsgetGroupIcongetGroupIconParamsgroupIconSelectablegroupIconsVisibleonGroupIconClickremoveGroupIconsetGroupIconsetGroupIconParamssetGroupIconsSelectablesetGroupIconsVisible
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