From 0abe47ab6c3e9c64d686549e9520566f3eb44b6a Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Thu, 23 May 2024 12:12:07 +1000 Subject: slightly smarter inventory close behavior with panes that open with the inventory --- source/frontend/StarScriptPane.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/frontend/StarScriptPane.cpp') diff --git a/source/frontend/StarScriptPane.cpp b/source/frontend/StarScriptPane.cpp index c98bd2c..bcd599c 100644 --- a/source/frontend/StarScriptPane.cpp +++ b/source/frontend/StarScriptPane.cpp @@ -88,6 +88,10 @@ bool ScriptPane::openWithInventory() const { return m_config.getBool("openWithInventory", false); } +bool ScriptPane::closeWithInventory() const { + return m_config.getBool("closeWithInventory", openWithInventory()); +} + EntityId ScriptPane::sourceEntityId() const { return m_sourceEntityId; } -- cgit v1.2.3