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.
19 lines
615 B
Plaintext
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; |