From abdbff3be8f3f82b5b5de16f0c71ffae8d999387 Mon Sep 17 00:00:00 2001 From: Neato <49599979+neatodev@users.noreply.github.com> Date: Sat, 6 Apr 2024 16:08:24 +0200 Subject: [PATCH] Always highlight unbound keys --- Data/Controls/InputReader.cs | 12 ++++++++++++ Data/Controls/InputWriter.cs | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Data/Controls/InputReader.cs b/Data/Controls/InputReader.cs index e3af575..3d8a476 100644 --- a/Data/Controls/InputReader.cs +++ b/Data/Controls/InputReader.cs @@ -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) diff --git a/Data/Controls/InputWriter.cs b/Data/Controls/InputWriter.cs index 438cf9c..249dd75 100644 --- a/Data/Controls/InputWriter.cs +++ b/Data/Controls/InputWriter.cs @@ -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; + } } }