Commit Graph

4 Commits

Author SHA1 Message Date
GarandPLG fd0f6defea Rename GameStates to States and adjust keybindings
Replace the old `GameStates` struct with a new `states` module, rename
the
field in `App` to `states`, and update construction to pass CLI args.
Remove the now‑unused `game_states.rs` file and adjust imports
accordingly.
Update keybinding definitions: change the wildcard symbol to "[All]" and
simplify the wildcard detection logic by dropping the modifiers check.
2026-03-16 10:27:44 +01:00
GarandPLG 2dbe378470 Add text input handling to settings popup
Introduce a `selected_setting_new_value` field in `SettingsState` and
initialize it.
Add `Backspace` and `WildCard(char)` actions with an `Input` group, and
corresponding keybindings.
Update `event_to_action` to map wildcard characters to
`Action::WildCard`.
Handle backspace and character input in `settings_keybindings` to edit
the new field.
Display the edited value in the settings popup and include the new
actions in the UI.
2026-03-15 22:37:11 +01:00
GarandPLG acc6ba08f3 Add popup toggle to settings view
Introduce `show_popup` flag in SettingsState, toggle it with the Space
key, and
render a yellow test popup in the settings view when the flag is true.
2026-03-14 20:35:03 +01:00
GarandPLG d563bbc966 Add Settings view, widget, and keybindings
Introduce Settings view handling in key events and widgets.
Add `Enter` action with its keybinding.
Refactor keybinding lookup to use `Option<&KeyBinding>` for missing
entries.
Update view option generation to safely filter possible values.
Export `settings_keybindings` and `settings_widget` from their modules.
2026-03-13 09:31:55 +01:00