summaryrefslogtreecommitdiff
path: root/ui/editNetwork.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-04-02 23:22:12 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-04-02 23:22:12 +0100
commit2245fc8a3bb521afc2e6dd575cd1757ecab23558 (patch)
treec4565e14b2e9b01c970b3ee5816f6ec849b61e92 /ui/editNetwork.h
parentMerge remote-tracking branch 'origin/ptrs' (diff)
parentRemove the old unused network.png icon (diff)
downloadilt-2245fc8a3bb521afc2e6dd575cd1757ecab23558.tar.bz2
ilt-2245fc8a3bb521afc2e6dd575cd1757ecab23558.tar.xz
ilt-2245fc8a3bb521afc2e6dd575cd1757ecab23558.zip
Merge branch 'imgui'HEADmain
Diffstat (limited to 'ui/editNetwork.h')
-rw-r--r--ui/editNetwork.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/ui/editNetwork.h b/ui/editNetwork.h
index 2fc102a..4155534 100644
--- a/ui/editNetwork.h
+++ b/ui/editNetwork.h
@@ -2,8 +2,6 @@
#include "game/geoData.h"
#include "gameMainSelector.h"
-#include "modeHelper.h"
-#include "toolbar.h"
#include "worldOverlay.h"
#include <game/gamestate.h>
#include <game/network/network.h>
@@ -17,9 +15,9 @@ public:
bool click(const SDL_MouseButtonEvent & e, const Ray<GlobalPosition3D> &) override;
bool move(const SDL_MouseMotionEvent & e, const Ray<GlobalPosition3D> &) override;
- bool handleInput(const SDL_Event & e, const UIComponent::Position &) override;
+ bool handleInput(const SDL_Event & e) override;
void render(const SceneShader &, const Frustum &) const override;
- void render(const UIShader & shader, const UIComponent::Position & pos) const override;
+ void render(bool & open) override;
using NetworkClickPos = std::variant<GlobalPosition3D, Node::Ptr>;
@@ -42,10 +40,7 @@ public:
private:
Network * network;
Builder::Ptr builder;
- Mode<Builder::Ptr, ModeSecondClick::NoAction> mode {builder};
- Toolbar builderToolbar;
Texture blue;
- const Font font;
};
template<typename T> class EditNetworkOf : public EditNetwork {