Update keys for cheat menu and console only when items are enabled. Fixes #1062.
[supertux.git] / src / supertux / menu / menu_storage.hpp
index a9713c1..dbd622d 100644 (file)
@@ -1,5 +1,5 @@
 //  SuperTux
-//  Copyright (C) 2009 Ingo Ruhnke <grumbel@gmx.de>
+//  Copyright (C) 2009 Ingo Ruhnke <grumbel@gmail.com>
 //
 //  This program is free software: you can redistribute it and/or modify
 //  it under the terms of the GNU General Public License as published by
@@ -37,6 +37,7 @@ public:
     NO_MENU,
     MAIN_MENU,
     OPTIONS_MENU,
+    INGAME_OPTIONS_MENU,
     PROFILE_MENU,
     CONTRIB_MENU,
     CONTRIB_WORLD_MENU,
@@ -45,18 +46,16 @@ public:
     KEYBOARD_MENU,
     JOYSTICK_MENU,
     WORLDMAP_MENU,
-    GAME_MENU
+    WORLDMAP_CHEAT_MENU,
+    GAME_MENU,
+    CHEAT_MENU
   };
 
 public:
   MenuStorage();
   ~MenuStorage();
-  
+
   std::unique_ptr<Menu> create(MenuId menu_id);
-  
-  // FIXME
-  JoystickMenu* get_joystick_options_menu();
-  KeyboardMenu* get_key_options_menu();
 
 private:
   MenuStorage(const MenuStorage&);