ACE3/TO_MERGE/cse/gui/functions/fn_gui_createInteractionMenu.sqf
Thomas Kooi db6f30fcc9 Added cse_gui source
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.
2015-01-12 23:23:51 +01:00

19 lines
615 B
Plaintext

/**
* fn_gui_createInteractionMenu.sqf
* @Descr: Creates a interaction menu
* @Author: Glowbal
*
* @Arguments: [name STRINg, keybinding ARRAY, idd NUMBER, condition CODE, type NUMBER]
* @Return: void
* @PublicAPI: true
*/
private ["_name","_condition","_keyBinding","_idd","_type","_codeToExecute"];
_name = _this select 0;
_keyBinding = _this select 1;
_idd = _this select 2;
_condition = _this select 3;
_type = _this select 4;
_codeToExecute = compile format[ "%1 call cse_fnc_gui_keyPressed;", [_name,_condition,_type] ];
[_name, _keyBinding, _codeToExecute, _idd] call cse_fnc_addKeyBindingForMenu_F;