setInfoPanel: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
Lou Montana (talk | contribs) m (Text replacement - "[[Arma 3 " to "[[Arma 3: ") |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.72 | |||
|1.72 | |||
|gr1= Custom Panels | |gr1= Custom Panels | ||
| 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. | ||
| [[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" | ||
Line 15: | Line 14: | ||
|p2= componentClassOrType: [[String]] | |p2= componentClassOrType: [[String]] | ||
| [[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) | |r1= [[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) | ||
|x1 = < | |x1= <sqf> | ||
_result = | // opens slingload assistant on right panel | ||
private _result = setInfoPanel ["VehicleSystemsDisplayManagerComponentRight", "SlingLoadDisplayComponent"]; | |||
if (!_result) then { hint "could not open the slingload assistant, sorry" }; | |||
</sqf> | |||
| [[Arma 3 Custom Info]] | |seealso= [[Arma 3: Custom Info]] [[infoPanel]] [[infoPanels]] [[infoPanelComponents]] [[enableInfoPanelComponent]] [[infoPanelComponentEnabled]] | ||
}} | }} | ||
Latest revision as of 10:38, 6 May 2024
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