Hide bar when mounted

This commit is contained in:
PabstMirror 2016-11-12 15:51:44 -06:00
parent e086a33e4d
commit 26ae3b8075

View File

@ -13,6 +13,11 @@ params ["_stamina"];
private _staminaBarContainer = uiNamespace getVariable [QGVAR(staminaBarContainer), controlNull]; private _staminaBarContainer = uiNamespace getVariable [QGVAR(staminaBarContainer), controlNull];
if ((vehicle ACE_player) != ACE_player) exitWith { // Hide when mounted
_staminaBarContainer ctrlSetFade 1;
_staminaBarContainer ctrlCommit 1;
};
// - Size --------------------------------------------------------------------- // - Size ---------------------------------------------------------------------
// Shrink the container to cut off the image (other wise it would just get stretched) // Shrink the container to cut off the image (other wise it would just get stretched)
private _posAndSize = ctrlPosition _staminaBarContainer; private _posAndSize = ctrlPosition _staminaBarContainer;