Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarScriptPane.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-02 17:19:54 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-02 17:19:54 +1000
commit2386a9534289baf73ce299f33e110f612ff55e38 (patch)
tree19dca601d4bb7fa0bae23944485ad87024a034ef /source/frontend/StarScriptPane.hpp
parent73841ee041b8b52f5fde16dc272228704697bcb8 (diff)
Input Binding support
Diffstat (limited to 'source/frontend/StarScriptPane.hpp')
-rw-r--r--source/frontend/StarScriptPane.hpp21
1 files changed, 3 insertions, 18 deletions
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<String> 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<CanvasWidgetPtr, String> m_canvasClickCallbacks;
- Map<CanvasWidgetPtr, String> m_canvasKeyCallbacks;
-
- LuaWorldComponent<LuaUpdatableComponent<LuaBaseComponent>> m_script;
-
- List<pair<String, AudioInstancePtr>> m_playingSounds;
};
}