generated from GarandPLG/rust-flake-template
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:
1 parent
34c5e448ce
commit
5b960c65ff
4 files changed
+19
-29
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user