setInfoPanel: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting)  | 
				BrettMayson (talk | contribs)  mNo edit summary  | 
				||
| Line 8: | Line 8: | ||
|descr= Opens given component or first component of given component type on specified info panel.  | |descr= Opens given component or first component of given component type on specified info panel.  | ||
|s1= [[setInfoPanel]] [  | |s1= [[setInfoPanel]] [infoPanelId, componentClassOrType]  | ||
|p1= infoPanelId: [[String]] - info panel classname, or "left" or "right"  | |p1= infoPanelId: [[String]] - info panel classname, or "left" or "right"  | ||
Revision as of 05:03, 27 November 2023
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:
 
Additional Information
- See also:
 - Arma 3 Custom Info infoPanel infoPanels infoPanelComponents enableInfoPanelComponent infoPanelComponentEnabled
 
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