Alt. syntax in favor of obsolete BIS func.

This commit is contained in:
Whigital 2019-11-22 21:47:51 +01:00
parent 8ad6d3ccff
commit 772a0fcd6a
2 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ if (underwater ACE_player) exitWith { false };
if (!("ACE_Kestrel4500" in (uniformItems ACE_player)) && !("ACE_Kestrel4500" in (vestItems ACE_player))) exitWith { false }; if (!("ACE_Kestrel4500" in (uniformItems ACE_player)) && !("ACE_Kestrel4500" in (vestItems ACE_player))) exitWith { false };
GVAR(Overlay) = false; GVAR(Overlay) = false;
(QGVAR(Layer) call BIS_fnc_rscLayer) cutText ["", "PLAIN"]; QGVAR(Layer) cutText ["", "PLAIN"];
GVAR(Kestrel4500) = true; GVAR(Kestrel4500) = true;
createDialog 'Kestrel4500_Display'; createDialog 'Kestrel4500_Display';

View File

@ -38,7 +38,7 @@
if (GVAR(Overlay)) exitWith { if (GVAR(Overlay)) exitWith {
GVAR(Overlay) = false; GVAR(Overlay) = false;
(QGVAR(Layer) call BIS_fnc_rscLayer) cutText ["", "PLAIN"]; QGVAR(Layer) cutText ["", "PLAIN"];
true true
}; };
if (underwater ACE_player) exitWith { true }; if (underwater ACE_player) exitWith { true };
@ -55,7 +55,7 @@ GVAR(Overlay) = true;
// abort condition // abort condition
if (!GVAR(Overlay) || {!(("ACE_Kestrel4500" in (uniformItems ACE_player)) || ("ACE_Kestrel4500" in (vestItems ACE_player)))}) exitWith { if (!GVAR(Overlay) || {!(("ACE_Kestrel4500" in (uniformItems ACE_player)) || ("ACE_Kestrel4500" in (vestItems ACE_player)))}) exitWith {
GVAR(Overlay) = false; GVAR(Overlay) = false;
(QGVAR(Layer) call BIS_fnc_rscLayer) cutText ["", "PLAIN"]; QGVAR(Layer) cutText ["", "PLAIN"];
[_this select 1] call CBA_fnc_removePerFrameHandler; [_this select 1] call CBA_fnc_removePerFrameHandler;
}; };
@ -64,7 +64,7 @@ GVAR(Overlay) = true;
private _outputData = [] call FUNC(generateOutputData); private _outputData = [] call FUNC(generateOutputData);
(QGVAR(Layer) call BIS_fnc_rscLayer) cutRsc ["RscKestrel4500", "PLAIN", 1, false]; QGVAR(Layer) cutRsc ["RscKestrel4500", "PLAIN", 1, false];
_outputData params [ _outputData params [
"_ctrlTop", "_ctrlTop",
"_ctrlCenterBig", "_ctrlCenterBig",