cataclysmbnteam / Cataclysm-BN

Cataclysm: Bright Nights, A fork/variant of Cataclysm:DDA by CleverRaven.
https://docs.cataclysmbn.org
Other
684 stars 269 forks source link

Keypad direction keys and different screens issue #5337

Open thedyze opened 1 month ago

thedyze commented 1 month ago

Describe the bug

Have been trying to unify the keybinds of moving up and down menus and the player to the keypad 2,8,4,6. With the side effect that fixing them in one place breaks them in another.

As a user I would like one set of direction keys to work across all menus and also movement.

Steps To Reproduce

Not 100% about the order of these steps but something like:

  1. On the 'Inventory screen', rebind the move directions to the keypad.
  2. On the 'Advanced Inventory Management' screen, rebind move directions to the keypad.
  3. Character movement keys has now been unbound.
  4. Rebind those keys to the keypad.
  5. Inventory screen directions have now been unbound
  6. Fix the missing bindings there
  7. When pressing enter on an item in the inventory, the actions menu keys has now been unbound.
  8. Also any Dialog with 'Yes/No' alternatives no longer works with direction keys
  9. Fix those
  10. 'List all items around player' direction keys now unbound
  11. On 'Multidrop' screen local keybinds looks correct but does not work
  12. On 'Read' dialog local keybinds looks correct but does not work

All along only using the 'add local keybind'

Versions and configuration

cbn-windows-tiles-x64-2024-09-07

thedyze commented 1 month ago

In my effort to fix all screens/dialogs I've managed to completely break the main menu. :) Top level keybinds work. I.e 'a' for Load, but cannot navigate in the popup lists, unless there is a direct keybind. Can't navigate at all on the settings screen either.

Anyone know if there is a recent build where this bug does not exist?

thedyze commented 1 month ago

Ok, managed to fix it. In keybindings.json, the direction keys for the "default" category had become unbound.

{ "id": "UP", "category": "default", "bindings": [ ] },

edit: Somewhat* fix it. For every screen on character creation left and right had also become unbound. Was able to rebind those using '?'

thedyze commented 1 month ago

Another quite annoying screen when it comes to this issue is the Activate screen. Here you can bind up/down to the keypad, which works. But if you are standing on a tile containing items, they are automatically assigned to numbers which overrides the keybind, causing you to activate these items instead of moving down/up on the screen.

thedyze commented 3 weeks ago

On the screen where you select item to wash, binding 'select item' to say space, changes the keybind for 'next column' on the inventory screen to that key. As a new player this is starting to get quite frustrating.