summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorJosé Ávila <linux@javila.net>2005-06-02 16:10:34 +0000
committerJosé Ávila <linux@javila.net>2005-06-02 16:10:34 +0000
commite0da83ae7336be5da0ea11b30827782b8e8660d7 (patch)
tree568c1c4b0acf289d1e762a5f0379c6918b8960ca /src/game.cpp
parent108efd1050c8510e6dec69b40f7c0539d7a36682 (diff)
downloadMana-e0da83ae7336be5da0ea11b30827782b8e8660d7.tar.gz
Mana-e0da83ae7336be5da0ea11b30827782b8e8660d7.tar.bz2
Mana-e0da83ae7336be5da0ea11b30827782b8e8660d7.tar.xz
Mana-e0da83ae7336be5da0ea11b30827782b8e8660d7.zip
In game help system files
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 96a2ea85..3b4a4420 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -37,8 +37,10 @@
#include "gui/ok_dialog.h"
#include "gui/confirm_dialog.h"
#include "gui/requesttrade.h"
+#include "gui/help.h"
#include "net/protocol.h"
#include "resources/mapreader.h"
+
#include <SDL.h>
#include <sstream>
@@ -226,7 +228,12 @@ void do_input()
if (event.type == SDL_KEYDOWN)
{
SDL_keysym keysym = event.key.keysym;
-
+
+ if (keysym.sym == SDLK_F1)
+ {
+ new HelpWindow();
+ }
+
if (keysym.sym == SDLK_RETURN)
{
if (!chatWindow->isFocused())