aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/left_panel/GameTabLeftPanel.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-01-09 18:38:19 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-01-09 18:38:19 +0100
commitd6ed30d276d0e2688051ed8d6fe542a331e5ac90 (patch)
tree67bb2e67103451d5bb012956196b9bd8cade04ea /src/game_tab/left_panel/GameTabLeftPanel.cpp
parentf4108bc06cd9fa1977267836e9176118e8863b57 (diff)
Improve engine arrows
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);
}