summaryrefslogtreecommitdiff
path: root/src/actions/windows.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-16 01:04:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-16 01:04:04 +0300
commit4b891f50dfc89318321eeac176415d1bef61aca6 (patch)
treef1da78c30374409d4f329faecb7e7b627674cf21 /src/actions/windows.cpp
parentf8f1e69d820e49d93669b17363ab6225456515f7 (diff)
downloadplus-4b891f50dfc89318321eeac176415d1bef61aca6.tar.gz
plus-4b891f50dfc89318321eeac176415d1bef61aca6.tar.bz2
plus-4b891f50dfc89318321eeac176415d1bef61aca6.tar.xz
plus-4b891f50dfc89318321eeac176415d1bef61aca6.zip
Add bank window (hercules only).
also add banklistener to get changed bank balance.
Diffstat (limited to 'src/actions/windows.cpp')
-rw-r--r--src/actions/windows.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/actions/windows.cpp b/src/actions/windows.cpp
index fae82261c..18a2c4773 100644
--- a/src/actions/windows.cpp
+++ b/src/actions/windows.cpp
@@ -24,6 +24,7 @@
#include "gui/dialogsmanager.h"
+#include "gui/windows/bankwindow.h"
#include "gui/windows/skilldialog.h"
#include "gui/windows/socialwindow.h"
#include "gui/windows/statuswindow.h"
@@ -47,6 +48,8 @@
#include "gui/widgets/tabs/chat/chattab.h"
#include "gui/widgets/tabs/chat/chattabtype.h"
+#include "net/serverfeatures.h"
+
#include "debug.h"
extern ShortcutWindow *spellShortcutWindow;
@@ -247,6 +250,15 @@ impHandler0(questsWindowShow)
return true;
}
+impHandler0(bankWindowShow)
+{
+ if (!serverFeatures->haveBankApi())
+ return false;
+
+ showHideWindow(bankWindow);
+ return true;
+}
+
impHandler0(updaterWindowShow)
{
if (updaterWindow)