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-09-28 18:34:17 +0200 |
commit | 095fe98b5a26276e15e0ed781d1ba051346e354f (patch) | |
tree | a5dc3284da86a566aafc849b7a05983b66effa94 /src/gui/windowmenu.h | |
parent | da18a5f411185d3a4d5aa3851e8c7f621d3e9718 (diff) | |
download | mana-095fe98b5a26276e15e0ed781d1ba051346e354f.tar.gz mana-095fe98b5a26276e15e0ed781d1ba051346e354f.tar.bz2 mana-095fe98b5a26276e15e0ed781d1ba051346e354f.tar.xz mana-095fe98b5a26276e15e0ed781d1ba051346e354f.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; }; |