setInfoPanel: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
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...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.72 | |1.72 | ||
|gr1= Custom Panels | |gr1= Custom Panels | ||
| 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. | ||
| [[setInfoPanel]] [infopanelId, componentClassOrType]; | | [[setInfoPanel]] [infopanelId, componentClassOrType]; | ||
|p1= infoPanelId: [[String]] - info panel classname, or "left" or "right" | |p1= infoPanelId: [[String]] - info panel classname, or "left" or "right" | ||
|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) | | [[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 = <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> | ||
| [[Arma 3 Custom Info]], [[infoPanel]], [[infoPanels]], [[infoPanelComponents]], [[enableInfoPanelComponent]], [[infoPanelComponentEnabled]] | | [[Arma 3 Custom Info]], [[infoPanel]], [[infoPanels]], [[infoPanelComponents]], [[enableInfoPanelComponent]], [[infoPanelComponentEnabled]] | ||
}} | }} | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
{{GameCategory|arma3|Scripting Commands}} | {{GameCategory|arma3|Scripting Commands}} |
Revision as of 11:09, 18 January 2021
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