CBA_fnc_registerKeybindToFleximenu

This function is deprecated.  Please use 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]
_fleximenuDefParameter array for CBA_fnc_flexiMenu_Add, but with the keybind set to [] [Array]
_defaultKeybindDefault keybind [DIK code, [shift?, ctrl?, alt?]] [Array]

Optional

_overwriteOverwrite existing keybind data?  [Bool] (Default: False)
_keypressType”keydown” (Default) = keyDown, “keyup” = keyUp [String]

Returns

Returns the current keybind for the Fleximenu [Array]

Examples

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

Author

Taosenai

Close