ACE3/addons/spectator/functions/fnc_ui_handleLoad.sqf
jonpas 82f3a57e22 Use ACRE2 add display passthrough keys API in spectator (#5735)
* Use ACRE2 add display passthrough keys API
* Assure backwards compatibility with older ACRE2 versions
2017-12-08 23:08:30 +00:00

26 lines
511 B
Plaintext

/*
* Author: SilentSpike, 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
*/
#include "script_component.hpp"
params ["_display"];
uiNamespace setVariable [QGVAR(display), _display];
// Handle ACRE2 Toggle Spectator (if present)
if (!isNil "acre_api_fnc_addDisplayPassthroughKeys") then {
[_display] call acre_api_fnc_addDisplayPassthroughKeys;
};