diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-02 23:22:12 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-02 23:22:12 +0100 |
commit | 2245fc8a3bb521afc2e6dd575cd1757ecab23558 (patch) | |
tree | c4565e14b2e9b01c970b3ee5816f6ec849b61e92 /ui/editNetwork.h | |
parent | Merge remote-tracking branch 'origin/ptrs' (diff) | |
parent | Remove the old unused network.png icon (diff) | |
download | ilt-2245fc8a3bb521afc2e6dd575cd1757ecab23558.tar.bz2 ilt-2245fc8a3bb521afc2e6dd575cd1757ecab23558.tar.xz ilt-2245fc8a3bb521afc2e6dd575cd1757ecab23558.zip |
Diffstat (limited to 'ui/editNetwork.h')
-rw-r--r-- | ui/editNetwork.h | 9 |
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 { |