Color separation between pressed and not pressed

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
Nic0Nic0Nii 2022-06-07 20:10:29 +00:00
parent 65e6ebc245
commit a117fbdb2a

View File

@ -38,7 +38,7 @@ public class ConfigureControls extends Object{
StringBuilder sb = new StringBuilder(a.toString()).append(": "); StringBuilder sb = new StringBuilder(a.toString()).append(": ");
boolean first=true; boolean first=true;
for (KeyBind c : KeyBind.KEYBINDS.get(a)) { for (KeyBind c : KeyBind.KEYBINDS.get(a)) {
sb.append(c.isKeyHeld()?PaletteColor.YELLOW_GREEN:PaletteColor.MIDNIGHT_BLUE).append(c.c.getName()).append(!first?",":""); sb.append(c.isKeyHeld()?PaletteColor.YELLOW_GREEN:"").append(c.c.getName()).append(PaletteColor.MIDNIGHT_BLUE).append(!first?",":"");
sb.append("\n"); sb.append("\n");
} }
return sb; return sb;