diff options
Diffstat (limited to 'source/frontend/StarMainInterface.hpp')
-rw-r--r-- | source/frontend/StarMainInterface.hpp | 12 |
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; |