diff options
Diffstat (limited to 'src/game_tab/left_panel/GameTabLeftPanel.cpp')
| -rw-r--r-- | src/game_tab/left_panel/GameTabLeftPanel.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/game_tab/left_panel/GameTabLeftPanel.cpp b/src/game_tab/left_panel/GameTabLeftPanel.cpp index 50919c0..b1bf516 100644 --- a/src/game_tab/left_panel/GameTabLeftPanel.cpp +++ b/src/game_tab/left_panel/GameTabLeftPanel.cpp @@ -72,14 +72,28 @@ void GameTabLeftPanel::OnPlay(wxCommandEvent &event) { } void GameTabLeftPanel::Notify(bool animate, bool backward) { + wxLogDebug("Called!"); // Update fen and captures std::string fen = game->GetFen(); std::map<char, std::uint8_t> captures; HalfMove *m = game->GetCurrentMove(); + //animate=false; + //backward=false; if (m != nullptr) { captures = m->GetLineCaptures(); + /*HalfMove *parent=m->GetParent(); + if(!parent){ + animate=true; + } + if(last_absolute_move == parent->GetAbsoluteMove()){ + wxLogDebug("Next true!"); + animate=true; + } else if(m->GetAbsoluteMove() == last_absolute_move){ + animate=true; + backward=true; + }*/ } - + // Update board canvas: if(!animate){ if(m){ |
