BIS fnc initDisplay: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix example)
m (template:command argument fix)
Line 12: Line 12:


Display is also stored in uiNamespace variable with config class name:
Display is also stored in uiNamespace variable with config class name:
<code>[[uiNamespace]] [[getVariable]] "RscAvCamera";</code> |= Description
<code>[[uiNamespace]] [[getVariable]] "RscAvCamera";</code> |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| parameters call [[BIS_fnc_initDisplay]] |= Syntax
| parameters call [[BIS_fnc_initDisplay]] |SYNTAX=


|p1= parameters: [[Array]]
|p1= parameters: [[Array]]
Line 26: Line 26:
&nbsp; |= Parameter 1
&nbsp; |= Parameter 1


| Nothing |= Return value
| Nothing |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 32: Line 32:
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| |SEEALSO=
}}
}}



Revision as of 12:28, 7 April 2019

Hover & click on the images for description

Description

Description:
Initialize displays during preStart or init GUI display and run its script.
The config class of the display is available in "BIS_fnc_initDisplay_configClass" stored on display: _display getVariable "BIS_fnc_initDisplay_configClass"; Display is also stored in uiNamespace variable with config class name: uiNamespace getVariable "RscAvCamera";
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
parameters call BIS_fnc_initDisplay
Parameters:
parameters: Array
  • [ ] (empty array) - init displays during preStart
  • [mode, params, displayClass, scriptPath]
    • mode: String - mode, can be "onLoad" or "onUnload"
    • params: Array - params passed from onLoad or onUnload UI event handler
    • displayClass: String - Display class, usually to format "RscDisplayXXX"
    • scriptPath: String - script path from CfgScriptPaths
 
Return Value:
Nothing

Examples

Example 1:
["onLoad", _this, "RscDisplayAAR", "GUI"] call (uiNamespace getVariable "BIS_fnc_initDisplay");

Additional Information

See also:
See also needed

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

Notes

Bottom Section