ACE3/addons/spectator/functions/fnc_ui_handleLoad.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

33 lines
720 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: kymckay, Jonpas
* Function used to handle load event.
*
* Arguments:
* 0: Spectator display <DISPLAY>
*
* Return Value:
* None
*
* Example:
* _this call ace_spectator_fnc_ui_handleLoad
*
* Public: No
*/
params ["_display"];
uiNamespace setVariable [QGVAR(display), _display];
if (["ace_map_gestures"] call EFUNC(common,isModLoaded)) then {
[_display displayCtrl IDC_MAP] call EFUNC(map_gestures,initDisplaySpectator);
};
[QGVAR(displayLoaded), _display] call CBA_fnc_localEvent;
// Handle ACRE2 Toggle Spectator (if present)
if (!isNil "acre_api_fnc_addDisplayPassthroughKeys") then {
[_display] call acre_api_fnc_addDisplayPassthroughKeys;
};