mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
30 lines
716 B
Plaintext
30 lines
716 B
Plaintext
|
private ["_close","_cleanupVars"];
|
||
|
_close = param [0,false,[false]];
|
||
|
|
||
|
_cleanupVars = {
|
||
|
_cfg = "CfgActionMenu" call EPOCH_returnConfig;
|
||
|
{
|
||
|
call compile (format ["%1 = nil;",configName _x]);
|
||
|
} count (configProperties [(_cfg >> "variableDefines"),"true",false]);
|
||
|
};
|
||
|
|
||
|
if (_close) then {
|
||
|
(findDisplay 66600) closeDisplay 1;
|
||
|
};
|
||
|
|
||
|
if (uiNamespace getVariable ["rmx_var_dynamicMenuInProgress",false]) then {
|
||
|
|
||
|
uiNamespace setVariable ["rmx_var_dynamicMenuInProgress", nil];
|
||
|
|
||
|
call _cleanupVars;
|
||
|
|
||
|
|
||
|
[rmx_var_dynamenuPPHandle, 1, [0]] call epoch_postprocessAdjust;
|
||
|
rmx_var_dynaControls = nil;
|
||
|
rmx_var_dynamenuPPHandle call epoch_postprocessDestroy;
|
||
|
rmx_var_dynamenuPPHandle = nil;
|
||
|
} else {
|
||
|
call _cleanupVars;
|
||
|
};
|
||
|
true
|