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

summaryrefslogtreecommitdiff
path: root/source/frontend/StarScriptPane.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-05-23 12:12:07 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-05-23 12:12:07 +1000
commit0abe47ab6c3e9c64d686549e9520566f3eb44b6a (patch)
tree6455d7e250b104ec6d6f80dea5a07b894fed25db /source/frontend/StarScriptPane.cpp
parentf42031dc9ee89d58232442320ae44447cd0acda5 (diff)
slightly smarter inventory close behavior with panes that open with the inventory
Diffstat (limited to 'source/frontend/StarScriptPane.cpp')
-rw-r--r--source/frontend/StarScriptPane.cpp4
1 files changed, 4 insertions, 0 deletions
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;
}