setInfoPanel: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


|gr1= Custom Panels |GROUP1=
|gr1= Custom Panels |GROUP1=
____________________________________________________________________________________________


| Opens given component or first component of given component type on specified info panel. |DESCRIPTION=
| Opens given component or first component of given component type on specified info panel. |DESCRIPTION=
____________________________________________________________________________________________


| [[setInfoPanel]] [infopanelId, componentClassOrType]; |SYNTAX=
| [[setInfoPanel]] [infopanelId, componentClassOrType]; |SYNTAX=
Line 19: Line 16:


| [[Boolean]] - [[true]] if panel was successfully opened, [[false]] otherwise (e.g. opening GPS on player without GPS item or setting panel to vehicle that doesn't have such capability configured) |RETURNVALUE=
| [[Boolean]] - [[true]] if panel was successfully opened, [[false]] otherwise (e.g. opening GPS on player without GPS item or setting panel to vehicle that doesn't have such capability configured) |RETURNVALUE=
____________________________________________________________________________________________


|x1 = <code>{{codecomment|//opens slingload assistant on right panel}}
|x1 = <code>{{codecomment|//opens slingload assistant on right panel}}

Revision as of 02:33, 17 January 2021

Hover & click on the images for description

Description

Description:
Opens given component or first component of given component type on specified info panel.
Groups:
Custom Panels

Syntax

Syntax:
setInfoPanel [infopanelId, componentClassOrType];
Parameters:
infoPanelId: String - info panel classname, or "left" or "right"
componentClassOrType: String
Return Value:
Boolean - true if panel was successfully opened, false otherwise (e.g. opening GPS on player without GPS item or setting panel to vehicle that doesn't have such capability configured)

Examples

Example 1:
//opens slingload assistant on right panel _result = setInfoPanel ["VehicleSystemsDisplayManagerComponentRight", "SlingLoadDisplayComponent"];

Additional Information

See also:
Arma 3 Custom InfoinfoPanelinfoPanelsinfoPanelComponentsenableInfoPanelComponentinfoPanelComponentEnabled

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