2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2022-05-17 16:55:09 +00:00
|
|
|
/*
|
2023-04-30 21:03:35 +00:00
|
|
|
* Author: PabstMirror
|
|
|
|
* Cleans up existing viewport display and camera
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [] call ace_viewports_fnc_viewCleanup
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2022-05-17 16:55:09 +00:00
|
|
|
|
|
|
|
TRACE_1("camCleanup",_this);
|
|
|
|
|
|
|
|
if (!isNull (missionNamespace getVariable [QGVAR(camera), objNull])) then {
|
|
|
|
GVAR(camera) cameraEffect ["terminate", "back", QGVAR(pip0)];
|
|
|
|
camDestroy GVAR(camera);
|
|
|
|
};
|
|
|
|
|
|
|
|
private _display = uiNamespace getVariable [QGVAR(display), displayNull];
|
|
|
|
if (!isNull _display) then {
|
|
|
|
QGVAR(display) cutText ["", "PLAIN"];
|
|
|
|
};
|