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
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
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
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
23 #ifndef GUIPAUSEMENU_HEADER
\r
24 #define GUIPAUSEMENU_HEADER
\r
26 #include <irrlicht.h>
\r
27 using namespace irr;
\r
29 class guiPauseMenu : public IEventReceiver
\r
32 IrrlichtDevice *dev;
\r
33 gui::IGUIEnvironment *guienv;
\r
34 IEventReceiver *oldRecv;
\r
36 gui::IGUIStaticText *root;
\r
40 void scaleGui(gui::IGUIElement *node,float factorX,float factorY);
\r
42 guiPauseMenu(IrrlichtDevice *device,IEventReceiver *recv);
\r
44 void setVisible(bool visible){root->setVisible(visible);};
\r
45 bool isVisible(){return root->isVisible();};
\r
47 bool OnEvent(const SEvent& event);
\r
49 ~guiPauseMenu(void);
\r