aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/left_panel/GameTabLeftPanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_tab/left_panel/GameTabLeftPanel.cpp')
-rw-r--r--src/game_tab/left_panel/GameTabLeftPanel.cpp8
1 files changed, 8 insertions, 0 deletions
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<std::string> 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);
}