summaryrefslogtreecommitdiff
path: root/src/gui/windows/helpwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-19 16:02:28 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-19 16:02:28 +0300
commitab165fef49f68f53e8baea8d7d71f73f81e9d2c5 (patch)
tree3e83aafd8784a4f6b4284b3cf3f3d399a2c0dd26 /src/gui/windows/helpwindow.cpp
parentbaa7e75fe372e156704f08ae98368cc6408447ff (diff)
downloadManaVerse-ab165fef49f68f53e8baea8d7d71f73f81e9d2c5.tar.gz
ManaVerse-ab165fef49f68f53e8baea8d7d71f73f81e9d2c5.tar.bz2
ManaVerse-ab165fef49f68f53e8baea8d7d71f73f81e9d2c5.tar.xz
ManaVerse-ab165fef49f68f53e8baea8d7d71f73f81e9d2c5.zip
In inventory and help window use actions to open another windows.
Diffstat (limited to 'src/gui/windows/helpwindow.cpp')
-rw-r--r--src/gui/windows/helpwindow.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gui/windows/helpwindow.cpp b/src/gui/windows/helpwindow.cpp
index d1083b0a9..91e05bcdb 100644
--- a/src/gui/windows/helpwindow.cpp
+++ b/src/gui/windows/helpwindow.cpp
@@ -24,6 +24,8 @@
#include "configuration.h"
+#include "input/inputmanager.h"
+
#include "gui/gui.h"
#include "gui/windows/didyouknowwindow.h"
@@ -97,14 +99,7 @@ HelpWindow::HelpWindow() :
void HelpWindow::action(const ActionEvent &event)
{
if (event.getId() == "DYK")
- {
- if (didYouKnowWindow)
- {
- didYouKnowWindow->setVisible(!didYouKnowWindow->isWindowVisible());
- if (didYouKnowWindow->isWindowVisible())
- didYouKnowWindow->requestMoveToTop();
- }
- }
+ inputManager.executeAction(InputAction::WINDOW_DIDYOUKNOW);
}
void HelpWindow::handleLink(const std::string &link,