Rename marking methods and use get_coords

Introduce push_marked_cell, pop_marked_cell and end_marking_cells to
replace the
previous set_marked_cell, undo_marked_cell and clear_marked_cells.
Collapse
get_row/get_col into get_coords and update all callers accordingly.
This commit is contained in:
GarandPLG committed 2026-05-19 00:59:48 +02:00
1 parent 34c5e448ce
commit 5b960c65ff
4 files changed
+19 -29

No files matched your search

+2 -2
View File
@@ -83,10 +83,10 @@ pub fn skirmish_keybindings(app: &mut App, key_event: &KeyEvent) {
ZoomLevel::ZoomedOut => {}
},
Action::Space => board.toggle_marking(),
Action::Backspace => board.undo_marked_cell(),
Action::Backspace => board.pop_marked_cell(),
Action::Delete => {
board.marked_cells.marking_cells = false;
board.clear_marked_cells()
board.end_marking_cells()
}
Action::Tab => {
states.skirmish.side_panel = !states.skirmish.side_panel;