BIS fnc initDisplay: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
||
Line 22: | Line 22: | ||
|r1= Nothing | |r1= Nothing | ||
|x1= <code>["onLoad", [[Magic Variables#this|_this]], "RscDisplayAAR", "GUI", true] call (uiNamespace | |x1= <code>["onLoad", [[Magic Variables#this|_this]], "RscDisplayAAR", "GUI", true] call (uiNamespace getVariable "[[BIS_fnc_initDisplay]]");</code> | ||
|seealso= [[GUI Tutorial]] [[Arma: GUI Configuration]] | |seealso= [[GUI Tutorial]] [[Arma: GUI Configuration]] | ||
}} | }} |
Revision as of 21:38, 12 July 2022
Description
- Description:
- This function is a central part of how BI handles UIs. For a full explanation see this page.
- Execution:
- call
- Groups:
- GUI
Syntax
- Syntax:
- parameters call BIS_fnc_initDisplay
- Parameters:
- parameters: Array
- [ ] - Init displays during preStart
- [mode, params, displayClass, scriptPath, register]
- mode: String - Mode, can be "onLoad" or "onUnload"
- params: Array - Paramameters passed from onLoad or onUnload UI event handler
- displayClass: String - Display class, usually to format "RscDisplayXXX"
- scriptPath: String - Script path from CfgScriptPaths
- register: Number or Boolean - Save variables associated with the display to the uiNamespace. Usually this is false when the function is called from a control.
- Return Value:
- Nothing
Examples
- Example 1:
["onLoad", _this, "RscDisplayAAR", "GUI", true] call (uiNamespace getVariable "BIS_fnc_initDisplay");
Additional Information
- See also:
- GUI Tutorial Arma: GUI Configuration
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