setGroupIconParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
(updated params)
 
(14 intermediate revisions by one other user not shown)
Line 18: Line 18:
|gr1= High Command
|gr1= High Command


|descr= Set group icons parameters. [color, string,float,bool]
|descr= Set group icons parameters.


|s1= group [[setGroupIconParams]] [group, properties]
|s1= group [[setGroupIconParams]] properties


|p1= group: [[Group]]
|p1= group: [[Group]]


|p2= properties: [[Array]]:
|p2= properties: [[Array]] in format [color, text, scale, visibility, WPvisibility WPcolor], where:
* color: [[Color|Color (RGBA)]]
* color: [[Array]] - icon color in format [r,g,b,a]
* text: [[String]]
* text: [[String]] - icon text
* scale: [[Number]]
* scale: [[Number]] - icon scale
* visible: [[Boolean]]
* visibility: [[Boolean]] - icon visibility
* WPvisibility: [[Boolean]] - waypoint visibility
* WPcolor: [[Array]] - waypoint color in format [r,g,b,a]


|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>_grp [[setGroupIconParams]] [<nowiki/>[0.9,0,0, 1], "The Group", 1.25, [[false]]];</code>
|x1= <sqf>_grp setGroupIconParams [[0.9,0,0,1], "The Group", 1.25, false];</sqf>


|seealso= [[addGroupIcon]] [[clearGroupIcons]], [[getGroupIcon]], [[getGroupIconParams]], [[groupIconSelectable]], [[groupIconsVisible]], [[onGroupIconClick]], [[removeGroupIcon]], [[setGroupIcon]], [[setGroupIconsSelectable]], [[setGroupIconsVisible]]
|seealso= [[addGroupIcon]] [[clearGroupIcons]] [[getGroupIcon]] [[getGroupIconParams]] [[groupIconSelectable]] [[groupIconsVisible]] [[onGroupIconClick]] [[removeGroupIcon]] [[setGroupIcon]] [[setGroupIconsSelectable]] [[setGroupIconsVisible]]
}}
}}

Latest revision as of 19:59, 25 December 2022

Hover & click on the images for description

Description

Description:
Set group icons parameters.
Groups:
High Command

Syntax

Syntax:
group setGroupIconParams properties
Parameters:
group: Group
properties: Array in format [color, text, scale, visibility, WPvisibility WPcolor], where:
  • color: Array - icon color in format [r,g,b,a]
  • text: String - icon text
  • scale: Number - icon scale
  • visibility: Boolean - icon visibility
  • WPvisibility: Boolean - waypoint visibility
  • WPcolor: Array - waypoint color in format [r,g,b,a]
Return Value:
Nothing

Examples

Example 1:
_grp setGroupIconParams [[0.9,0,0,1], "The Group", 1.25, false];

Additional Information

See also:
addGroupIcon clearGroupIcons getGroupIcon getGroupIconParams groupIconSelectable groupIconsVisible onGroupIconClick removeGroupIcon setGroupIcon 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