setInfoPanel: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Opens given component or first component of given component type on specified info panel. |= | | Opens given component or first component of given component type on specified info panel. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[setInfoPanel]] [infopanelId, componentClassOrType]; |= | | [[setInfoPanel]] [infopanelId, componentClassOrType]; |SYNTAX= | ||
|p1= infoPanelId: [[String]] - info panel classname, or "left" or "right" |= | |p1= infoPanelId: [[String]] - info panel classname, or "left" or "right" |PARAMETER1= | ||
|p2= componentClassOrType: [[String]] |= | |p2= componentClassOrType: [[String]] |PARAMETER1= | ||
| [[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) |= | | [[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}} | ||
_result = [[setInfoPanel]] ["VehicleSystemsDisplayManagerComponentRight", "SlingLoadDisplayComponent"];</code> |= | _result = [[setInfoPanel]] ["VehicleSystemsDisplayManagerComponentRight", "SlingLoadDisplayComponent"];</code> |EXAMPLE1= | ||
| [[Arma 3 Custom Info]], [[infoPanel]], [[infoPanels]], [[infoPanelComponents]], [[enableInfoPanelComponent]], [[infoPanelComponentEnabled]] |= | | [[Arma 3 Custom Info]], [[infoPanel]], [[infoPanels]], [[infoPanelComponents]], [[enableInfoPanelComponent]], [[infoPanelComponentEnabled]] |SEEALSO= | ||
}} | }} | ||
Revision as of 14:47, 7 April 2019
Description
- Description:
- Opens given component or first component of given component type on specified info panel.
- Groups:
- Uncategorised
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