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.
This commit is contained in:
GarandPLG committed 2026-03-16 10:27:44 +01:00
1 parent 2dbe378470
commit fd0f6defea
8 files changed
+71 -88

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ pub fn main_menu_view(app: &App, area: Rect, buf: &mut Buffer) {
.map(|(i, view)| {
let view_string: String = format_view_string(format!("{:?}", view));
let styled: Line<'_> = if app.game_states.main_menu_state.selected_view == i {
let styled: Line<'_> = if app.states.main_menu.selected_view == i {
Line::from(format!("> {view_string}")).yellow()
} else {
Line::from(view_string).white()