From f4108bc06cd9fa1977267836e9176118e8863b57 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 9 Jan 2023 16:36:48 +0100 Subject: Bind live engine analysis to BoardCanvas --- src/game_tab/right_panel/GameTabRightPanel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/game_tab/right_panel/GameTabRightPanel.cpp') diff --git a/src/game_tab/right_panel/GameTabRightPanel.cpp b/src/game_tab/right_panel/GameTabRightPanel.cpp index 7aa8bbd..f421228 100644 --- a/src/game_tab/right_panel/GameTabRightPanel.cpp +++ b/src/game_tab/right_panel/GameTabRightPanel.cpp @@ -60,6 +60,12 @@ void GameTabRightPanel::OnLiveAnalysis(wxCommandEvent &event) { live_engine->Bind(wxEVT_CLOSE_WINDOW, &GameTabRightPanel::OnLiveEngineClose, this, ID_LIVE_ENGINE_DIALOG); + live_engine->Bind(SHOW_ENGINE_EVALUATION, [p=this](wxCommandEvent &e){ + wxCommandEvent notifyEvent(SHOW_ENGINE_EVALUATION,p->GetId()); + notifyEvent.SetEventObject(p); + notifyEvent.SetClientData(e.GetClientData()); + p->ProcessEvent(notifyEvent); + }); } } } -- cgit v1.2.3