BIS fnc ORBATOpen: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Text replacement - "(Optional, default [])" to "(Optional, default {{hl|[]}})")
Line 14: Line 14:
|p2= display: [[Display]] - (Optional, default <sqf inline>[] call BIS_fnc_displayMission</sqf>) Parent display
|p2= display: [[Display]] - (Optional, default <sqf inline>[] call BIS_fnc_displayMission</sqf>) Parent display


|p3= tags: [[Array]] of [[String]]s - (Optional, default []) List of tags. Searching will stop on groups which do not contain at least one of the tags
|p3= tags: [[Array]] of [[String]]s - (Optional, default {{hl|[]}}) List of tags. Searching will stop on groups which do not contain at least one of the tags


|p4= numTiers: [[Number]] - (Optional, default -1 (all)) Number of tiers displayed
|p4= numTiers: [[Number]] - (Optional, default -1 (all)) Number of tiers displayed


|p5= parameters: [[Array]] of [[Array]]s - (Optional, default []) sub-arrays in format [config, code] where:
|p5= parameters: [[Array]] of [[Array]]s - (Optional, default {{hl|[]}}) sub-arrays in format [config, code] where:
config: [[Config]] - group class
config: [[Config]] - group class
code: [[Code]] - action performed upon clicking on group icon
code: [[Code]] - action performed upon clicking on group icon

Revision as of 14:05, 26 October 2023

Hover & click on the images for description

Description

Description:
Opens the ORBAT Viewer.
Execution:
call
Groups:
Strategic

Syntax

Syntax:
[path, display, tags, numTiers, parameters] call BIS_fnc_ORBATOpen
Parameters:
path: Config - config path to displayed structure
display: Display - (Optional, default [] call BIS_fnc_displayMission) Parent display
tags: Array of Strings - (Optional, default []) List of tags. Searching will stop on groups which do not contain at least one of the tags
numTiers: Number - (Optional, default -1 (all)) Number of tiers displayed
parameters: Array of Arrays - (Optional, default []) sub-arrays in format [config, code] where: config: Config - group class code: Code - action performed upon clicking on group icon
Return Value:
Display

Examples

Example 1:
[configFile >> "CfgORBAT" >> "BIS" >> "O_Brigade", findDisplay 46, [], 4, ["ConfigClass_1", { systemChat "ConfigClass_1" }]] call BIS_fnc_ORBATOpen;

Additional Information

See also:
ORBAT Viewer BIS_fnc_ORBATAddGroupOverlay BIS_fnc_ORBATAnimate BIS_fnc_ORBATConfigPreview BIS_fnc_ORBATGetGroupParams BIS_fnc_ORBATRemoveGroupOverlay BIS_fnc_ORBATSetGroupFade BIS_fnc_ORBATSetGroupParams BIS_fnc_ORBATTooltip

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