mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
db6f30fcc9
Does not include the Icon pack. When using the UI it may throw up some missing .paa file errors. Replacements will need to be found if we want to use those.
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
/**
|
|
* fn_gui_blurScreen.sqf
|
|
* @Descr:
|
|
* @Author: Glowbal
|
|
*
|
|
* @Arguments: []
|
|
* @Return:
|
|
* @PublicAPI: true
|
|
*/
|
|
|
|
private ["_id", "_show"];
|
|
_id = [_this, 0, "", [""]] call BIS_fnc_Param;
|
|
_show = [_this, 1, false, [false]] call BIS_fnc_Param;
|
|
|
|
if (isnil "CSE_GUI_SHOW_BLUR_SCREEN_COLLECTION") then {
|
|
CSE_GUI_SHOW_BLUR_SCREEN_COLLECTION = [];
|
|
};
|
|
|
|
if (_show) then {
|
|
CSE_GUI_SHOW_BLUR_SCREEN_COLLECTION pushback _id;
|
|
// show blur
|
|
if (isnil 'CSE_MENU_ppHandle_GUI_BLUR_SCREEN') then {
|
|
CSE_MENU_ppHandle_GUI_BLUR_SCREEN = ppEffectCreate ["DynamicBlur", 102];
|
|
CSE_MENU_ppHandle_GUI_BLUR_SCREEN ppEffectAdjust [0.9];
|
|
CSE_MENU_ppHandle_GUI_BLUR_SCREEN ppEffectEnable true;
|
|
CSE_MENU_ppHandle_GUI_BLUR_SCREEN ppEffectCommit 0;
|
|
};
|
|
} else {
|
|
CSE_GUI_SHOW_BLUR_SCREEN_COLLECTION = CSE_GUI_SHOW_BLUR_SCREEN_COLLECTION - [_id];
|
|
if (CSE_GUI_SHOW_BLUR_SCREEN_COLLECTION isEqualTo []) then {
|
|
// hide blur
|
|
if (!isnil 'CSE_MENU_ppHandle_GUI_BLUR_SCREEN') then {
|
|
ppEffectDestroy CSE_MENU_ppHandle_GUI_BLUR_SCREEN;
|
|
CSE_MENU_ppHandle_GUI_BLUR_SCREEN = nil;
|
|
};
|
|
};
|
|
}; |