Spectator - Add display loaded and unloaded events (#7720)

This commit is contained in:
mharis001
2020-06-05 21:13:10 -04:00
committed by GitHub
parent eaa23cc84f
commit 7746dbcc75
4 changed files with 28 additions and 3 deletions

View File

@ -19,6 +19,8 @@ params ["_display"];
uiNamespace setVariable [QGVAR(display), _display];
[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;

View File

@ -0,0 +1,20 @@
#include "script_component.hpp"
/*
* Author: mharis001
* Function used to handle unload event.
*
* Arguments:
* 0: Spectator display <DISPLAY>
*
* Return Value:
* None
*
* Example:
* _this call ace_spectator_fnc_ui_handleUnload
*
* Public: No
*/
params ["_display"];
[QGVAR(displayUnloaded), _display] call CBA_fnc_localEvent;