{"name":"BIS_fnc_initDisplay","operator":null,"title":"BIS fnc initDisplay","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_initDisplay","revid":349445,"updated":"2023-11-08T16:48:31Z","groups":["GUI"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"This function is a central part of how BI handles UIs. For a full explanation see this page.","syntaxes":[{"syntax":"parameters call BIS_fnc_initDisplay","since":null,"effect":null,"exec":null,"params":[{"name":"parameters","type":"Array","optional":false,"default":null,"description":"Array\n- [] - Init displays during preStart\n- [mode, params, displayClass, scriptPath, register]\n  - mode: String -  Mode, can be \"onLoad\" or \"onUnload\"\n  - params: Array - Parameters passed from onLoad or onUnload UI event handler\n  - displayClass: String - Display class, usually to format \"RscDisplayXXX\"\n  - scriptPath: String - Script path from CfgScriptPaths\n  - 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.","types":["Array"],"since":null,"text":"parameters: Array\n- [] - Init displays during preStart\n- [mode, params, displayClass, scriptPath, register]\n  - mode: String -  Mode, can be \"onLoad\" or \"onUnload\"\n  - params: Array - Parameters passed from onLoad or onUnload UI event handler\n  - displayClass: String - Display class, usually to format \"RscDisplayXXX\"\n  - scriptPath: String - Script path from CfgScriptPaths\n  - 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."}],"returns":{"type":"Nothing","types":[],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n[\"onLoad\", _this, \"RscDisplayAAR\", \"GUI\", true] call (uiNamespace getVariable \"BIS_fnc_initDisplay\");\n```","code":["[\"onLoad\", _this, \"RscDisplayAAR\", \"GUI\", true] call (uiNamespace getVariable \"BIS_fnc_initDisplay\");"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["GUI Tutorial","Arma: GUI Configuration"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: GUI","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}