From 30d2e0c9a16a981c895c070e9f972d577fadc531 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Fri, 15 Jul 2011 20:41:05 +0200 Subject: The shortcuts are now refreshed when reassigning keys. --- src/game.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/game.h') diff --git a/src/game.h b/src/game.h index 22e242c9..9e38f928 100644 --- a/src/game.h +++ b/src/game.h @@ -24,8 +24,9 @@ #include +#include "gui/windowmenu.h" + class Map; -class WindowMenu; /** * The main class responsible for running the game. The game starts after you @@ -73,6 +74,12 @@ class Game int getCurrentTileWidth() const; int getCurrentTileHeight() const; + /** + * Update the key shortcuts in the window menu. + */ + void updateWindowMenuCaptions() + { mWindowMenu->updatePopUpCaptions(); } + private: int mLastTarget; bool mDisconnected; -- cgit v1.2.3-60-g2f50