addGroupIcon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added more details about arguments and return value)
(Split out and described parameters)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| group '''addGroupIcon''' properties |= Syntax
| group '''addGroupIcon''' [IconClass, offset (optional)] |= Syntax


|p1= group: [[Group]] - |= PARAMETER1  
|p1= group: [[Group]] - Group to add icon to |= PARAMETER1  


|p2= properties: [[Array]] - [IconClass, offset (optional)] |= PARAMETER2  
|p2= IconClass: [[String]] - Class name of an icon from CfgGroupIcons |= PARAMETER2  


| [[Number]] - texture ID |= RETURNVALUE  
|p3= offset: [[Array]] - X and Y offsets of the icon in form [offsetX, offsetY] |= PARAMETER3
 
| [[Number]] - Icon ID |= RETURNVALUE  





Revision as of 21:16, 2 October 2018

Hover & click on the images for description

Description

Description:
Add icon to a group. Returns icon ID
Groups:
Uncategorised

Syntax

Syntax:
group addGroupIcon [IconClass, offset (optional)]
Parameters:
group: Group - Group to add icon to
IconClass: String - Class name of an icon from CfgGroupIcons
offset: 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

Notes

Bottom Section