addGroupIcon: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|eff= local|Multiplayer Effects= | |eff= local|Multiplayer Effects= | ||
|arg= global|Multiplayer Arguments= | |arg= global|Multiplayer Arguments= | ||
|gr1= High Command | |gr1= High Command | ||
| Adds icon to a group leader. Returns icon ID, Control icons visibility with [[setGroupIconsVisible]]. | | Adds icon to a group leader. Returns icon ID, Control icons visibility with [[setGroupIconsVisible]]. | ||
| group '''addGroupIcon''' [iconClass, offset] | | group '''addGroupIcon''' [iconClass, offset] | ||
|p1= group: [[Group]] - group to add icon to | |p1= group: [[Group]] - group to add icon to | ||
|p2= [iconClass, offset] - [[Array]] | |p2= [iconClass, offset] - [[Array]] | ||
|p3= iconClass: [[String]] - class name of an icon from <tt>CfgGroupIcons</tt> | |p3= iconClass: [[String]] - class name of an icon from <tt>CfgGroupIcons</tt> | ||
|p4= offset (Optional): [[Array]] - X and Y offsets of the icon in form [offsetX, offsetY] | |p4= offset (Optional): [[Array]] - X and Y offsets of the icon in form [offsetX, offsetY] | ||
| [[Number]] - Icon ID | | [[Number]] - Icon ID | ||
|x1= <code>groupName [[addGroupIcon]] ["b_inf", [offsetX, offsetY]]</code> | |x1= <code>groupName [[addGroupIcon]] ["b_inf", [offsetX, offsetY]]</code> | ||
| [[clearGroupIcons]], [[getGroupIcon]], [[getGroupIconParams]], [[groupIconSelectable]], [[groupIconsVisible]], [[onGroupIconClick]], [[removeGroupIcon]], [[setGroupIcon]], [[setGroupIconParams]], [[setGroupIconsSelectable]], [[setGroupIconsVisible]] | | [[clearGroupIcons]], [[getGroupIcon]], [[getGroupIconParams]], [[groupIconSelectable]], [[groupIconsVisible]], [[onGroupIconClick]], [[removeGroupIcon]], [[setGroupIcon]], [[setGroupIconParams]], [[setGroupIconsSelectable]], [[setGroupIconsVisible]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:02, 18 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