4 // Copyright (C) 2004 Tobas Glaesser <tobi.web@gmx.de>
5 // Copyright (C) 2006 Matthias Braun <matze@braunis.de>
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 #include "gameconfig.hpp"
25 #include "game_session.hpp"
26 #include "gui/menu.hpp"
27 #include "gui/button.hpp"
28 #include "audio/sound_manager.hpp"
30 #include "resources.hpp"
31 #include "worldmap/worldmap.hpp"
32 #include "gettext.hpp"
33 #include "options_menu.hpp"
34 #include "control/joystickkeyboardcontroller.hpp"
36 Menu* main_menu = NULL;
37 Menu* game_menu = NULL;
41 main_menu = new Menu();
42 game_menu = new Menu();
44 main_menu->set_pos(SCREEN_WIDTH/2, 335);
45 main_menu->add_entry(MNID_STARTGAME, _("Start Game"));
46 main_menu->add_entry(MNID_LEVELS_CONTRIB, _("Contrib Levels"));
47 main_menu->add_submenu(_("Options"), get_options_menu());
48 main_menu->add_entry(MNID_CREDITS, _("Credits"));
49 main_menu->add_entry(MNID_QUITMAINMENU, _("Quit"));
51 game_menu->add_label(_("Pause"));
53 game_menu->add_entry(MNID_CONTINUE, _("Continue"));
54 game_menu->add_submenu(_("Options"), get_options_menu());
56 game_menu->add_entry(MNID_ABORTLEVEL, _("Abort Level"));