From c923f4f13b1cade968bb6fec585a242b62d35715 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 4 Jul 2023 22:36:27 +1000 Subject: pane lua stuff --- source/frontend/StarBaseScriptPane.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/frontend/StarBaseScriptPane.hpp') diff --git a/source/frontend/StarBaseScriptPane.hpp b/source/frontend/StarBaseScriptPane.hpp index f88cd40..b5aa502 100644 --- a/source/frontend/StarBaseScriptPane.hpp +++ b/source/frontend/StarBaseScriptPane.hpp @@ -12,6 +12,8 @@ STAR_CLASS(BaseScriptPane); // A more 'raw' script pane that doesn't depend on a world being present. // Requires a derived class to provide a Lua root. +// Should maybe move into windowing? + class BaseScriptPane : public Pane { public: BaseScriptPane(Json config); @@ -27,17 +29,16 @@ public: PanePtr createTooltip(Vec2I const& screenPosition) override; Maybe cursorOverride(Vec2I const& screenPosition) override; protected: - virtual LuaCallbacks makePaneCallbacks(); + virtual GuiReaderPtr reader(); Json m_config; - GuiReader m_reader; + GuiReaderPtr m_reader; Map m_canvasClickCallbacks; Map m_canvasKeyCallbacks; bool m_callbacksAdded; LuaUpdatableComponent m_script; - List> m_playingSounds; }; } -- cgit v1.2.3