7c37af8efac7989336b84a717a7e50aba6403ff3
[oweals/minetest.git] / src / guiPauseMenu.h
1 /*\r
2 Minetest-c55\r
3 Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com>\r
4 \r
5 This program is free software; you can redistribute it and/or modify\r
6 it under the terms of the GNU General Public License as published by\r
7 the Free Software Foundation; either version 2 of the License, or\r
8 (at your option) any later version.\r
9 \r
10 This program is distributed in the hope that it will be useful,\r
11 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
13 GNU General Public License for more details.\r
14 \r
15 You should have received a copy of the GNU General Public License along\r
16 with this program; if not, write to the Free Software Foundation, Inc.,\r
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
18 */\r
19 \r
20 \r
21 #ifndef GUIPAUSEMENU_HEADER\r
22 #define GUIPAUSEMENU_HEADER\r
23 \r
24 #include "common_irrlicht.h"\r
25 #include "modalMenu.h"\r
26 \r
27 class GUIPauseMenu : public GUIModalMenu\r
28 {\r
29 public:\r
30         GUIPauseMenu(gui::IGUIEnvironment* env,\r
31                         gui::IGUIElement* parent, s32 id,\r
32                         IrrlichtDevice *dev,\r
33                         int *active_menu_count);\r
34         ~GUIPauseMenu();\r
35         \r
36         void removeChildren();\r
37         /*\r
38                 Remove and re-add (or reposition) stuff\r
39         */\r
40         void regenerateGui(v2u32 screensize);\r
41 \r
42         void drawMenu();\r
43 \r
44         bool OnEvent(const SEvent& event);\r
45         \r
46 private:\r
47         IrrlichtDevice *m_dev;\r
48 };\r
49 \r
50 #endif\r
51 \r