From 445cc09d01f8e3beeb406e175b5a98d6be58ea9a Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 9 Jan 2023 13:13:03 +0100 Subject: Debug BoardCanvas DragNDrop and highlight last played move --- src/game_tab/left_panel/board/BoardCanvas.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/game_tab/left_panel/board/BoardCanvas.hpp') diff --git a/src/game_tab/left_panel/board/BoardCanvas.hpp b/src/game_tab/left_panel/board/BoardCanvas.hpp index f387c22..a764fee 100644 --- a/src/game_tab/left_panel/board/BoardCanvas.hpp +++ b/src/game_tab/left_panel/board/BoardCanvas.hpp @@ -78,12 +78,13 @@ class BoardCanvas : public wxPanel { Theme *t, *t_captures; wxColour color_arrows; int arrows_offset; - // Board to draw (char version) - std::string board; std::string white_player,black_player; + // Current highlighted squares and arrows: + std::vector squares_hl; + std::vector arrows; // Various canvas state variables - bool black_side, is_dragging, valid_drag, valid_arrow, is_black_turn; + bool black_side, is_dragging, valid_drag, arrow_drag, is_black_turn; std::uint32_t boardX, boardY, square_width, piece_width, mouseX, mouseY, lastClickX, lastClickY; wxSize canvas_size; -- cgit v1.2.3