2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2017-12-08 23:08:30 +00:00
|
|
|
/*
|
2023-08-17 10:02:17 +00:00
|
|
|
* Author: kymckay, Jonpas
|
2017-12-08 23:08:30 +00:00
|
|
|
* 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];
|
|
|
|
|
2020-06-19 15:35:57 +00:00
|
|
|
if (["ace_map_gestures"] call EFUNC(common,isModLoaded)) then {
|
|
|
|
[_display displayCtrl IDC_MAP] call EFUNC(map_gestures,initDisplaySpectator);
|
|
|
|
};
|
|
|
|
|
2020-06-06 01:13:10 +00:00
|
|
|
[QGVAR(displayLoaded), _display] call CBA_fnc_localEvent;
|
|
|
|
|
2020-06-19 15:35:57 +00:00
|
|
|
|
2017-12-08 23:08:30 +00:00
|
|
|
// Handle ACRE2 Toggle Spectator (if present)
|
|
|
|
if (!isNil "acre_api_fnc_addDisplayPassthroughKeys") then {
|
|
|
|
[_display] call acre_api_fnc_addDisplayPassthroughKeys;
|
|
|
|
};
|