2015-01-17 11:05:07 +00:00
|
|
|
/**
|
|
|
|
* fn_effectBlackOut.sqf
|
|
|
|
* @Descr: Displays the blacked out effect for clients.
|
|
|
|
* @Author: Glowbal
|
|
|
|
*
|
|
|
|
* @Arguments: [displayEffect BOOL]
|
|
|
|
* @Return: void
|
|
|
|
* @PublicAPI: true
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
private ["_displayEffect","_effect"];
|
|
|
|
_displayEffect = [_this, 0, false,[false]] call bis_fnc_param;
|
2015-01-17 11:35:59 +00:00
|
|
|
|
|
|
|
if (!hasInterface) exitwith {};
|
|
|
|
|
2015-01-17 11:05:07 +00:00
|
|
|
disableSerialization;
|
|
|
|
_effect = uiNamespace getVariable QGVAR(ScreenEffectsBlack);
|
2015-01-17 11:35:59 +00:00
|
|
|
if (isNil "_effect") then {
|
|
|
|
45 cutRsc [QGVAR(ScreenEffectsBlack),"PLAIN"];
|
|
|
|
_effect = uiNamespace getVariable QGVAR(ScreenEffectsBlack);
|
|
|
|
};
|
|
|
|
|
2015-01-17 11:05:07 +00:00
|
|
|
if (_displayEffect) then {
|
|
|
|
(_effect displayCtrl 11112) ctrlSetTextColor [0.0,0.0,0.0,0.9];
|
|
|
|
} else {
|
|
|
|
(_effect displayCtrl 11112) ctrlSetTextColor [0.0,0.0,0.0,0.0];
|
|
|
|
};
|