mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
571 B
Plaintext
21 lines
571 B
Plaintext
/**
|
|
* 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;
|
|
disableSerialization;
|
|
_effect = uiNamespace getVariable QGVAR(ScreenEffectsBlack);
|
|
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];
|
|
}; |