Replace old use of showHud

This commit is contained in:
PabstMirror
2015-10-15 22:45:35 -05:00
parent bec884e581
commit 94e3cd1f79
6 changed files with 10 additions and 10 deletions

View File

@ -21,10 +21,10 @@ params ["_newUnit","_oldUnit"];
//set showHUD based on new unit status: //set showHUD based on new unit status:
if ((_newUnit getVariable [QGVAR(isHandcuffed), false]) || {_newUnit getVariable [QGVAR(isSurrendering), false]}) then { if ((_newUnit getVariable [QGVAR(isHandcuffed), false]) || {_newUnit getVariable [QGVAR(isSurrendering), false]}) then {
TRACE_1("Player Change (showHUD false)",_newUnit); TRACE_1("Player Change (showHUD false)",_newUnit);
showHUD false; ["captive", [false, false, false, false, false, false, false, false]] call EFUNC(common,showHud);
} else { } else {
TRACE_1("Player Change (showHUD true)",_newUnit); TRACE_1("Player Change (showHUD true)",_newUnit);
showHUD true; ["captive", []] call EFUNC(common,showHud); //same as showHud true;
}; };
//If old player was escorting, stop //If old player was escorting, stop

View File

@ -23,9 +23,9 @@ params ["_unit","_zeusIsOpen"];
if (!_zeusIsOpen) then { if (!_zeusIsOpen) then {
if ((_unit getVariable [QGVAR(isHandcuffed), false]) || {_unit getVariable [QGVAR(isSurrendering), false]}) then { if ((_unit getVariable [QGVAR(isHandcuffed), false]) || {_unit getVariable [QGVAR(isSurrendering), false]}) then {
TRACE_1("Player Change (showHUD false)",_unit); TRACE_1("Player Change (showHUD false)",_unit);
showHUD false; ["captive", [false, false, false, false, false, false, false, false]] call EFUNC(common,showHud);
} else { } else {
TRACE_1("Player Change (showHUD true)",_unit); TRACE_1("Player Change (showHUD true)",_unit);
showHUD true; ["captive", []] call EFUNC(common,showHud); //same as showHud true;
}; };
}; };

View File

@ -38,7 +38,7 @@ if (_state) then {
_unit setVariable [QGVAR(CargoIndex), ((vehicle _unit) getCargoIndex _unit), true]; _unit setVariable [QGVAR(CargoIndex), ((vehicle _unit) getCargoIndex _unit), true];
if (_unit == ACE_player) then { if (_unit == ACE_player) then {
showHUD false; ["captive", [false, false, false, false, false, false, false, false]] call EFUNC(common,showHud);
}; };
// fix anim on mission start (should work on dedicated servers) // fix anim on mission start (should work on dedicated servers)
@ -106,7 +106,7 @@ if (_state) then {
}; };
if (_unit == ACE_player) then { if (_unit == ACE_player) then {
showHUD true; ["captive", []] call EFUNC(common,showHud); //same as showHud true;
}; };
}; };

View File

@ -36,7 +36,7 @@ if (_state) then {
[_unit, QGVAR(Surrendered), true] call EFUNC(common,setCaptivityStatus); [_unit, QGVAR(Surrendered), true] call EFUNC(common,setCaptivityStatus);
if (_unit == ACE_player) then { if (_unit == ACE_player) then {
showHUD false; ["captive", [false, false, false, false, false, false, false, false]] call EFUNC(common,showHud);
}; };
[_unit] call EFUNC(common,fixLoweredRifleAnimation); [_unit] call EFUNC(common,fixLoweredRifleAnimation);
@ -72,7 +72,7 @@ if (_state) then {
if (_unit == ACE_player) then { if (_unit == ACE_player) then {
//only re-enable HUD if not handcuffed //only re-enable HUD if not handcuffed
if (!(_unit getVariable [QGVAR(isHandcuffed), false])) then { if (!(_unit getVariable [QGVAR(isHandcuffed), false])) then {
showHUD true; ["captive", []] call EFUNC(common,showHud); //same as showHud true;
}; };
}; };

View File

@ -19,4 +19,4 @@ if (isNull (uiNamespace getVariable ["ACE_Helper_Display", objNull])) exitWith {
(QGVAR(InteractionHelper) call BIS_fnc_rscLayer) cutText ["", "PLAIN"]; (QGVAR(InteractionHelper) call BIS_fnc_rscLayer) cutText ["", "PLAIN"];
showHUD true; ["mouseHint", []] call EFUNC(common,showHud); //This is equivalent to the old showHud true

View File

@ -50,4 +50,4 @@ if (_scroll == "") exitWith {
(_display displayCtrl 1002) ctrlSetText _scroll; (_display displayCtrl 1002) ctrlSetText _scroll;
showHUD false; ["mouseHint", [false, true, true, true, true, true, true, false]] call EFUNC(common,showHud); //This is equivalent to the old showHud false