summaryrefslogtreecommitdiff
path: root/ui/gameMainWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gameMainWindow.cpp')
-rw-r--r--ui/gameMainWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/gameMainWindow.cpp b/ui/gameMainWindow.cpp
index c1e135b..356d522 100644
--- a/ui/gameMainWindow.cpp
+++ b/ui/gameMainWindow.cpp
@@ -3,6 +3,7 @@
#include "gameMainSelector.h"
#include "imgui_extras.h"
#include "manualCameraController.h"
+#include "queryTool.h"
#include <SDL2/SDL.h>
#include <collection.h>
#include <game/environment.h>
@@ -29,6 +30,9 @@ public:
if (ImGui::ImageButton("Build rails", *buildRailsIcon, TOOLBAR_ICON_SIZE)) {
gms->target = std::make_unique<EditNetworkOf<RailLinks>>();
}
+ if (ImGui::ImageButton("Query", *buildRailsIcon, TOOLBAR_ICON_SIZE)) {
+ gms->target = std::make_unique<QueryTool>();
+ }
IltGui::EndToolbar();
}
}