mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
de13ab0f47
* Medical - Rework CPR and Bleeding in cardiac arrest * remove cprCreatesPulse, add cprSuccessChance * hide cpr for basic diagnose * Update addons/medical_statemachine/functions/fnc_enteredStateCardiacArrest.sqf Co-Authored-By: SilentSpike <silentspike100+Github@gmail.com>
24 lines
608 B
Plaintext
24 lines
608 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: joko // Jonas
|
|
* Handles closing the Medical Menu. Called from onUnload event.
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [] call ace_medical_gui_fnc_onMenuClose
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
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(pendingReopen) = false;
|
|
GVAR(menuPFH) call CBA_fnc_removePerFrameHandler;
|
|
GVAR(menuPFH) = -1;
|