diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-19 01:44:18 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-19 02:30:30 +0000 |
commit | 1f14089d0d6adbd1072b022dfaeb17a1975e8b38 (patch) | |
tree | 8d0065a94c8467ebe5860c3d9f05bafa1b2445e0 /ui/gameMainWindow.cpp | |
parent | Replace basic rail builder UI with a ImGui version (diff) | |
download | ilt-1f14089d0d6adbd1072b022dfaeb17a1975e8b38.tar.bz2 ilt-1f14089d0d6adbd1072b022dfaeb17a1975e8b38.tar.xz ilt-1f14089d0d6adbd1072b022dfaeb17a1975e8b38.zip |
Replace basic query tool with a ImGui version
Diffstat (limited to 'ui/gameMainWindow.cpp')
-rw-r--r-- | ui/gameMainWindow.cpp | 4 |
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(); } } |