branchrust_reboot/main/keyboard_layouts_fixcancel
9 Commits over 0 Days - Infinitycph!
Fix bind_default stomping player rebinds when the default command was left unbound
Popup background blur/color consistency pass
Better looking key conflict popup
Fixed some bind widgets not using the full command
Added a warning popup when you're about to override a bind from the keybind menu
Localized "Press a key" text on the bind button
Fixed binds menu not using strict GetButtonsWithBind
+attack was showing mouse0 and mouse1 instead of just mouse0
When reading the cfg, we now apply keys.cfg before keys_default.cfg. Fixes default binds always being re-applied as the primary on startup.
This was breaking binds on non-US layouts, AZERTY for example: rebinding +prevskin to A would end up with Q back as the primary and A as a secondary after a restart. But Q is +left for AZERTY users, so moving left while upgrading building blocks was switching skins...
Tradeoff: any unbound command gets filled in from defaults on startup
Default binds are automatically localized so non us-QWERTY players dont have to rebind everything when starting the game for the first time
keys_default is now using 'bind_default' instead of 'bind'
More keyboard layout fixes. We now register all buttons using their display name
Symbols not part of the Key enum are still stored by their name for consistency
Binds saved with raw keycaps are auto converted "bind [ kill" -> "bind leftbracket kill"