{"name":"BIS_fnc_displayClouds","title":"BIS fnc displayClouds","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_displayClouds","revid":379591,"updated":"2026-11-04T21:04:05Z","groups":["GUI"],"status":"ok","games":{"tkoh":"1.00","arma3":"0.50"},"since":"tkoh 1.00","arma3_since":"0.50","description":"Shows or removes the moving clouds background used by Take On Helicopters menus: the `RscClouds` title resource on layer 759.\nWith mode 1 the function adds `MouseMoving` and `MouseHolding` event handlers to the given display; they create the layer on the first mouse movement.\n\n> [!NOTE]\n> This is a Take On Helicopters leftover. In Arma 3 the cloud animation is commented out and the only picture the function sets is the Take On Helicopters logo (`\\HSim\\UI_H\\data\\helisim_logo_ca.paa`), which does not exist, so nothing is shown.\n> Arma 3 calls it only without arguments, in the `onUnload` of `RscDisplayInterruptRevert.sqf` and `RscDisplayHeliportMain.sqf`, to remove the layer.","syntaxes":[{"syntax":"[display, mode] call BIS_fnc_displayClouds","params":[{"name":"display","type":"Display","optional":true,"default":"displayNull","description":"display that gets the mouse event handlers (mode 1 only)","type_expr":"Display","text":"display: Display - (Optional, default displayNull) display that gets the mouse event handlers (mode 1 only)"},{"name":"mode","type":"Number","optional":true,"default":"0","description":"1: add the mouse event handlers to the display\n- 0: remove the clouds layer\n- negative: toggle the fade of controls with IDC 1200 to 1210 in the layer","type_expr":"Number","text":"mode: Number - (Optional, default 0)\n\n- 1: add the mouse event handlers to the display\n- 0: remove the clouds layer\n- negative: toggle the fade of controls with IDC 1200 to 1210 in the layer"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["[] call BIS_fnc_displayClouds; // removes the clouds layer"]},{"code":["// in a display's onLoad\n[_this select 0, 1] call BIS_fnc_displayClouds;"]}],"see_also":["cutRsc","cutText","displayAddEventHandler"]}