summaryrefslogtreecommitdiff
path: root/src/playerinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/playerinfo.cpp')
-rw-r--r--src/playerinfo.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/playerinfo.cpp b/src/playerinfo.cpp
index d00eb217d..61d72df3b 100644
--- a/src/playerinfo.cpp
+++ b/src/playerinfo.cpp
@@ -28,6 +28,10 @@
#include "listener.h"
#include "logger.h"
+#include "gui/inventorywindow.h"
+#include "gui/npcdialog.h"
+#include "gui/npcpostdialog.h"
+
#include "resources/itemdb.h"
#include "resources/iteminfo.h"
@@ -368,4 +372,10 @@ void deinit()
mListener = nullptr;
}
+bool isTalking()
+{
+ return NpcDialog::isActive() || NpcPostDialog::isActive()
+ || InventoryWindow::isStorageActive();
+}
+
} // namespace PlayerInfo