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

summaryrefslogtreecommitdiff
path: root/source/frontend/StarMainInterface.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-29 02:12:03 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-29 02:12:03 +1000
commit224ad2c2c07311475875d1d243354f8647112b45 (patch)
treec8247f22b4ddda345b7f35d7c6ead25d5e1f2791 /source/frontend/StarMainInterface.hpp
parent35fc2679dea7b625bf559c6855e101fc62e613f4 (diff)
Reset script panes on character swap
Diffstat (limited to 'source/frontend/StarMainInterface.hpp')
-rw-r--r--source/frontend/StarMainInterface.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/frontend/StarMainInterface.hpp b/source/frontend/StarMainInterface.hpp
index ddc4d3d..adba4e6 100644
--- a/source/frontend/StarMainInterface.hpp
+++ b/source/frontend/StarMainInterface.hpp
@@ -119,6 +119,16 @@ public:
CanvasWidgetPtr fetchCanvas(String const& canvasName, bool ignoreInterfaceScale = false);
+ struct ScriptPaneInfo {
+ ScriptPanePtr scriptPane;
+ Json config;
+ EntityId sourceEntityId;
+ bool visible;
+ Vec2I position;
+ };
+
+ void takeScriptPanes(List<ScriptPaneInfo>& out);
+ void reviveScriptPanes(List<ScriptPaneInfo>& panes);
private:
PanePtr createEscapeDialog();
@@ -142,6 +152,8 @@ private:
bool overlayClick(Vec2I const& mousePos, MouseButton mouseButton);
+ void displayScriptPane(ScriptPanePtr& scriptPane, EntityId sourceEntity);
+
GuiContext* m_guiContext;
MainInterfaceConfigConstPtr m_config;
InterfaceCursor m_cursor;