diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-09 16:36:48 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-09 16:36:48 +0100 |
| commit | f4108bc06cd9fa1977267836e9176118e8863b57 (patch) | |
| tree | 3cd663f6547c6915d4f0fe8cf137fe68a9a1bec4 /src/game_tab/left_panel/GameTabLeftPanel.cpp | |
| parent | 30b7577ab321e70b5ebb2c4ec1b9edfe1d3c0a44 (diff) | |
Bind live engine analysis to BoardCanvas
Diffstat (limited to 'src/game_tab/left_panel/GameTabLeftPanel.cpp')
| -rw-r--r-- | src/game_tab/left_panel/GameTabLeftPanel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game_tab/left_panel/GameTabLeftPanel.cpp b/src/game_tab/left_panel/GameTabLeftPanel.cpp index 5b8162c..c7be112 100644 --- a/src/game_tab/left_panel/GameTabLeftPanel.cpp +++ b/src/game_tab/left_panel/GameTabLeftPanel.cpp @@ -71,6 +71,11 @@ void GameTabLeftPanel::OnPlay(wxCommandEvent &event) { Notify(true); // Redraw event is move failed! Otherwise piece not resets to it initial position after dragging } +void GameTabLeftPanel::SetEngineArrows(std::vector<std::string> arrows){ + engine_arrows=arrows; + Notify(true); +} + void GameTabLeftPanel::Notify(bool skip_animation) { // Update fen and captures std::string fen = game->GetFen(); @@ -107,6 +112,7 @@ void GameTabLeftPanel::Notify(bool skip_animation) { gs.black=game->GetTag("Black"); gs.mat_black=game->IsCheckmate(true); gs.mat_white=game->IsCheckmate(false); + gs.arrows=engine_arrows; if(m){ // There should be a valid src_hl or dst_hl ortherwise it explode: std::string src_hl, dst_hl; |
