summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-03-29 12:45:18 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-03-29 12:45:18 +0000
commit9a8e2b6388c453a03a06d81daa2c82e35fc7ce8a (patch)
tree8e270be2d1329f05b8b7504a16425ec4b6a60d34 /ui
parentSupport capturing and reacting to ImGui window closure (diff)
downloadilt-9a8e2b6388c453a03a06d81daa2c82e35fc7ce8a.tar.bz2
ilt-9a8e2b6388c453a03a06d81daa2c82e35fc7ce8a.tar.xz
ilt-9a8e2b6388c453a03a06d81daa2c82e35fc7ce8a.zip
Add basic instructions to query tool
Sets default text.
Diffstat (limited to 'ui')
-rw-r--r--ui/queryTool.cpp2
-rw-r--r--ui/queryTool.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/ui/queryTool.cpp b/ui/queryTool.cpp
index 0157246..2267253 100644
--- a/ui/queryTool.cpp
+++ b/ui/queryTool.cpp
@@ -7,6 +7,8 @@
#include <ray.h>
#include <stream_support.h>
+QueryTool::QueryTool() : clicked {"Click something for details"} { }
+
bool
QueryTool::click(const SDL_MouseButtonEvent & event, const Ray<GlobalPosition3D> & ray)
{
diff --git a/ui/queryTool.h b/ui/queryTool.h
index 8633118..74c5380 100644
--- a/ui/queryTool.h
+++ b/ui/queryTool.h
@@ -3,6 +3,9 @@
#include "gameMainSelector.h"
class QueryTool : public GameMainSelector::Component {
+public:
+ QueryTool();
+
protected:
using GameMainSelector::Component::render;