mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
29 lines
611 B
Plaintext
29 lines
611 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: PabstMirror
|
|
* Handle the escape key being pressed.
|
|
*
|
|
* Arguments:
|
|
* 0: Escape menu display that should be closed <DISPLAY> (default: displayNull)
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [display] call ace_interact_menu_fnc_handleEscapeMenu
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
if (GVAR(openedMenuType) < 0) exitWith {};
|
|
|
|
params [["_display", displayNull, [displayNull]]];
|
|
TRACE_2("handleEscapeMenu",_display,isNull _display);
|
|
|
|
if (!isNull _display) then {
|
|
_display closeDisplay 0;
|
|
};
|
|
|
|
GVAR(actionSelected) = false;
|
|
[GVAR(openedMenuType), false] call FUNC(keyUp);
|