diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-07-15 02:40:07 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-08-11 02:39:48 +0200 |
commit | be1300b05a4c6e50fe8f13efa8c66dda00a21016 (patch) | |
tree | 4f730238670ea06d386a1928552cd3f549fa015a /src/gui/windowmenu.h | |
parent | f3c1994b573a8463ac6f0152b3baa7e3cbd37540 (diff) | |
download | mana-be1300b05a4c6e50fe8f13efa8c66dda00a21016.tar.gz mana-be1300b05a4c6e50fe8f13efa8c66dda00a21016.tar.bz2 mana-be1300b05a4c6e50fe8f13efa8c66dda00a21016.tar.xz mana-be1300b05a4c6e50fe8f13efa8c66dda00a21016.zip |
Added a naive way to display the window keyboard shortcut.
This is not updated once the keys are reassigned but it will
do the trick for now.
Diffstat (limited to 'src/gui/windowmenu.h')
-rw-r--r-- | src/gui/windowmenu.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/windowmenu.h b/src/gui/windowmenu.h index b4b0446d..09374943 100644 --- a/src/gui/windowmenu.h +++ b/src/gui/windowmenu.h @@ -22,6 +22,8 @@ #ifndef WINDOWMENU_H #define WINDOWMENU_H +#include "keyboardconfig.h" + #include "gui/widgets/container.h" #include <guichan/actionlistener.hpp> @@ -49,7 +51,9 @@ class WindowMenu : public Container, private: inline void addButton(const std::string& text, int &x, int &h, - const std::string& iconPath = std::string()); + const std::string& iconPath = std::string(), + KeyboardConfig::KeyAction key = + KeyboardConfig::KEY_NO_VALUE); EmotePopup *mEmotePopup; }; |