From 224ad2c2c07311475875d1d243354f8647112b45 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sat, 29 Jul 2023 02:12:03 +1000 Subject: Reset script panes on character swap --- source/frontend/StarMainInterface.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source/frontend/StarMainInterface.hpp') 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& out); + void reviveScriptPanes(List& 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; -- cgit v1.2.3