diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-11-24 12:51:55 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-11-24 12:51:55 +1100 |
commit | 56c99c086fd14ee1b1131cb7df18c1b55ede5519 (patch) | |
tree | 2374579586f961063f0cab46ff6beb921149327e /source/frontend/StarBaseScriptPane.hpp | |
parent | d4c976bcb3ec75c94298c6b8776487809367498b (diff) |
scriptable chat
Diffstat (limited to 'source/frontend/StarBaseScriptPane.hpp')
-rw-r--r-- | source/frontend/StarBaseScriptPane.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/frontend/StarBaseScriptPane.hpp b/source/frontend/StarBaseScriptPane.hpp index 0c00547..08a4d69 100644 --- a/source/frontend/StarBaseScriptPane.hpp +++ b/source/frontend/StarBaseScriptPane.hpp @@ -15,7 +15,7 @@ STAR_CLASS(BaseScriptPane); class BaseScriptPane : public Pane { public: - BaseScriptPane(Json config); + BaseScriptPane(Json config, bool construct = true); virtual void show() override; void displayed() override; @@ -34,6 +34,8 @@ public: Maybe<String> cursorOverride(Vec2I const& screenPosition) override; protected: virtual GuiReaderPtr reader() override; + void construct(Json config); + Json m_config; Json m_rawConfig; @@ -45,7 +47,7 @@ protected: bool m_interactive; bool m_callbacksAdded; - LuaUpdatableComponent<LuaBaseComponent> m_script; + mutable LuaUpdatableComponent<LuaBaseComponent> m_script; }; } |