Add navigation and selection for skirmish cells

Reclassify Escape key as Quit and add directional actions to move the
focused cell.
This commit is contained in:
2026-03-29 22:03:22 +02:00
parent d35d803a78
commit 363baa1c1a
8 changed files with 81 additions and 13 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
use crate::{
app::states::{
MainMenuState, Offset, PerkDecksState, SettingsState, SkillsConfigState, SkirmishState,
FocusedCell, MainMenuState, Offset, PerkDecksState, SettingsState, SkillsConfigState,
SkirmishState,
},
cli::Cli,
};
@@ -31,6 +32,7 @@ impl GameStates {
map_height: args.map_height as usize,
board_cells: Vec::new(),
zoom_level: args.zoom_level,
focused_cell: FocusedCell::new(0, 0),
},
perk_decks: PerkDecksState {
id: 2,