From 2386a9534289baf73ce299f33e110f612ff55e38 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sun, 2 Jul 2023 17:19:54 +1000 Subject: Input Binding support --- source/frontend/StarScriptPane.hpp | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'source/frontend/StarScriptPane.hpp') diff --git a/source/frontend/StarScriptPane.hpp b/source/frontend/StarScriptPane.hpp index 1ba7ea0..d994b68 100644 --- a/source/frontend/StarScriptPane.hpp +++ b/source/frontend/StarScriptPane.hpp @@ -1,9 +1,7 @@ #ifndef STAR_SCRIPT_PANE_HPP #define STAR_SCRIPT_PANE_HPP -#include "StarPane.hpp" -#include "StarLuaComponents.hpp" -#include "StarGuiReader.hpp" +#include "StarBaseScriptPane.hpp" namespace Star { @@ -11,7 +9,7 @@ STAR_CLASS(CanvasWidget); STAR_CLASS(ScriptPane); STAR_CLASS(UniverseClient); -class ScriptPane : public Pane { +class ScriptPane : public BaseScriptPane { public: ScriptPane(UniverseClientPtr client, Json config, EntityId sourceEntityId = NullEntityId); @@ -20,28 +18,15 @@ public: void tick() override; - bool sendEvent(InputEvent const& event) override; - PanePtr createTooltip(Vec2I const& screenPosition) override; - Maybe cursorOverride(Vec2I const& screenPosition) override; bool openWithInventory() const; private: - LuaCallbacks makePaneCallbacks(); + LuaCallbacks makePaneCallbacks() override; UniverseClientPtr m_client; EntityId m_sourceEntityId; - Json m_config; - - GuiReader m_reader; - - Map m_canvasClickCallbacks; - Map m_canvasKeyCallbacks; - - LuaWorldComponent> m_script; - - List> m_playingSounds; }; } -- cgit v1.2.3