ACE3/addons/spectator/functions/fnc_ui_handleLoad.sqf
Kyle Mckay e47e18001f
Docs - Update my display name everywhere (#9330)
* Update display name in team

* Update display name everywhere

* order

https://youtu.be/VYycQTm2HrM

---------

Co-authored-by: BrettMayson <brett@mayson.io>
2023-08-17 12:02:17 +02:00

33 lines
717 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;
};