diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-19 23:22:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-19 23:22:41 +0300 |
commit | 50658d0b86e7fcd0ea92449310b1dbcc75237267 (patch) | |
tree | 888e3c812b869995d13bd33cc0591d94ccade2e9 /src/playerinfo.cpp | |
parent | ce234e915f6ee5557e6cc00b6aa9fd9b3bdbc152 (diff) | |
download | manaplus-50658d0b86e7fcd0ea92449310b1dbcc75237267.tar.gz manaplus-50658d0b86e7fcd0ea92449310b1dbcc75237267.tar.bz2 manaplus-50658d0b86e7fcd0ea92449310b1dbcc75237267.tar.xz manaplus-50658d0b86e7fcd0ea92449310b1dbcc75237267.zip |
Block moving in storage is open.
Move some code from being to playerinfo.
Diffstat (limited to 'src/playerinfo.cpp')
-rw-r--r-- | src/playerinfo.cpp | 10 |
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 |