From d6ed30d276d0e2688051ed8d6fe542a331e5ac90 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 9 Jan 2023 18:38:19 +0100 Subject: Improve engine arrows --- src/game_tab/left_panel/GameTabLeftPanel.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/game_tab/left_panel/GameTabLeftPanel.cpp') diff --git a/src/game_tab/left_panel/GameTabLeftPanel.cpp b/src/game_tab/left_panel/GameTabLeftPanel.cpp index c7be112..3304904 100644 --- a/src/game_tab/left_panel/GameTabLeftPanel.cpp +++ b/src/game_tab/left_panel/GameTabLeftPanel.cpp @@ -73,6 +73,14 @@ void GameTabLeftPanel::OnPlay(wxCommandEvent &event) { void GameTabLeftPanel::SetEngineArrows(std::vector arrows){ engine_arrows=arrows; + int min_size=5, max_size=80; + int steps=(max_size-min_size)/arrows.size(); + int current_size=max_size; + for(std::string &arrow:engine_arrows){ + wxLogDebug("%s",arrow); + arrow+="#000000%"+std::to_string(current_size); + current_size-=steps; + } Notify(true); } -- cgit v1.2.3