ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
game_menu.h
1 
2 /* ScummVM - Graphic Adventure Engine
3  *
4  * ScummVM is the legal property of its developers, whose names
5  * are too numerous to list here. Please refer to the COPYRIGHT
6  * file distributed with this source distribution.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef M4_BURGER_GUI_GAME_MENU_H
24 #define M4_BURGER_GUI_GAME_MENU_H
25 
26 #include "graphics/surface.h"
27 #include "m4/m4_types.h"
28 #include "m4/graphics/gr_buff.h"
29 #include "m4/gui/gui_menu_items.h"
30 #include "m4/gui/game_menu.h"
31 #include "m4/gui/gui_univ.h"
32 
33 namespace M4 {
34 namespace Burger {
35 namespace GUI {
36 
37 using M4::GUI::guiMenu;
43 using M4::GUI::Sprite;
44 using M4::GUI::CALLBACK;
45 using M4::GUI::ItemHandlerFunction;
46 
47 class GameMenu {
48 private:
49  static void destroyMenu();
50  static void cb_Game_Quit(void *, void *);
51  static void cb_Game_Resume(void *, void *);
52  static void cb_Game_Save(void *, void *);
53  static void cb_Game_Load(void *, void *);
54  static void cb_Game_Main(void *, void *);
55  static void cb_Game_Options(void *, void *);
56 
57 public:
58  static void show(RGB8 *myPalette);
59 };
60 
61 class OptionsMenu {
62 private:
63  static void destroyMenu();
64  static void cb_Options_Game_Cancel(void *, void *);
65  static void cb_Options_Game_Done(void *, void *);
66  static void cb_Options_Digi(menuItemHSlider *myItem, guiMenu *myMenu);
67  static void cb_Options_Digestability(menuItemHSlider *myItem, guiMenu *myMenu);
68 
69 public:
70  static void show(RGB8 *myPalette);
71 };
72 
74 private:
75  static void destroyMenu(bool saveMenu);
76  static bool load_Handler(menuItemButton *theItem, int32 eventType, int32 event, int32 x, int32 y, void **currItem);
77 
78  static void cb_SaveLoad_Save(void *, guiMenu *myMenu);
79  static void cb_SaveLoad_Load(menuItemButton *, guiMenu *);
80  static void cb_SaveLoad_Cancel(menuItemButton *, guiMenu *myMenu);
81  static void cb_SaveLoad_Slot(menuItemButton *myButton, guiMenu *myMenu);
82  static void cb_SaveLoad_VSlider(menuItemVSlider *myItem, guiMenu *myMenu);
83 
84 public:
85  static void show(RGB8 *myPalette, bool saveMenu);
86 };
87 
88 class ErrorMenu {
89 private:
90  static void destroyMenu();
91  static void cb_Err_Done(void *, void *);
92 
93 public:
94  static void show(RGB8 *myPalette);
95 };
96 
97 // GAME MENU FUNCTIONS
98 extern void CreateGameMenu(RGB8 *myPalette);
99 extern void CreateF2SaveMenu(RGB8 *myPalette);
100 extern void CreateLoadMenu(RGB8 *myPalette);
101 extern void CreateF3LoadMenu(RGB8 *myPalette);
102 
103 // Routines used by the main menu
104 void CreateLoadMenuFromMain(RGB8 *myPalette);
105 void CreateGameMenuFromMain(RGB8 *myPalette);
106 
107 } // namespace GUI
108 } // namespace Burger
109 } // namespace M4
110 
111 #endif
Definition: game_menu.h:88
Definition: gui_menu_items.h:301
Definition: system.h:46
Definition: game_menu.h:47
Definition: m4_types.h:88
Definition: gui_menu_items.h:164
Definition: gui_menu_items.h:220
Definition: database.h:28
Definition: gui.h:31
Definition: game_menu.h:32
Definition: game_menu.h:61
Definition: gui_menu_items.h:278
Definition: gui_menu_items.h:244
Definition: game_menu.h:73
Definition: gui_menu_items.h:176