CBA_fnc_addKeybindToFleximenu

Description

Adds or updates the keybind handler for a defined Fleximenu and creates that Fleximenu.

Parameters

_modNameName of the registering mod [String]
_actionNameName of the action to register [String]
_displayNamePretty name, or an array of strings for the pretty name and a tool tip [String]
_fleximenuDefParameter array for CBA_fnc_flexiMenu_Add, but with the keybind set to [] [Array]

Optional

_defaultKeybindDefault keybind [DIK code, [shift?, ctrl?, alt?]] [Array]
_holdKeyWill the key fire every frame while down [Bool] (Default: true)
_holdDelayHow long after keydown will the key event fire, in seconds.  [Float] (Default: 0)
_overwriteOverwrite existing keybind data?  [Bool] (Default: False)

Returns

Returns the current keybind for the Fleximenu [Array]

Examples

["Your Mod", "Your_Action_Key", ["Your Action","ToolTip"], ["player", [], -100, "_this call my_menu_code_array"], [15, [true, true, true]]] call cba_fnc_addKeybindToFleximenu;
["Your Mod", "Your_Action_Key", "Your Action", ["player", [], -100, "_this call my_menu_code_array"], [15, [true, true, true]]] call cba_fnc_addKeybindToFleximenu;

Author: ViperMaul

Close