Skip to content

Commit

Permalink
Merge pull request #205 from CBATeam/unboundKeyDisplay
Browse files Browse the repository at this point in the history
Show when a keybind is unbound
  • Loading branch information
Killswitch00 committed Nov 30, 2015
2 parents c62948d + 9b512ee commit dec0641
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions addons/keybinding/gui/fnc_updateGUI.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if !(isNull _display) then {
TRACE_1("",_keyString);
// Search the handler array for any other keybinds using this key.
_isDuplicated = false;
if(_dikCode != 0) then {
if(_dikCode > 0) then {
_dupeActionName = "";
{
private ["_sActionId", "_dupeAction"];
Expand All @@ -104,6 +104,9 @@ if !(isNull _display) then {
// end of the readable bind string.
_keyString = format ["%1 [%2]", _keyString, _dupeActionName];
};
} else {
//(dikCode <= 0): so it's unbound, leave string blank
_keyString = "";
};

// Add the row.
Expand All @@ -124,10 +127,6 @@ if !(isNull _display) then {
if (_isDuplicated) then {
_lnb lnbSetColor [[_lbCount, 1], [1,0,0,1]];
};

if(_dikCode == 0) then {
// @TODO: Set the color seperately if it is an unbound key.
};
};
};
} foreach (_modActions select 0);
Expand Down

0 comments on commit dec0641

Please sign in to comment.