generated from GarandPLG/rust-flake-template
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user