Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show when a keybind is unbound #205

Merged
merged 1 commit into from
Nov 30, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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