diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-29 02:12:03 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-29 02:12:03 +1000 |
commit | 224ad2c2c07311475875d1d243354f8647112b45 (patch) | |
tree | c8247f22b4ddda345b7f35d7c6ead25d5e1f2791 /source/frontend/StarBaseScriptPane.cpp | |
parent | 35fc2679dea7b625bf559c6855e101fc62e613f4 (diff) |
Reset script panes on character swap
Diffstat (limited to 'source/frontend/StarBaseScriptPane.cpp')
-rw-r--r-- | source/frontend/StarBaseScriptPane.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/frontend/StarBaseScriptPane.cpp b/source/frontend/StarBaseScriptPane.cpp index 90d253c..4164d9e 100644 --- a/source/frontend/StarBaseScriptPane.cpp +++ b/source/frontend/StarBaseScriptPane.cpp @@ -14,7 +14,7 @@ namespace Star { -BaseScriptPane::BaseScriptPane(Json config) : Pane() { +BaseScriptPane::BaseScriptPane(Json config) : Pane(), m_rawConfig(config) { auto& root = Root::singleton(); auto assets = root.assets(); @@ -97,6 +97,9 @@ bool BaseScriptPane::sendEvent(InputEvent const& event) { return Pane::sendEvent(event); } +Json const& BaseScriptPane::config() const { return m_config; } +Json const& BaseScriptPane::rawConfig() const { return m_rawConfig; } + PanePtr BaseScriptPane::createTooltip(Vec2I const& screenPosition) { auto result = m_script.invoke<Json>("createTooltip", screenPosition); if (result && !result.value().isNull()) { |