Skip to content

Commit

Permalink
Merge pull request #323 from CBATeam/fix_keybinding_diary
Browse files Browse the repository at this point in the history
Fix keybinding map diary display. Fixes #322
  • Loading branch information
Killswitch00 committed May 6, 2016
2 parents 4e59127 + 3b33392 commit 85b9dd1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions addons/help/XEH_postClientInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,13 @@ private _fnc_getKeyName = {
_fnc_getKeyName spawn {
private _text = GVAR(keys);

cba_keybinding_handlers params [["_keyNames", [], [[]]], ["_keyHandlers", [], [[]]]];
cba_keybinding_handlers params [["_modNames", [], [[]]], ["_keyHandlers", [], [[]]]];

{
private _keyName = _x;
private _modName = _x;
private _keyHandler = _keyHandlers param [_forEachIndex, []];

if (!isNil "_keyName") then {
_text = _text + format ["%1:<br/>", _keyName];
if (!isNil "_modName" && _modName in cba_keybinding_activeMods) then {
_text = _text + format ["%1:<br/>", _modName];

_keyHandler params [["_actionNames", [], [[]]], ["_actionEntries", [], [[]]]];

Expand All @@ -95,7 +94,7 @@ _fnc_getKeyName spawn {

_text = _text + "<br/>";
};
} forEach _keyNames;
} forEach _modNames;

player createDiaryRecord ["CBA_docs", [localize "STR_DN_CBA_HELP_KEYS", _text]];
};

0 comments on commit 85b9dd1

Please sign in to comment.