pausemenu stuff
[oweals/minetest.git] / src / guiPauseMenu.h
1 /*\r
2 Minetest-c55\r
3 Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com>\r
4 Original author Kabak Dmitry <userdima@gmail.com>, contributed under\r
5 the minetest contributor agreement.\r
6 \r
7 This program is free software; you can redistribute it and/or modify\r
8 it under the terms of the GNU General Public License as published by\r
9 the Free Software Foundation; either version 2 of the License, or\r
10 (at your option) any later version.\r
11 \r
12 This program is distributed in the hope that it will be useful,\r
13 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
15 GNU General Public License for more details.\r
16 \r
17 You should have received a copy of the GNU General Public License along\r
18 with this program; if not, write to the Free Software Foundation, Inc.,\r
19 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
20 */\r
21 \r
22 \r
23 #ifndef GUIPAUSEMENU_HEADER\r
24 #define GUIPAUSEMENU_HEADER\r
25 \r
26 #include <irrlicht.h>\r
27 using namespace irr;\r
28 \r
29 class guiPauseMenu : public IEventReceiver\r
30 {\r
31 private:\r
32         IrrlichtDevice *dev;\r
33         gui::IGUIEnvironment *guienv;\r
34         IEventReceiver *oldRecv;\r
35 \r
36         gui::IGUIStaticText *root;\r
37 \r
38         bool loadMenu();\r
39         void scaleGui();\r
40         void scaleGui(gui::IGUIElement *node,float factorX,float factorY);\r
41 public:\r
42         guiPauseMenu(IrrlichtDevice *device,IEventReceiver *recv);\r
43 \r
44         void setVisible(bool visible){root->setVisible(visible);};\r
45         bool isVisible(){return root->isVisible();};\r
46 \r
47         bool OnEvent(const SEvent& event);\r
48 \r
49         ~guiPauseMenu(void);\r
50 };\r
51 \r
52 #endif\r
53 \r