addGroupIcon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Split out and described parameters)
(little formating tweak)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


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


|p3= offset: [[Array]] - X and Y offsets of the icon in form [offsetX, offsetY] |= PARAMETER3
|p3= IconClass: [[String]] - Class name of an icon from CfgGroupIcons |= PARAMETER3
 
|p4= offset : [[Array]] (Optional) - X and Y offsets of the icon in form [offsetX, offsetY] |= PARAMETER4


| [[Number]] - Icon ID |= RETURNVALUE  
| [[Number]] - Icon ID |= RETURNVALUE  




|x1= <code>groupName addGroupIcon ["b_inf",[offsetX,offsetY]]</code>|= EXAMPLE1  
|x1= <code>groupName [[addGroupIcon]] ["b_inf", [offsetX, offsetY]]</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 21:00, 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]
Parameters:
group: Group - Group to add icon to
[IconClass, offset] - Array
IconClass: String - Class name of an icon from CfgGroupIcons
offset : Array (Optional) - 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