Skip to content

Commit

Permalink
Always highlight unbound keys
Browse files Browse the repository at this point in the history
  • Loading branch information
neatodev committed Apr 6, 2024
1 parent 011a080 commit abdbff3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Data/Controls/InputReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,18 @@ public void InitControls()
{
Program.MainWindow.MouseSmoothingBox.Checked = false;
}

foreach (Button KeyButton in Program.InputHandler.ButtonList)
{
if (!KeyButton.Text.Contains("Unbound"))
{
KeyButton.ForeColor = Color.Black;
}
else
{
KeyButton.ForeColor = Color.Maroon;
}
}
}

private string TrimLine(string Line)
Expand Down
9 changes: 8 additions & 1 deletion Data/Controls/InputWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,14 @@ public void WriteControls()

foreach (Button KeyButton in Program.InputHandler.ButtonList)
{
KeyButton.ForeColor = Color.Black;
if (!KeyButton.Text.Contains("Unbound"))
{
KeyButton.ForeColor = Color.Black;
}
else
{
KeyButton.ForeColor = Color.Maroon;
}
}
}

Expand Down

0 comments on commit abdbff3

Please sign in to comment.