ACE3/addons/medical_menu/functions/fnc_onMenuClose.sqf
PabstMirror ad1191cdd5 #2528 - Medical Menu Work
(1) Verify target is valid and in reasonable range
2015-10-13 02:01:59 -05:00

23 lines
547 B
Plaintext

/*
* Author: joko // Jonas
* Handle medical menu closed
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* call ace_medical_menu_fnc_onMenuClosed
*
* Public: No
*/
#include "script_component.hpp"
if (EGVAR(interact_menu,menuBackground)==1) then {[QGVAR(id), false] call EFUNC(common,blurScreen);};
if (EGVAR(interact_menu,menuBackground)==2) then {(uiNamespace getVariable [QEGVAR(interact_menu,menuBackground), displayNull]) closeDisplay 0;};
[GVAR(MenuPFHID)] call CBA_fnc_removePerFrameHandler;
GVAR(MenuPFHID) = -1;